Make a proof-checker.
Language is based on INF402 lessons:
The file is a succession of records and comments.
Each record consists of 4 blocks separated by ;
:
- The current number of the block
- The current context of the block
- A statement
- A justification
Context is a list of block numbers, separated by ,
.
A statement may or may not begin with Supposons
or Donc
.
Then comes a logical formula, composed by:
- Variable name (for now single letter, not
v
orT
) T
or_
-
formula
(
formula
)
formula
^|v|=>|<=|<=>
formula
A justification might be one of the following:
Supposons
orDonc
lines- `
Comments start by (*
and are ended by *)
.