diff options
| author | Enrico Tassi | 2020-02-28 16:51:24 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2020-02-28 16:51:24 +0100 |
| commit | 5c7d89641085e125471db089239e73a064073024 (patch) | |
| tree | d1a170a097b1b4b57232613948b3b7fec9f5865f /stm | |
| parent | aeca986089d005054496ed4bcf1b920e8fa02173 (diff) | |
| parent | 721b6704a0fbee1be627c67e0a883fa40a81deb6 (diff) | |
Merge PR #11609: [stm] Use Default Proof Using only with Proof
Diffstat (limited to 'stm')
| -rw-r--r-- | stm/stm.ml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stm/stm.ml b/stm/stm.ml index c79a1eed3d..95c58b9043 100644 --- a/stm/stm.ml +++ b/stm/stm.ml @@ -2157,22 +2157,23 @@ let collect_proof keep cur hd brkind id = let has_default_proof_using = Option.has_some (Proof_using.get_default_proof_using ()) in let proof_using_ast = function | VernacProof(_,Some _) -> true + | VernacProof(_,None) -> has_default_proof_using | _ -> false in let proof_using_ast = function | Some (_, v) when proof_using_ast v.expr.CAst.v.expr && (not (Vernacprop.has_Fail v.expr)) -> Some v | _ -> None in - let has_proof_using x = has_default_proof_using || (proof_using_ast x <> None) in + let has_proof_using x = proof_using_ast x <> None in let proof_no_using = function - | VernacProof(t,None) -> t + | VernacProof(t,None) -> if has_default_proof_using then None else t | _ -> assert false in let proof_no_using = function | Some (_, v) -> proof_no_using v.expr.CAst.v.expr, v | _ -> assert false in let has_proof_no_using = function - | VernacProof(_,None) -> true + | VernacProof(_,None) -> not has_default_proof_using | _ -> false in let has_proof_no_using = function |
