Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ Additions to existing modules
```
NB. the latter is based on `IsCommutativeRing`, with the former on `IsSemiring`.

* In `Data.Bool`:
```agda
contradiction : b ≡ true → b ≡ false → Whatever
```

* In `Data.Fin.Permutation.Components`:
```agda
transpose[i,i,j]≡j : (i j : Fin n) → transpose i i j ≡ j
Expand Down
8 changes: 8 additions & 0 deletions src/Data/Bool.agda
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

module Data.Bool where

open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl)

------------------------------------------------------------------------
-- The boolean type and some operations

Expand All @@ -18,3 +20,9 @@ open import Data.Bool.Base public

open import Data.Bool.Properties public
using (T?; _≟_; _≤?_; _<?_)

------------------------------------------------------------------------
-- Other functions

contradiction : {w} {Whatever : Set w} {b} b ≡ true b ≡ false Whatever
contradiction refl ()