lean4-htt/src/Lean/Widget
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: remove duplicate instances (#8397) 2025-05-19 04:36:06 +00:00
Diff.lean refactor: migrate to new ranges (#8841) 2025-07-07 12:41:53 +00:00
InteractiveCode.lean feat: reusable rpc refs (#8105) 2025-06-03 12:35:12 +00:00
InteractiveDiagnostic.lean refactor: migrate all usages of old slice notation (#9000) 2025-06-27 18:52:07 +00:00
InteractiveGoal.lean feat: use nondep flag in Expr.letE and LocalContext.ldecl (#8804) 2025-06-22 21:54:57 +00:00
TaggedText.lean chore: rename Array.back to back! (#5897) 2024-10-31 09:18:18 +00:00
Types.lean chore: remove old documentation site (#7974) 2025-05-14 14:31:33 +00:00
UserWidget.lean feat: add labeled subcomponents and helper functions for error messages (#8225) 2025-05-07 21:15:27 +00:00