Definition nelstructonfun {X Y : UU} {n m : nat} (sx : nelstruct n X) (sy : nelstruct m Y) : nelstruct (natpower m n) (X -> Y) := (weqbfun Y (invweq sx) ∘ weqffun (⟦ n ⟧) sy ∘ invweq (weqfromfunstntostn n m))%weq.
Require Import UniMath.MoreFoundations.Tactics. Require Import UniMath.MoreFoundations.DecidablePropositions. Require Import UniMath.MoreFoundations.NegativePropositions. Require Import UniMath.MoreFoundations.Subtypes.