Andromedans / andromeda

A proof assistant for general type theories
http://www.andromeda-prover.org/
Other
297 stars 34 forks source link

Rules as derivations #496

Closed andrejbauer closed 4 years ago

andrejbauer commented 4 years ago

If a primitive rule R is used in a non-applied form, then it is automatically converted to a derivation. For example:

# rule Pi (A type) ({_ : A} _ type) type
Rule Pi is postulated.
# Pi
- : derivation = derive (A type) ({_ : A} _ type) → Pi A ({x₀} _ {x₀})
  type

Previously, typing Pi like that would just give an error (saying that Pi must be applied exactly once).