lang::typecheck::faces
lang/src/typecheck/faces.mo
pub def face_literal_truth (t : Term) : Option BoolThe truth of one face LITERAL -- a bare endpoint, or a generator
applied to exactly one BARE-endpoint argument. i0 and i1 are
themselves cofibrations (the always-false and always-true ones);
face_eq0 u reads as u = 0, true at u = i0 and refuted at
u = i1, and face_eq1 the dual. A generator over any other
dimension answers none -- its truth is unknown, not decided -- and
so does everything else.
pub def face_decide (t : Term) : Option BoolDecide a cofibration: some true when it definitely holds, some false when it definitely fails, none when no decision -- always
the safe answer for a bare dimension, a non-cubical term, a mixed
lattice position, or a malformed arity. See the module doc for the
normalized-input contract.
#[terminating] for the same reason as face_conjunct_literals:
each disjunct is a strict structural subterm behind a struct field
and a List cons.