File tree Expand file tree Collapse file tree 3 files changed +22
-20
lines changed Expand file tree Collapse file tree 3 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -866,6 +866,11 @@ Deprecated names
866
866
raise ↦ _↑ʳ_
867
867
```
868
868
869
+ Issue #1726 : the relation ` _≺_ ` and its single constructor ` _≻toℕ_ `
870
+ have been deprecated in favour of their extensional equivalent ` _<_ `
871
+ but omitting the inversion principle which pattern matching on ` _≻toℕ_ `
872
+ would achieve; this instead is proxied by the property ` Data.Fin.Properties.toℕ< ` .
873
+
869
874
* In ` Data.Fin.Properties ` :
870
875
```
871
876
toℕ-raise ↦ toℕ-↑ʳ
@@ -876,6 +881,9 @@ Deprecated names
876
881
eq? ↦ inj⇒≟
877
882
```
878
883
884
+ Likewise under issue #1726 : the properties ` ≺⇒<′ ` and ` <′⇒≺ ` have been deprecated
885
+ in favour of their proxy counterparts ` <⇒<′ ` and ` <′⇒< ` .
886
+
879
887
* In ` Data.Fin.Permutation.Components ` :
880
888
```
881
889
reverse ↦ Data.Fin.Base.opposite
Original file line number Diff line number Diff line change @@ -332,32 +332,12 @@ NB argument order has been flipped:
332
332
the left-hand argument is the Fin m
333
333
the right-hand is the Nat index increment."
334
334
#-}
335
-
336
335
------------------------------------------------------------------------
337
336
-- _≺_
338
337
339
338
data _≺_ : ℕ → ℕ → Set where
340
339
_≻toℕ_ : ∀ n (i : Fin n) → toℕ i ≺ n
341
340
342
- ------------------------------------------------------------------------
343
- -- properties of _≺_
344
- -- introduce new proofs, actually simplified compared to original
345
- -- so that Data.Fin.Properties doesn't mention the constructor
346
-
347
- private
348
-
349
- z≺s : ∀ {n} → zero ≺ suc n
350
- z≺s = _ ≻toℕ zero
351
-
352
- s≺s : ∀ {m n} → m ≺ n → suc m ≺ suc n
353
- s≺s (n ≻toℕ i) = (suc n) ≻toℕ (suc i)
354
-
355
- -- new lemma, nowhere else used except to define deprecated property later
356
-
357
- <⇒≺ : ℕ._<_ ⇒ _≺_
358
- <⇒≺ {zero} z<s = z≺s
359
- <⇒≺ {suc m} (s<s lt) = s≺s (<⇒≺ lt)
360
-
361
341
-- now do the deprecation!
362
342
{-# WARNING_ON_USAGE _≺_
363
343
"Warning: _≺_ was deprecated in v2.0.
Original file line number Diff line number Diff line change 6
6
------------------------------------------------------------------------
7
7
8
8
{-# OPTIONS --without-K --safe #-}
9
+ {-# OPTIONS --warn=noUserWarning #-} -- for issue #1726
9
10
10
11
module Data.Fin.Properties where
11
12
@@ -1123,8 +1124,21 @@ Please use inj⇒≟ instead."
1123
1124
#-}
1124
1125
------------------------------------------------------------------------
1125
1126
-- deprecated properties of deprecated _≺_
1127
+ -- introduce new proofs, actually simplified compared to original
1128
+ -- so that Data.Fin.Properties doesn't mention the constructor
1126
1129
1127
1130
private
1131
+
1132
+ z≺s : ∀ {n} → zero ≺ suc n
1133
+ z≺s = _ ≻toℕ zero
1134
+
1135
+ s≺s : ∀ {m n} → m ≺ n → suc m ≺ suc n
1136
+ s≺s (n ≻toℕ i) = (suc n) ≻toℕ (suc i)
1137
+
1138
+ <⇒≺ : ℕ._<_ ⇒ _≺_
1139
+ <⇒≺ {zero} z<s = z≺s
1140
+ <⇒≺ {suc m} (s<s lt) = s≺s (<⇒≺ lt)
1141
+
1128
1142
≺⇒< : _≺_ ⇒ ℕ._<_
1129
1143
≺⇒< (n ≻toℕ i) = toℕ<n i
1130
1144
You can’t perform that action at this time.
0 commit comments