We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c80f6 commit 4821899Copy full SHA for 4821899
src/Data/Bool/Properties.agda
@@ -750,6 +750,16 @@ if-eta : ∀ b {x : A} →
750
if-eta false = refl
751
if-eta true = refl
752
753
+if-idem-then : ∀ b {x y : A} →
754
+ (if b then (if b then x else y) else y) ≡ (if b then x else y)
755
+if-idem-then false = refl
756
+if-idem-then true = refl
757
+
758
+if-idem-else : ∀ b {x y : A} →
759
+ (if b then x else (if b then x else y)) ≡ (if b then x else y)
760
+if-idem-else false = refl
761
+if-idem-else true = refl
762
763
if-swap-then : ∀ b c {x y : A} →
764
(if b then (if c then x else y) else y)
765
≡ (if c then (if b then x else y) else y)
0 commit comments