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

Rzk.TypeCheck.Fragment.RSTT

Description

Diagnostics for declarations outside the RSTT fragment.

For RSTT, see Riehl and Shulman, RS17 (2017), Figure 4 and Appendix A.2 for extension types. For the fragment conditions, see Kudasov, Sim and Ahrens, KSA26 (2026), §5.

  • Free-standing restrictions in assumptions, motives, and types passed as data.
  • Cube domains, shape conditions, and assumed boundaries depending on outer points.
  • Schematic variables bound inside terms below the parameter prefix.
  • Modal constructs, auxiliary intervals, and involutions.
  • Inductive constructors and eliminators.
  • Any syntax outside the explicit RSTT allow-list.

Free-standing restrictions along concluded codomains are allowed. Assumptions and postulates remain trusted; universe levels are not checked.

Synopsis

Documentation

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

recordFragmentUses Source #

Arguments

:: forall (n :: S). Distinct n 
=> VarIdent

the declaration

-> TermT n

its type

-> Maybe (TermT n)

its value, for a definition

-> Bool

does it supply an assumption rather than a proof?

-> TypeCheck n () 

Report restriction and schematic-binder violations in a declaration. Violations are errors when rstt-safe = "error".

recordSyntaxUses :: forall (n :: S). Distinct n => Term n -> TypeCheck n () Source #

Check explicit syntax before typechecking erases source positions and sugars. Report each outermost forbidden node at its nearest available source position.