Skip to content

Commit 844de21

Browse files
authored
[ fix #1313 ] List/**/All/Properties.map-id has too many parameters (#1314)
1 parent f3589b4 commit 844de21

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Highlights
99
Bug-fixes
1010
---------
1111

12+
* Fixed List.Relation.Unary.All.Properties.map-id, which was abstracted over
13+
unused module parameters.
14+
1215
Non-backwards compatible changes
1316
--------------------------------
1417

src/Data/List/Relation/Unary/All/Properties.agda

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,17 +173,19 @@ module _ {P : A → Set p} where
173173
------------------------------------------------------------------------
174174
-- map
175175

176+
module _ {P : Pred A p} where
177+
178+
map-id : {xs} (pxs : All P xs) All.map id pxs ≡ pxs
179+
map-id [] = refl
180+
map-id (px ∷ pxs) = cong (px ∷_) (map-id pxs)
181+
176182
module _ {P : Pred A p} {Q : Pred A q} {f : P ⋐ Q} where
177183

178184
map-cong : {xs} {g : P ⋐ Q} (pxs : All P xs)
179185
( {x} f {x} ≗ g) All.map f pxs ≡ All.map g pxs
180186
map-cong [] _ = refl
181187
map-cong (px ∷ pxs) feq = cong₂ _∷_ (feq px) (map-cong pxs feq)
182188

183-
map-id : {xs} (pxs : All P xs) All.map id pxs ≡ pxs
184-
map-id [] = refl
185-
map-id (px ∷ pxs) = cong (px ∷_) (map-id pxs)
186-
187189
map-compose : {r} {R : Pred A r} {xs} {g : Q ⋐ R} (pxs : All P xs)
188190
All.map g (All.map f pxs) ≡ All.map (g ∘ f) pxs
189191
map-compose [] = refl

0 commit comments

Comments
 (0)