lean4-htt/src/Lean/Linter
Paul Reichert 98e4b2882f
refactor: migrate to new ranges (#8841)
This PR migrates usages of `Std.Range` to the new polymorphic ranges.

This PR unfortunately increases the transitive imports for
frequently-used parts of `Init` because the ranges now rely on iterators
in order to provide their functionality for types other than `Nat`.
However, iteration over ranges in compiled code is as efficient as
before in the examples I checked. This is because of a special
`IteratorLoop` implementation provided in the PR for this purpose.

There were two issues that were uncovered during migration:

* In `IndPredBelow.lean`, migrating the last remaining range causes
`compilerTest1.lean` to break. I have minimized the issue and came to
the conclusion it's a compiler bug. Therefore, I have not replaced said
old range usage yet (see #9186).
* In `BRecOn.lean`, we are publicly importing the ranges. Making this
import private should theoretically work, but there seems to be a
problem with the module system, causing the build to panic later in
`Init.Data.Grind.Poly` (see #9185).
* In `FuzzyMatching.lean`, inlining fails with the new ranges, which
would have led to significant slowdown. Therefore, I have not migrated
this file either.
2025-07-07 12:41:53 +00:00
..
Basic.lean chore: use note and hint' for message addenda (#8980) 2025-06-27 15:16:01 +00:00
Builtin.lean feat: implement "linter sets" that can be turned on as a group (#8106) 2025-05-14 23:30:42 +00:00
ConstructorAsVariable.lean perf: do not lint unused variables defined in tactics by default (#5338) 2024-10-17 09:55:11 +00:00
Deprecated.lean feat: implement "linter sets" that can be turned on as a group (#8106) 2025-05-14 23:30:42 +00:00
List.lean feat: deprecate Array.mkArray in favour of Array.replicate 2025-03-24 08:25:00 +01:00
MissingDocs.lean feat: allow structures to have non-bracketed binders (#8671) 2025-06-17 17:40:18 +00:00
Omit.lean feat: omit (#5000) 2024-08-21 13:22:34 +00:00
Sets.lean feat: implement "linter sets" that can be turned on as a group (#8106) 2025-05-14 23:30:42 +00:00
UnusedSimpArgs.lean refactor: migrate to new ranges (#8841) 2025-07-07 12:41:53 +00:00
UnusedVariables.lean feat: allow structures to have non-bracketed binders (#8671) 2025-06-17 17:40:18 +00:00
Util.lean feat: improve unused section variable warning (#5036) 2024-08-22 10:18:09 +00:00