Skip to content

Commit 368d54f

Browse files
Rename < and <' proofs in Data.Integer.Properties (#1112)
1 parent b69dc60 commit 368d54f

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,6 @@ attached to all deprecated names to discourage their use.
266266
decSetoid ↦ ≡-decSetoid
267267
```
268268

269-
* In `Data.Integer.Properties`:
270-
```agda
271-
[1+m]*n≡n+m*n ↦ suc-*
272-
```
273-
274269
* In `Data.List.Relation.Unary.All.Properties`:
275270
```agda
276271
Any¬→¬All ↦ Any¬⇒¬All
@@ -605,6 +600,12 @@ Other minor additions
605600
∣p∣⊔∣q∣≤∣p∪q∣ : ∣ p ∣ ⊔ ∣ q ∣ ≤ ∣ p ∪ q ∣
606601
```
607602

603+
* Added new proofs to `Data.Integer.Properties`:
604+
```agda
605+
suc[i]≤j⇒i<j : sucℤ i ≤ j → i < j
606+
i<j⇒suc[i]≤j : i < j → sucℤ i ≤ j
607+
```
608+
608609
* Added new proofs to `Data.Maybe.Properties`:
609610
```agda
610611
map-nothing : ma ≡ nothing → map f ma ≡ nothing

src/Data/Integer/Properties.agda

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -945,17 +945,17 @@ suc-mono (-≤+ {m}) = 0⊖m≤+ m
945945
suc-mono (-≤- n≤m) = ⊖-monoʳ-≥-≤ zero n≤m
946946
suc-mono (+≤+ m≤n) = +≤+ (s≤s m≤n)
947947

948-
m+1≤n⇒m<n : {m n} sucℤ mn m < n
949-
m+1≤n⇒m<n {+ m} {+ _} (+≤+ m≤n) = +<+ m≤n
950-
m+1≤n⇒m<n { -[1+ 0 ]} {+ n} p = -<+
951-
m+1≤n⇒m<n { -[1+ suc m ]} {+ n} -≤+ = -<+
952-
m+1≤n⇒m<n { -[1+ suc m ]} { -[1+ n ]} (-≤- n≤m) = -<- (ℕ.s≤s n≤m)
953-
954-
m<n⇒m+1≤n : {m n} m < n sucℤ mn
955-
m<n⇒m+1≤n {+ _} {+ _} (+<+ m<n) = +≤+ m<n
956-
m<n⇒m+1≤n { -[1+ 0 ]} {+ _} -<+ = +≤+ z≤n
957-
m<n⇒m+1≤n { -[1+ suc m ]} { -[1+ _ ]} (-<- n<m) = -≤- (ℕ.≤-pred n<m)
958-
m<n⇒m+1≤n { -[1+ suc m ]} {+ _} -<+ = -≤+
948+
suc[i]≤j⇒i<j : {i j} sucℤ ij i < j
949+
suc[i]≤j⇒i<j {+ i} {+ _} (+≤+ i≤j) = +<+ i≤j
950+
suc[i]≤j⇒i<j { -[1+ 0 ]} {+ j} p = -<+
951+
suc[i]≤j⇒i<j { -[1+ suc i ]} {+ j} -≤+ = -<+
952+
suc[i]≤j⇒i<j { -[1+ suc i ]} { -[1+ j ]} (-≤- j≤i) = -<- (ℕ.s≤s j≤i)
953+
954+
i<j⇒suc[i]≤j : {i j} i < j sucℤ ij
955+
i<j⇒suc[i]≤j {+ _} {+ _} (+<+ i<j) = +≤+ i<j
956+
i<j⇒suc[i]≤j { -[1+ 0 ]} {+ _} -<+ = +≤+ z≤n
957+
i<j⇒suc[i]≤j { -[1+ suc i ]} { -[1+ _ ]} (-<- j<i) = -≤- (ℕ.≤-pred j<i)
958+
i<j⇒suc[i]≤j { -[1+ suc i ]} {+ _} -<+ = -≤+
959959

960960
------------------------------------------------------------------------
961961
-- Properties of pred
@@ -1901,6 +1901,6 @@ Please use _<_ instead."
19011901

19021902
[1+m]*n≡n+m*n = suc-*
19031903
{-# WARNING_ON_USAGE [1+m]*n≡n+m*n
1904-
"Warning: [1+m]*n≡n+m*n was deprecated in v1.1.
1904+
"Warning: [1+m]*n≡n+m*n was deprecated in v1.2.
19051905
Please use suc-* instead."
19061906
#-}

0 commit comments

Comments
 (0)