diff options
| author | filliatr | 2001-04-10 13:21:45 +0000 |
|---|---|---|
| committer | filliatr | 2001-04-10 13:21:45 +0000 |
| commit | 2bb2d480b547e58deb2ec62791c8990ecac777b0 (patch) | |
| tree | 64dafd639dab62bf0c15cda96b9cab129c9c726a /contrib/correctness/ptactic.ml | |
| parent | 8eaf1799ec07bf823a366920e39d79e827f94971 (diff) | |
réparation Correctness; options Extraction (changement de syntaxe)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1571 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/correctness/ptactic.ml')
| -rw-r--r-- | contrib/correctness/ptactic.ml | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/contrib/correctness/ptactic.ml b/contrib/correctness/ptactic.ml index 45ab72c385..950ef30b53 100644 --- a/contrib/correctness/ptactic.ml +++ b/contrib/correctness/ptactic.ml @@ -98,7 +98,7 @@ open Equality let nat = IndRef (coq_constant ["Init";"Datatypes"] "nat", 0) let lt = ConstRef (coq_constant ["Init";"Peano"] "lt") let well_founded = ConstRef (coq_constant ["Init";"Wf"] "well_founded") -let z = IndRef (coq_constant ["Init";"fast_integer"] "Z", 0) +let z = IndRef (coq_constant ["Zarith";"fast_integer"] "Z", 0) let and_ = IndRef (coq_constant ["Init";"Logic"] "and", 0) let eq = IndRef (coq_constant ["Init";"Logic"] "eq", 0) @@ -107,7 +107,7 @@ let wf_nat_pattern = PApp (PRef well_founded, [| PRef nat; PRef lt |]) (* ["((well_founded Z (Zwf ?1))"] *) let wf_z_pattern = - let zwf = ConstRef (coq_constant ["correctness";"Zwf"] "Zwf") in + let zwf = ConstRef (coq_constant ["correctness";"ProgWf"] "Zwf") in PApp (PRef well_founded, [| PRef z; PApp (PRef zwf, [| PMeta (Some 1) |]) |]) (* ["(and ?1 ?2)"] *) let and_pattern = @@ -252,14 +252,9 @@ let wrap_save_named b = Command.save_named b; register pf_id None -let wrap_save_anonymous_thm b id = +let wrap_save_anonymous b id = let pf_id = Pfedit.get_current_proof_name () in - Command.save_anonymous_thm b (string_of_id id); - register pf_id (Some id) - -let wrap_save_anonymous_remark b id = - let pf_id = Pfedit.get_current_proof_name () in - Command.save_anonymous_remark b (string_of_id id); + Command.save_anonymous b (string_of_id id); register pf_id (Some id) let _ = add "SaveNamed" @@ -272,14 +267,9 @@ let _ = add "DefinedNamed" wrap_save_named false) | _ -> assert false) -let _ = add "SaveAnonymousThm" +let _ = add "SaveAnonymous" (function [VARG_IDENTIFIER id] -> (fun () -> if not(Options.is_silent()) then show_script(); - wrap_save_anonymous_thm true id) + wrap_save_anonymous true id) | _ -> assert false) -let _ = add "SaveAnonymousRmk" - (function [VARG_IDENTIFIER id] -> - (fun () -> if not(Options.is_silent()) then show_script(); - wrap_save_anonymous_remark true id) - | _ -> assert false) |
