Parameter T_bot:T.
Parameter T_rel : T -> T -> Prop.
Parameter T_rel_bot : forall x, T_rel T_bot x.
Parameter T_rel_refl : forall x, T_rel x x.
Parameter T_rel_trans : transitive T T_rel.
End KNOT_INPUT__MIXVARIANT_HERED_T_OTH_REL.
Module Type KNOT__MIXVARIANT_HERED_T_OTH_REL.
Declare Module KI: KNOT_INPUT__MIXVARIANT_HERED_T_OTH_REL.
Parameter knot:Type.
Parameter ageable_knot : ageable knot.
Existing Instance ageable_knot.
Parameter hered : (knot * other -> T) -> Prop.
Definition predicate := { p:knot * other -> T | hered p }.
Parameter squash : (nat * F predicate) -> knot.
Parameter unsquash : knot -> (nat * F predicate).
Parameter approx : nat -> predicate -> predicate.

(* Specifications: *)
Axiom squash_unsquash : forall k:knot, squash (unsquash k) = k.
Axiom unsquash_squash : forall (n:nat) (f:F predicate),
unsquash (squash (n,f)) = (n, fmap F (approx n) (approx n) f).
Axiom approx_spec : forall n p ko,
proj1_sig (approx n p) ko =
if (le_gt_dec n (level (fst ko))) then T_bot else proj1_sig p ko.