Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
92e1371027
7
main.ml
7
main.ml
@ -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;
|
||||||
|
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user