diff options
| author | herbelin | 2003-10-13 16:09:21 +0000 |
|---|---|---|
| committer | herbelin | 2003-10-13 16:09:21 +0000 |
| commit | 891a2bbb018ef4ffba30f05de54f32b90dde68ec (patch) | |
| tree | 469346ef6034b4b9ea85ed1e1a8a1b7673b0b8e1 | |
| parent | 07a6858653428d4142583ca8feec8f57d6064de0 (diff) | |
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
| -rw-r--r-- | toplevel/command.ml | 3 |
1 files changed, 3 insertions, 0 deletions
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 (); |
