Skip to content

Commit 019e8ae

Browse files
jamesmckinnaandreasabel
authored andcommitted
Fixes typos identified in #2154 (#2158)
1 parent 24c05d2 commit 019e8ae

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

CHANGELOG.md

+29-29
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ Non-backwards compatible changes
539539
3. Finally, if the above approaches are not viable then you may be forced to explicitly
540540
use `cong` combined with a lemma that proves the old reduction behaviour.
541541
542-
* Similarly, in order to prevent reduction, the equality `_≃_` in `Data.Rational.Base`
542+
* Similarly, in order to prevent reduction, the equality `_≃_` in `Data.Rational.Base`
543543
has been made into a data type with the single constructor `*≡*`. The destructor `drop-*≡*`
544544
has been added to `Data.Rational.Properties`.
545545
@@ -606,7 +606,7 @@ Non-backwards compatible changes
606606
with the consequence that all arguments involving about accesibility and
607607
wellfoundedness proofs were polluted by almost-always-inferrable explicit
608608
arguments for the `y` position. The definition has now been changed to
609-
make that argument *implicit*, as
609+
make that argument *implicit*, as
610610
```agda
611611
WfRec : Rel A r → ∀ {ℓ} → RecStruct A ℓ _
612612
WfRec _<_ P x = ∀ {y} → y < x → P y
@@ -931,40 +931,40 @@ Non-backwards compatible changes
931931
as would be expected. Instead it omitted several fields like irreflexivity as they were derivable from the
932932
proof of trichotomy. However, this led to problems further up the hierarchy where bundles such as `StrictTotalOrder`
933933
which contained multiple distinct proofs of `IsStrictPartialOrder`.
934-
935-
* To remedy this the definition of `IsStrictTotalOrder` has been changed to so that it builds upon
936-
`IsStrictPartialOrder` as would be expected.
934+
935+
* To remedy this the definition of `IsStrictTotalOrder` has been changed to so that it builds upon
936+
`IsStrictPartialOrder` as would be expected.
937937

938938
* To aid migration, the old record definition has been moved to `Relation.Binary.Structures.Biased`
939-
which contains the `isStrictTotalOrderᶜ` smart constructor (which is re-exported by `Relation.Binary`) .
939+
which contains the `isStrictTotalOrderᶜ` smart constructor (which is re-exported by `Relation.Binary`) .
940940
Therefore the old code:
941941
```agda
942942
<-isStrictTotalOrder : IsStrictTotalOrder _≡_ _<_
943943
<-isStrictTotalOrder = record
944-
{ isEquivalence = isEquivalence
945-
; trans = <-trans
946-
; compare = <-cmp
947-
}
944+
{ isEquivalence = isEquivalence
945+
; trans = <-trans
946+
; compare = <-cmp
947+
}
948948
```
949949
can be migrated either by updating to the new record fields if you have a proof of `IsStrictPartialOrder`
950950
available:
951951
```agda
952952
<-isStrictTotalOrder : IsStrictTotalOrder _≡_ _<_
953953
<-isStrictTotalOrder = record
954-
{ isStrictPartialOrder = <-isStrictPartialOrder
955-
; compare = <-cmp
956-
}
954+
{ isStrictPartialOrder = <-isStrictPartialOrder
955+
; compare = <-cmp
956+
}
957957
```
958958
or simply applying the smart constructor to the record definition as follows:
959959
```agda
960960
<-isStrictTotalOrder : IsStrictTotalOrder _≡_ _<_
961961
<-isStrictTotalOrder = isStrictTotalOrderᶜ record
962-
{ isEquivalence = isEquivalence
963-
; trans = <-trans
964-
; compare = <-cmp
965-
}
962+
{ isEquivalence = isEquivalence
963+
; trans = <-trans
964+
; compare = <-cmp
965+
}
966966
```
967-
967+
968968
### Changes to triple reasoning interface
969969

970970
* The module `Relation.Binary.Reasoning.Base.Triple` now takes an extra proof that the strict
@@ -987,7 +987,7 @@ Non-backwards compatible changes
987987
Data.Vec.Relation.Binary.Lex.NonStrict
988988
Relation.Binary.Reasoning.StrictPartialOrder
989989
Relation.Binary.Reasoning.PartialOrder
990-
```
990+
```
991991

992992
### Other
993993

@@ -1165,7 +1165,7 @@ Non-backwards compatible changes
11651165
* `excluded-middle` in `Relation.Nullary.Decidable.Core` has been renamed to
11661166
`¬¬-excluded-middle`.
11671167

1168-
* `iterate` and `replicate` in `Data.Vec.Base` and `Data.Vec.Functional`
1168+
* `iterate` and `replicate` in `Data.Vec.Base` and `Data.Vec.Functional`
11691169
now take the length of vector, `n`, as an explicit rather than an implicit argument.
11701170
```agda
11711171
iterate : (A → A) → A → ∀ n → Vec A n
@@ -1231,11 +1231,11 @@ Major improvements
12311231

12321232
### More modular design of equational reasoning.
12331233

1234-
* Have introduced a new module `Relation.Binary.Reasoning.Syntax` which exports
1234+
* Have introduced a new module `Relation.Binary.Reasoning.Syntax` which exports
12351235
a range of modules containing pre-existing reasoning combinator syntax.
12361236

1237-
* This makes it possible to add new or rename existing reasoning combinators to a
1238-
pre-existing `Reasoning` module in just a couple of lines
1237+
* This makes it possible to add new or rename existing reasoning combinators to a
1238+
pre-existing `Reasoning` module in just a couple of lines
12391239
(e.g. see `∣-Reasoning` in `Data.Nat.Divisibility`)
12401240

12411241
Deprecated modules
@@ -1813,7 +1813,7 @@ Deprecated names
18131813
```agda
18141814
_↔⟨⟩_ ↦ _≡⟨⟩_
18151815
```
1816-
1816+
18171817
* In `Foreign.Haskell.Either` and `Foreign.Haskell.Pair`:
18181818
```
18191819
toForeign ↦ Foreign.Haskell.Coerce.coerce
@@ -2706,7 +2706,7 @@ Additions to existing modules
27062706
toℕ-inverseˡ : Inverseˡ _≡_ _≡_ toℕ fromℕ
27072707
toℕ-inverseʳ : Inverseʳ _≡_ _≡_ toℕ fromℕ
27082708
toℕ-inverseᵇ : Inverseᵇ _≡_ _≡_ toℕ fromℕ
2709-
2709+
27102710
<-asym : Asymmetric _<_
27112711
```
27122712

@@ -3163,7 +3163,7 @@ Additions to existing modules
31633163
∀ {m n} → _Respectsʳ_ (_<_ {m} {n}) _≋_
31643164
<-wellFounded : Transitive _≈_ → _≺_ Respectsʳ _≈_ → WellFounded _≺_ →
31653165
∀ {n} → WellFounded (_<_ {n})
3166-
```
3166+
```
31673167

31683168
* Added new functions in `Data.Vec.Relation.Unary.Any`:
31693169
```
@@ -3190,9 +3190,9 @@ Additions to existing modules
31903190
* Added new application operator synonym to `Function.Bundles`:
31913191
```agda
31923192
_⟨$⟩_ : Func From To → Carrier From → Carrier To
3193-
_⟨$⟩_ = Func.to
3193+
_⟨$⟩_ = Func.to
31943194
```
3195-
3195+
31963196
* Added new proofs in `Function.Construct.Symmetry`:
31973197
```
31983198
bijective : Bijective ≈₁ ≈₂ f → Symmetric ≈₂ → Transitive ≈₂ → Congruent ≈₁ ≈₂ f → Bijective ≈₂ ≈₁ f⁻¹
@@ -3888,7 +3888,7 @@ This is a full list of proofs that have changed form to use irrelevant instance
38883888
blockerAll : List Blocker → Blocker
38893889
blockTC : Blocker → TC A
38903890
```
3891-
3891+
38923892
* Added new file `Relation.Binary.Reasoning.Base.Apartness`
38933893

38943894
This is how to use it:

src/Function/Bundles.agda

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ module _ (From : Setoid a ℓ₁) (To : Setoid b ℓ₂) where
182182

183183
open Func toFunction public
184184
using (module Eq₁; module Eq₂)
185-
renaming (isCongruent to to-isCongrunet)
185+
renaming (isCongruent to to-isCongruent)
186186

187187
fromFunction : Func To From
188188
fromFunction = record
@@ -192,7 +192,7 @@ module _ (From : Setoid a ℓ₁) (To : Setoid b ℓ₂) where
192192

193193
open Func fromFunction public
194194
using ()
195-
renaming (isCongruent to from-isCongrunet)
195+
renaming (isCongruent to from-isCongruent)
196196

197197

198198
record LeftInverse : Set (a ⊔ b ⊔ ℓ₁ ⊔ ℓ₂) where
@@ -481,7 +481,7 @@ module _ {A : Set a} {B : Set b} where
481481

482482
module _ {From : Setoid a ℓ₁} {To : Setoid b ℓ₂} where
483483
open Setoid
484-
484+
485485
infixl 5 _⟨$⟩_
486486
_⟨$⟩_ : Func From To Carrier From Carrier To
487487
_⟨$⟩_ = Func.to

0 commit comments

Comments
 (0)