Definition nelstructToFunction {n : nat} {X : UU} (S : nelstruct n X) : ⟦ n ⟧ -> X := pr1weq S.
Require Import UniMath.MoreFoundations.Tactics. Require Import UniMath.MoreFoundations.DecidablePropositions. Require Import UniMath.MoreFoundations.NegativePropositions. Require Import UniMath.MoreFoundations.Subtypes.