diff options
author | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2017-09-03 21:04:12 +0200 |
---|---|---|
committer | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2017-09-03 21:10:03 +0200 |
commit | 5241a3f69a0ff8c9d33a02d1cf3ebc7bcead8819 (patch) | |
tree | 9d54ef73fcea4c4aa61be4525ba75f6ec588b31d /theories | |
parent | 3072bd9d080984833f5eb007bf15c6e9305619e3 (diff) |
Addressing BZ#5713 (classical_left/classical_right artificially restricted).
As explained in BZ#5713 report, the requirement for a non-empty
context is not needed, so we remove it.
Diffstat (limited to 'theories')
-rw-r--r-- | theories/Logic/Classical_Prop.v | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/theories/Logic/Classical_Prop.v b/theories/Logic/Classical_Prop.v index f7b53f1dc..a5ae07b64 100644 --- a/theories/Logic/Classical_Prop.v +++ b/theories/Logic/Classical_Prop.v @@ -97,12 +97,12 @@ Proof proof_irrelevance_cci classic. (* classical_left transforms |- A \/ B into ~B |- A *) (* classical_right transforms |- A \/ B into ~A |- B *) -Ltac classical_right := match goal with - | _:_ |-?X1 \/ _ => (elim (classic X1);intro;[left;trivial|right]) +Ltac classical_right := match goal with +|- ?X \/ _ => (elim (classic X);intro;[left;trivial|right]) end. Ltac classical_left := match goal with -| _:_ |- _ \/?X1 => (elim (classic X1);intro;[right;trivial|left]) +|- _ \/ ?X => (elim (classic X);intro;[right;trivial|left]) end. Require Export EqdepFacts. |