]> matita.cs.unibo.it Git - helm.git/commitdiff
partially fixed boxes in rewite
authorEnrico Tassi <enrico.tassi@inria.fr>
Thu, 13 Apr 2006 14:23:30 +0000 (14:23 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Thu, 13 Apr 2006 14:23:30 +0000 (14:23 +0000)
helm/software/components/content_pres/content2pres.ml

index abac7cb5deca46fd88f1acf4be241d8ca8b6b5fa..543ea0ac8436c8bc39bed6f31b74aeadcf587341 100644 (file)
@@ -130,8 +130,10 @@ let rec justification term2pres p =
       make_args_for_apply term2pres p.Con.proof_conclude.Con.conclude_args in
     B.H([],
       (B.b_kw "by")::B.b_space::
-      B.Text([],"(")::pres_args@[B.Text([],")")]) 
-  else proof2pres term2pres p 
+      B.Text([],"(")::pres_args@[B.Text([],")")]), None
+  else 
+    (B.b_kw "by"),
+    Some (B.b_toggle [B.b_kw "proof";proof2pres term2pres p])
      
 and proof2pres term2pres p =
   let rec proof2pres p =
@@ -358,7 +360,7 @@ and proof2pres term2pres p =
     else if (conclude.Con.conclude_method = "FalseInd") then
       falseind conclude
     else if (conclude.Con.conclude_method = "Rewrite") then
-      let justif = 
+      let justif1, justif2 = 
         (match (List.nth conclude.Con.conclude_args 6) with
            Con.ArgProof p -> justification term2pres p
          | _ -> assert false) in
@@ -371,12 +373,13 @@ and proof2pres term2pres p =
            Con.Term t -> term2pres t
          | _ -> assert false) in
       B.V ([], 
-         [B.H ([],[
+         B.H ([],[
           (B.b_kw "rewrite");
           B.b_space; term1;
           B.b_space; (B.b_kw "with");
-          B.b_space; term2;
-          B.indent justif])])
+          B.b_space; term2; 
+          B.b_space; justif1]) ::
+          match justif2 with None -> [] | Some j -> [B.indent j])
     else if conclude.Con.conclude_method = "Apply" then
       let pres_args = 
         make_args_for_apply term2pres conclude.Con.conclude_args in