Lemma isasetterm {σ: signature} (s: sorts σ): isaset (term σ s). Proof. apply isaset_total2. - apply isasetoplist. - intros. apply isasetaprop. apply isasetstack. Defined.
Require Import UniMath.MoreFoundations.Notations. Require Import UniMath.MoreFoundations.PartA. Require Import UniMath.Combinatorics.Maybe. Require Import UniMath.Algebra.Universal.SortedTypes.