| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Rzk.TypeCheck.Schematic
Description
Check schematic dRzk declarations without treating universes as object types. Family arguments are checked at their indices. Schematic rules, such as function extensionality, may also be parameters of a declaration. Postulates supply trusted rules; checking their statements does not prove them.
Synopsis
- data SchematicStatement (n :: S)
- data CheckedSchematicDeclaration (n :: S)
- checkSchematicDeclaration :: forall (n :: S). Distinct n => TermT n -> Maybe (TermT n) -> TypeCheck n (CheckedSchematicDeclaration n)
- recordSchematicDeclaration :: forall (n :: S). Distinct n => VarIdent -> TermT n -> Maybe (TermT n) -> TypeCheck n SchematicStatus
Documentation
data SchematicStatement (n :: S) Source #
data CheckedSchematicDeclaration (n :: S) Source #
checkSchematicDeclaration :: forall (n :: S). Distinct n => TermT n -> Maybe (TermT n) -> TypeCheck n (CheckedSchematicDeclaration n) Source #
Validate an elaborated declaration and the definitions used by its proof. This supplements dRzk typing with kind checks; it is not a separate RSTT kernel.