Skip to content

Commit 73ea68e

Browse files
authored
[ fix ] issue #2918 (#2920)
* [ fix ] issue #2918 * [ add ] deprecation warning
1 parent 79060e0 commit 73ea68e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Bug-fixes
1313

1414
* Fix a typo in `Algebra.Morphism.Construct.DirectProduct`.
1515

16+
* Fix a typo in `Data.Rational.Properties`: `nonPos*nonPos⇒nonPos` erroneously named,
17+
corrected to `nonPos*nonPos⇒nonNeg`.
18+
1619
* Fix a typo in `Function.Construct.Constant`.
1720

1821
Non-backwards compatible changes
@@ -76,6 +79,11 @@ Deprecated names
7679
¬∀⟶∃¬- ↦ ¬∀⇒∃¬
7780
```
7881

82+
* In `Data.Rational.Properties`:
83+
```agda
84+
nonPos*nonPos⇒nonPos ↦ nonPos*nonPos⇒nonNeg
85+
```
86+
7987
* In `Data.Vec.Properties`:
8088
```agda
8189
truncate-irrelevant ↦ Relation.Binary.PropositionalEquality.Core.refl

src/Data/Rational/Properties.agda

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,8 @@ nonNeg*nonPos⇒nonPos p q = nonPositive $ begin
13891389
0ℚ ∎
13901390
where open ≤-Reasoning
13911391

1392-
nonPos*nonPos⇒nonPos : p .{{_ : NonPositive p}} q .{{_ : NonPositive q}} NonNegative (p * q)
1393-
nonPos*nonPos⇒nonPos p q = nonNegative $ begin
1392+
nonPos*nonPos⇒nonNeg : p .{{_ : NonPositive p}} q .{{_ : NonPositive q}} NonNegative (p * q)
1393+
nonPos*nonPos⇒nonNeg p q = nonNegative $ begin
13941394
0ℚ ≡⟨ *-zeroʳ p ⟨
13951395
p * 0ℚ ≤⟨ *-monoˡ-≤-nonPos p (nonPositive⁻¹ q) ⟩
13961396
p * q ∎
@@ -1870,3 +1870,11 @@ Please use neg<pos instead."
18701870
open Data.Rational.Base public
18711871
using (+-rawMagma; +-0-rawGroup; *-rawMagma; +-*-rawNearSemiring; +-*-rawSemiring; +-*-rawRing)
18721872
renaming (+-0-rawMonoid to +-rawMonoid; *-1-rawMonoid to *-rawMonoid)
1873+
1874+
-- Version 2.4
1875+
1876+
nonPos*nonPos⇒nonPos = nonPos*nonPos⇒nonNeg
1877+
{-# WARNING_ON_USAGE nonPos*nonPos⇒nonPos
1878+
"Warning: nonPos*nonPos⇒nonPos was deprecated in v2.4.
1879+
Please use nonPos*nonPos⇒nonNeg instead."
1880+
#-}

0 commit comments

Comments
 (0)