Parse exact term / proof
This commit is contained in:
parent
20d4ee5531
commit
486a788757
6
main.ml
6
main.ml
@ -58,8 +58,10 @@ let rec interactive ((g, gs) : proof) : proof =
|
|||||||
Goal ty -> fresh_proof ty |> interactive
|
Goal ty -> fresh_proof ty |> interactive
|
||||||
| Tact t ->
|
| Tact t ->
|
||||||
begin match t with
|
begin match t with
|
||||||
Exact e ->
|
Exact_term e ->
|
||||||
tact_exact (g, gs) e |> interactive
|
tact_exact_term (g, gs) e |> interactive
|
||||||
|
| Exact_proof s ->
|
||||||
|
tact_exact_proof (g, gs) s |> interactive
|
||||||
| Assumption ->
|
| Assumption ->
|
||||||
tact_assumption (g, gs) |> interactive
|
tact_assumption (g, gs) |> interactive
|
||||||
| Intro ->
|
| Intro ->
|
||||||
|
@ -33,7 +33,8 @@ tactic:
|
|||||||
|
|
||||||
command:
|
command:
|
||||||
| GOAL t=ty { Goal t }
|
| GOAL t=ty { Goal t }
|
||||||
| EXACT e=expression { Tact (Exact e) }
|
| EXACT e=expression { Tact (Exact_term e) }
|
||||||
|
| EXACT s=TYID { Tact (Exact_proof s) }
|
||||||
| ASSUMPTION { Tact (Assumption) }
|
| ASSUMPTION { Tact (Assumption) }
|
||||||
| INTRO { Tact (Intro) }
|
| INTRO { Tact (Intro) }
|
||||||
| CUT t=ty { Tact (Cut t) }
|
| CUT t=ty { Tact (Cut t) }
|
||||||
|
Loading…
Reference in New Issue
Block a user