match p.Con.proof_name with
None -> body
| Some name ->
- let ac =
- (match concl with
- None -> P.Mtext([],"NO PROOF!!!")
- | Some c -> c) in
let action =
- P.Maction([None,"actiontype","toggle" ;
- None,"selection","1"],
- [(make_concl "proof of" ac);
- body]) in
+ match concl with
+ None -> body
+(*
+ P.Maction
+ ([None,"actiontype","toggle" ; None,"selection","1"],
+ [P.Mtext [] "proof" ; body])
+*)
+ | Some ac ->
+ P.Maction
+ ([None,"actiontype","toggle" ; None,"selection","1"],
+ [(make_concl "proof of" ac); body])
+ in
P.Mtable ([None,"align","baseline 1"; None,"equalrows","false";
None,"columnalign","left"],
[P.Mtr ([],[P.Mtd ([],P.Mfenced([],[P.Mtext ([],name)]))]);
else if conclude.Con.conclude_method = "BU_Conversion" then
assert false
else if conclude.Con.conclude_method = "Exact" then
- let conclusion =
- (match conclude.Con.conclude_conclusion with
- None -> P.Mtext([],"NO Conclusion!!!")
- | Some c -> term2pres c) in
let arg =
(match conclude.Con.conclude_args with
[Con.Term t] -> term2pres t
| _ -> assert false) in
- make_row
- [arg;P.Mspace([None,"width","0.1cm"]);P.Mtext([],"proves")] conclusion
+ (match conclude.Con.conclude_conclusion with
+ None ->
+ P.Mrow []
+ [P.Mtext [None, "mathcolor", "red"] "Consider" ; P.smallskip; arg]
+ | Some c -> let conclusion = term2pres c in
+ make_row
+ [arg; P.Mspace([None,"width","0.1cm"]);P.Mtext([],"proves")]
+ conclusion
+ )
else if conclude.Con.conclude_method = "Intros+LetTac" then
(match conclude.Con.conclude_args with
[Con.ArgProof p] -> proof2pres p