Skip to content

Commit 47ee0e7

Browse files
committed
[add]: Data.Bool.Properties.if-idem
1 parent c8aa5ce commit 47ee0e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Data/Bool/Properties.agda

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,11 @@ if-eta : ∀ b {x : A} →
750750
if-eta false = refl
751751
if-eta true = refl
752752

753+
if-idem : 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 false = refl
756+
if-idem true = refl
757+
753758
if-swap-then : b c {x y : A}
754759
(if b then (if c then x else y) else y)
755760
≡ (if c then (if b then x else y) else y)

0 commit comments

Comments
 (0)