From 891a2bbb018ef4ffba30f05de54f32b90dde68ec Mon Sep 17 00:00:00 2001 From: herbelin Date: Mon, 13 Oct 2003 16:09:21 +0000 Subject: Admitted rendu independant de Conjecture: plus pratique en mode interactif git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4624 85f007b7-540e-0410-9357-904b9bb8a0f7 --- toplevel/command.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toplevel/command.ml b/toplevel/command.ml index df3dc78d5a..9b0749c2e0 100644 --- a/toplevel/command.ml +++ b/toplevel/command.ml @@ -670,6 +670,7 @@ let save id const kind hook = let _,kn = declare_constant id (DefinitionEntry const, k) in (Global, ConstRef kn) in hook l r; + if kind = IsGlobal (Proof Conjecture) then warning "Proved conjecture"; Pfedit.delete_current_proof (); definition_message id @@ -700,8 +701,10 @@ let save_anonymous_with_strength kind opacity save_ident = let admit () = let (id,k,typ,hook) = Pfedit.current_proof_statement () in +(* Contraire aux besoins d'interactivité... if k <> IsGlobal (Proof Conjecture) then error "Only statements declared as conjecture can be admitted"; +*) let (_,kn) = declare_constant id (ParameterEntry typ, IsConjecture) in hook Global (ConstRef kn); Pfedit.delete_current_proof (); -- cgit v1.2.3