fact: Definition nelstructontotal2 {X : UU} {n : nat} (P : X -> UU) (f : X -> nat) (sx : nelstruct n X) (fs : ∏ x : X, nelstruct (f x) (P x)) : nelstruct (stnsum (f ∘ sx)) (∑ (y : X), P y) := weqcomp (invweq (weqstnsum (P ∘ sx) (f ∘ sx) (fs ∘ sx))) (weqfp sx P).
imports: UniMath.MoreFoundations.Tactics UniMath.MoreFoundations.DecidablePropositions UniMath.MoreFoundations.NegativePropositions UniMath.Combinatorics.StandardFiniteSets UniMath.MoreFoundations.Subtypes