Core_lambdae.CheckStructural type checking for the explicit-environment core calculus. Type equality is syntactic; no subtyping or recursive-type equivalence is performed.
unfold_mu body substitutes Ast.TMu body for the variable bound by that mu. The complete recursive type must be closed: substitution does not shift free type variables.
Positional lookup along the left spine of intersections, starting with the right component at index zero. The terminal base is not a component.
val lin : string -> Ast.typ -> boolWhether a label occurs in a record or either side of an intersection. This tests presence, not uniqueness.
infer ctx e checks e with Query assigned ctx. Context extension appends an intersection component on the right. Types must be well-scoped, treating Fold's annotation as a mu body; scope is not checked separately.