diff options
Diffstat (limited to 'proofs')
| -rw-r--r-- | proofs/pfedit.ml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/proofs/pfedit.ml b/proofs/pfedit.ml index 12f53c685d..e2f5ce94b4 100644 --- a/proofs/pfedit.ml +++ b/proofs/pfedit.ml @@ -175,7 +175,8 @@ let save_named opacity = and strength = ts.top_strength in let pfterm = extract_pftreestate pfs in declare_constant (id_of_string ident) - ({ const_entry_body = pfterm; const_entry_type = Some concl }, strength); + ({ const_entry_body = Cooked pfterm; const_entry_type = Some concl }, + strength); del_proof ident; message(ident ^ " is defined") @@ -187,11 +188,13 @@ let save_anonymous opacity save_ident n = let pfterm = extract_pftreestate pfs in if ident = "Unnamed_thm" then declare_constant (id_of_string save_ident) - ({ const_entry_body = pfterm; const_entry_type = Some concl }, strength) + ({ const_entry_body = Cooked pfterm; const_entry_type = Some concl }, + strength) else begin message("Overriding name " ^ ident ^ " and using " ^ save_ident); declare_constant (id_of_string save_ident) - ({ const_entry_body = pfterm; const_entry_type = Some concl }, strength) + ({ const_entry_body = Cooked pfterm; const_entry_type = Some concl }, + strength) end; del_proof ident; message(save_ident ^ " is defined") |
