| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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.
Documentation
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".