rzk-0.11.4: An experimental proof assistant for synthetic ∞-categories
Safe HaskellNone
LanguageHaskell2010

Rzk.TypeCheck.MetaPrefix

Description

Diagnostics for unsaturated schematic parameters.

A declaration's meta prefix ends at its last schematic parameter: a universe, CUBE, TOPE, or a function quantifying over or into one.

  • Structural checking requires the full prefix at object-level uses.
  • Strict checking confines schema arguments to a top-level receiver's meta prefix.

Strict checking is the default. Neither check establishes universe levels; the Hurkens construction still passes these checks.

Synopsis

Documentation

metaPrefixOf :: forall (n :: S). Distinct n => TermT n -> TypeCheck n Int Source #

Count parameters through the last schematic one. An incomplete classification is reported when meta-prefix checking is enabled.

isMetaType :: forall (n :: S). Distinct n => TermT n -> TypeCheck n Bool Source #

Recognise universes and functions quantifying over or into universes. Includes CUBE and TOPE; propagates classification failures.

recordMetaPrefixUses :: forall (n :: S). Distinct n => VarIdent -> TermT n -> Maybe (TermT n) -> TypeCheck n () Source #

Report uses that supply too few schematic arguments. Violations are errors when rstt-safe = "error".