Skip to content

Commit

Permalink
Remove lemma-if-True and lemma-if-False
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed May 7, 2024
1 parent 7b3bca6 commit d6cbf0b
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lib/customer-deposit-wallet-pure/agda/Haskell/Data/Map.agda
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,6 @@ open import Haskell.Data.Maybe using
import Haskell.Prelude as List using (map)
import Haskell.Data.Set as Set

{-----------------------------------------------------------------------------
Helpers
------------------------------------------------------------------------------}

-- These lemmas are obvious substitutions,
-- but substitution in a subterm is sometimes cumbersome
-- with equational reasoning.
lemma-if-True
: {A B : Set} {{_ : Eq A}} (x x' : A) {t f : B}
(x == x') ≡ True
(if (x == x') then t else f) ≡ t
lemma-if-True _ _ eq1 rewrite eq1 = refl

lemma-if-False
: {A B : Set} {{_ : Eq A}} (x x' : A) {t f : B}
(x == x') ≡ False
(if (x == x') then t else f) ≡ f
lemma-if-False _ _ eq1 rewrite eq1 = refl

{-----------------------------------------------------------------------------
Data.Maybe
------------------------------------------------------------------------------}
Expand Down

0 comments on commit d6cbf0b

Please sign in to comment.