Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
92e1371027
9
main.ml
9
main.ml
@ -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;
|
||||
fill_holes := function
|
||||
| (pf::px::s) -> f ((LApp(pf, px))::s)
|
||||
| _ -> fail ()
|
||||
subgoals := (TImpl (tint, ty), hyps) :: (tint, hyps) :: !subgoals;
|
||||
fill_holes := function
|
||||
| pf :: px :: s -> f ((LApp (pf, px)) :: s)
|
||||
| _ -> fail ()
|
||||
)
|
||||
done;
|
||||
|
||||
|
||||
@ -2,4 +2,9 @@
|
||||
intro f.
|
||||
intro b.
|
||||
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
|
||||
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