Merge remote-tracking branch 'origin/master'

This commit is contained in:
Mysaa 2022-05-10 15:25:38 +02:00
commit 92e1371027
Signed by: Mysaa
GPG Key ID: 7054D5D6A90F084F
3 changed files with 21 additions and 5 deletions

View File

@ -148,11 +148,12 @@ while !subgoals <> [] do
| None -> failwith ("Hypothesis " ^ var ^ " not found")
| _ -> failwith ("Hypothesis " ^ var ^ " unusable")
)
(* Pour montrer A, on montre B -> A et B *)
| Cut tint -> (
subgoals := (TImpl(tint, ty), hyps)::(tint, hyps)::!subgoals;
subgoals := (TImpl (tint, ty), hyps) :: (tint, hyps) :: !subgoals;
fill_holes := function
| (pf::px::s) -> f ((LApp(pf, px))::s)
| _ -> fail ()
| pf :: px :: s -> f ((LApp (pf, px)) :: s)
| _ -> fail ()
)
done;

View File

@ -2,4 +2,9 @@
intro f.
intro b.
intro a.
cut B -> C
cut B -> C.
intro g.
apply g.
assumption.
apply f.
assumption.

View File

@ -1 +1,11 @@
(A -> B -> C) -> (A -> B) -> A -> C
intro f.
intro g.
intro a.
cut B -> C.
intro h.
apply h.
apply g.
assumption.
apply f.
assumption.