Skip to content

Commit 82c1844

Browse files
kim-emmathlib4-botleanprover-community-mathlib4-botleanprover-community-mathlib4-botgithub-actions
committed
chore: bump toolchain to v4.28.0-rc1 (#1634)
Co-authored-by: mathlib4-bot <github-mathlib4-bot@leanprover.zulipchat.com> Co-authored-by: leanprover-community-mathlib4-bot <129911861+leanprover-community-mathlib4-bot@users.noreply.github.com> Co-authored-by: leanprover-community-mathlib4-bot <leanprover-community-mathlib4-bot@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Kyle Miller <kmill31415@gmail.com> Co-authored-by: Johan Commelin <johan@commelin.net> Co-authored-by: Matthew Ballard <matt@mrb.email> Co-authored-by: Markus Himmel <markus@lean-fro.org> Co-authored-by: Mario Carneiro <di.gama@gmail.com> Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch> Co-authored-by: Joachim Breitner <mail@joachim-breitner.de> Co-authored-by: Mac Malone <mac@lean-fro.org> Co-authored-by: Rob23oba <152706811+Rob23oba@users.noreply.github.com> Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Paul Reichert <6992158+datokrat@users.noreply.github.com> Co-authored-by: Parth Shastri <31370288+cppio@users.noreply.github.com> Co-authored-by: Joseph Rotella <7482866+jrr6@users.noreply.github.com> Co-authored-by: François G. Dorais <fgdorais@gmail.com> Co-authored-by: Marc Huisinga <mhuisi@protonmail.com> Co-authored-by: Sebastian Graf <sgraf1337@gmail.com> Co-authored-by: Eric Wieser <efw@google.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d5c4ff1 commit 82c1844

File tree

13 files changed

+18
-11
lines changed

13 files changed

+18
-11
lines changed

Batteries/Data/Array/Match.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ partial def Matcher.next? [BEq α] [Std.Stream σ α] (m : Matcher α) (stream :
105105
next? { m with state } stream
106106

107107
namespace Matcher
108-
open Std.Iterators
108+
open Std Std.Iterators
109109

110110
/-- Iterator transformer for KMP matcher. -/
111111
protected structure Iterator (σ n α) [BEq α] (m : Matcher α) [Iterator σ n α] where
@@ -135,7 +135,7 @@ instance [Monad n] [BEq α] (m : Matcher α) [Iterator σ n α] :
135135

136136
private def finitenessRelation [Monad n] [BEq α] (m : Matcher α) [Iterator σ n α] [Finite σ n] :
137137
FinitenessRelation (m.Iterator σ n α) n where
138-
rel := InvImage IterM.IsPlausibleSuccessorOf fun it => it.internalState.inner
138+
Rel := InvImage IterM.IsPlausibleSuccessorOf fun it => it.internalState.inner
139139
wf := InvImage.wf _ Finite.wf
140140
subrelation {it it'} h := by
141141
obtain ⟨_, hsucc, step, rfl⟩ := h

Batteries/Data/Char/AsciiCasing.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: François G. Dorais
55
-/
66
module
7+
/- Failing on nightly-2025-12-18
78
89
public import Batteries.Data.Char.Basic
910
public import Batteries.Tactic.Basic
@@ -200,3 +201,4 @@ ASCII-case insensitive implementation comparison returning an `Ordering`. Useful
200201
-/
201202
def cmpCaseInsensitiveAsciiOnly (c₁ c₂ : Char) : Ordering :=
202203
compare c₁.caseFoldAsciiOnly c₂.caseFoldAsciiOnly
204+
-/

Batteries/Data/Range/Lemmas.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public import Batteries.Tactic.Alias
1010

1111
@[expose] public section
1212

13-
namespace Std.Range
13+
namespace Std.Legacy.Range
1414

1515
theorem size_stop_le_start : ∀ r : Range, r.stop ≤ r.start → r.size = 0
1616
| ⟨start, stop, step, _⟩, h => by

Batteries/Data/String/AsciiCasing.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: Christopher Bailey, F. G. Dorais
55
-/
66
module
7-
7+
/- Failing on nightly-2025-12-18
88
public import Batteries.Data.Char
99
public import Batteries.Data.Char.AsciiCasing
1010
@@ -84,3 +84,4 @@ ASCII-case insensitive implementation comparison returning an `Ordering`. Useful
8484
@[implemented_by cmpCaseInsensitiveAsciiOnlyImpl]
8585
def cmpCaseInsensitiveAsciiOnly (s₁ s₂ : String) : Ordering :=
8686
compare s₁.caseFoldAsciiOnly s₂.caseFoldAsciiOnly
87+
-/

Batteries/Tactic/HelpCmd.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private def elabHelpOption (id : Option Ident) : CommandElabM Unit := do
7474
| .ofNat val => s!"Nat := {repr val}"
7575
| .ofInt val => s!"Int := {repr val}"
7676
| .ofSyntax val => s!"Syntax := {repr val}"
77-
if let some val := opts.find (.mkSimple name) then
77+
if let some val := opts.find? (.mkSimple name) then
7878
msg1 := s!"{msg1} (currently: {val})"
7979
msg := msg ++ .nest 2 (f!"option {name} : {msg1}" ++ .line ++ decl.descr) ++ .line ++ .line
8080
logInfo msg

Batteries/Tactic/Trans.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ initialize registerTraceClass `Tactic.trans
2828
initialize transExt :
2929
SimpleScopedEnvExtension (Name × Array DiscrTree.Key) (DiscrTree Name) ←
3030
registerSimpleScopedEnvExtension {
31-
addEntry := fun dt (n, ks) => dt.insertCore ks n
31+
addEntry := fun dt (n, ks) => dt.insertKeyValue ks n
3232
initial := {}
3333
}
3434

Batteries/Util/Cache.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def DiscrTreeCache.mk [BEq α] (profilingName : String)
147147
IO (DiscrTreeCache α) :=
148148
let updateTree := fun name constInfo tree => do
149149
return (← processDecl name constInfo).foldl (init := tree) fun t (k, v) =>
150-
t.insertCore k v
150+
t.insertKeyValue k v
151151
let addDecl := fun name constInfo (tree₁, tree₂) =>
152152
return (← updateTree name constInfo tree₁, tree₂)
153153
let addLibraryDecl := fun name constInfo (tree₁, tree₂) =>

BatteriesTest/Char.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Batteries.Data.Char
22

3+
/- Failing on nightly-2025-12-18
34
#guard Char.caseFoldAsciiOnly 'A' == 'a'
45
#guard Char.caseFoldAsciiOnly 'a' == 'a'
56
#guard Char.caseFoldAsciiOnly 'À' == 'À'
@@ -19,3 +20,4 @@ import Batteries.Data.Char
1920
#guard Char.cmpCaseInsensitiveAsciiOnly 'a' 'b' == .lt
2021
#guard Char.cmpCaseInsensitiveAsciiOnly 'γ' 'Γ' == .gt
2122
#guard Char.cmpCaseInsensitiveAsciiOnly 'ä' 'Ä' == .gt
23+
-/

BatteriesTest/String.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/- Failing on nightly-2025-12-18
12
import Batteries.Data.String.AsciiCasing
23
34
#guard "ABC".caseFoldAsciiOnly == "abc"
@@ -42,3 +43,4 @@ import Batteries.Data.String.AsciiCasing
4243
("🔰🍑", "😂🔰🍑aaa")
4344
] |>.all fun (a, b) =>
4445
a ≠ b && !(a.beqCaseInsensitiveAsciiOnly b) && a.cmpCaseInsensitiveAsciiOnly b != .eq
46+
-/

BatteriesTest/conv_equals.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Batteries.Tactic.Basic
1010
-- and keeping the doc up-to-date
1111
-- (only `guard_target` added)
1212

13-
/-- warning: declaration uses 'sorry' -/
13+
/-- warning: declaration uses `sorry` -/
1414
#guard_msgs in
1515
example (P : (Nat → Nat) → Prop) : P (fun n => n - n) := by
1616
conv in (_ - _) => equals 0 =>

0 commit comments

Comments
 (0)