Skip to content

Commit

Permalink
Merge pull request #1947 from Alizter/ps/rr/bool__add_convenient_vari…
Browse files Browse the repository at this point in the history
…ant_of_negb_ne

Bool: add convenient variant of negb_ne
  • Loading branch information
Alizter authored May 4, 2024
2 parents 010c169 + bfb2b40 commit 72ced09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions theories/Types/Bool.v
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ Proof.
- intros oops; case (oops idpath).
Defined.

(** This version of [negb_ne] is more convenient to [destruct] against. *)
Definition negb_ne' {b1 b2 : Bool}
: (b1 <> b2) -> (negb b1 = b2).
Proof.
intros oops.
symmetry.
apply negb_ne.
exact (symmetric_neq oops).
Defined.

(** ** Products as [forall] over [Bool] *)

Section BoolForall.
Expand Down

0 comments on commit 72ced09

Please sign in to comment.