Skip to content

Commit 72ced09

Browse files
authored
Merge pull request #1947 from Alizter/ps/rr/bool__add_convenient_variant_of_negb_ne
Bool: add convenient variant of negb_ne
2 parents 010c169 + bfb2b40 commit 72ced09

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

theories/Types/Bool.v

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ Proof.
9292
- intros oops; case (oops idpath).
9393
Defined.
9494

95+
(** This version of [negb_ne] is more convenient to [destruct] against. *)
96+
Definition negb_ne' {b1 b2 : Bool}
97+
: (b1 <> b2) -> (negb b1 = b2).
98+
Proof.
99+
intros oops.
100+
symmetry.
101+
apply negb_ne.
102+
exact (symmetric_neq oops).
103+
Defined.
104+
95105
(** ** Products as [forall] over [Bool] *)
96106

97107
Section BoolForall.

0 commit comments

Comments
 (0)