Parse exact term / proof

This commit is contained in:
augustin64 2024-04-30 11:58:29 +02:00
parent 20d4ee5531
commit 486a788757
2 changed files with 6 additions and 3 deletions

View File

@ -58,8 +58,10 @@ let rec interactive ((g, gs) : proof) : proof =
Goal ty -> fresh_proof ty |> interactive
| Tact t ->
begin match t with
Exact e ->
tact_exact (g, gs) e |> interactive
Exact_term e ->
tact_exact_term (g, gs) e |> interactive
| Exact_proof s ->
tact_exact_proof (g, gs) s |> interactive
| Assumption ->
tact_assumption (g, gs) |> interactive
| Intro ->

View File

@ -33,7 +33,8 @@ tactic:
command:
| 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) }
| INTRO { Tact (Intro) }
| CUT t=ty { Tact (Cut t) }