Skip to content

Commit da8c66a

Browse files
committed
[add]: Data.Bool.Properties.if-swap-then
1 parent e3ba709 commit da8c66a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Data/Bool/Properties.agda

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

753+
if-swap-then : b c {x y : A}
754+
(if b then (if c then x else y) else y)
755+
≡ (if c then (if b then x else y) else y)
756+
if-swap-then false false = refl
757+
if-swap-then false true = refl
758+
if-swap-then true _ = refl
759+
753760
if-swap-else : b c {x y : A}
754761
(if b then x else (if c then x else y))
755762
≡ (if c then x else (if b then x else y))

0 commit comments

Comments
 (0)