Dedukti
Dedukti copied to clipboard
New syntax for pragmas and assertions
Implement the new syntax for pragmas and assertions as discussed.
All right, I'll just inline some example file here to have a taste of it
(; OK ;)
A : Type.
def B := A.
def C := A.
D : Type.
assert |- B == A.
assert |- B == C.
(;# assertnot A == D #;)
All previous pragmas of the form #PRAGMA...
are still supported as (;# PRAGMA ... #;)
, making it easy to update tests.
This syntax change requires an update of the syntax.bnf
file (generated by a command like make bnf
) and of the README
(at least the "Commands" section, probably some other occurrences too).