Merge remote-tracking branch 'origin/master'

This commit is contained in:
2022-05-10 15:25:38 +02:00
3 changed files with 21 additions and 5 deletions
+5 -4
View File
@@ -148,11 +148,12 @@ while !subgoals <> [] do
| None -> failwith ("Hypothesis " ^ var ^ " not found") | None -> failwith ("Hypothesis " ^ var ^ " not found")
| _ -> failwith ("Hypothesis " ^ var ^ " unusable") | _ -> failwith ("Hypothesis " ^ var ^ " unusable")
) )
(* Pour montrer A, on montre B -> A et B *)
| Cut tint -> ( | Cut tint -> (
subgoals := (TImpl(tint, ty), hyps)::(tint, hyps)::!subgoals; subgoals := (TImpl (tint, ty), hyps) :: (tint, hyps) :: !subgoals;
fill_holes := function fill_holes := function
| (pf::px::s) -> f ((LApp(pf, px))::s) | pf :: px :: s -> f ((LApp (pf, px)) :: s)
| _ -> fail () | _ -> fail ()
) )
done; done;
+6 -1
View File
@@ -2,4 +2,9 @@
intro f. intro f.
intro b. intro b.
intro a. intro a.
cut B -> C cut B -> C.
intro g.
apply g.
assumption.
apply f.
assumption.
+10
View File
@@ -1 +1,11 @@
(A -> B -> C) -> (A -> B) -> A -> C (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.