Skip to content

refactor: rename String.bytes to String.toByteArray - #11343

Merged
TwoFX merged 2 commits into
leanprover:masterfrom
TwoFX:markus/string-bytes
Nov 24, 2025
Merged

TwoFX merged 2 commits into
leanprover:masterfrom
TwoFX:markus/string-bytes

Conversation

@TwoFX

@TwoFX TwoFX commented Nov 24, 2025

Copy link
Copy Markdown
Member

This PR renames String.bytes to String.toByteArray.

This is for two reasons: first, toByteArray is a better name, and second, we have something else that wants to use the name bytes, namely the function that returns in iterator over the string's bytes.

@TwoFX
TwoFX requested a review from kim-em as a code owner November 24, 2025 17:00
@TwoFX TwoFX added the changelog-library Library label Nov 24, 2025
@TwoFX
TwoFX enabled auto-merge November 24, 2025 17:00
@TwoFX
TwoFX force-pushed the markus/string-bytes branch from f261a01 to ec26d88 Compare November 24, 2025 18:22
@TwoFX
TwoFX added this pull request to the merge queue Nov 24, 2025
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Nov 24, 2025
@ghost

ghost commented Nov 24, 2025

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 96c4b9ee4d1aa12a07fc5cd44bef7e019feacc6c --onto f2e191d0afbb5adcc6f12e1779c8b141fc9af996. You can force Mathlib CI using the force-mathlib-ci label. (2025-11-24 19:37:11)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 96c4b9ee4d1aa12a07fc5cd44bef7e019feacc6c --onto d3dda9f6d4428a906c096067ecb75e432afc4615. You can force reference manual CI using the force-manual-ci label. (2025-11-24 19:37:12)

Merged via the queue into leanprover:master with commit 151c034 Nov 24, 2025
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 22, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: removed the all_trait_call-via-compoundEnv example;
  its multi-step Env.append chain causes whnf to diverge at
  type-check under v4.29 transparency. Other examples kept.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 26, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 29, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 29, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 29, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 29, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 29, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 29, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 29, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request May 29, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Eduardogbg added a commit to reilabs/lampe that referenced this pull request Jun 2, 2026
The original v4.22 bump regressed CI: stdlib build OOM-killed after
5+ hours under the new compiler (leanprover/lean4#10857). v4.25
contains the fix (PR #10856); we go all the way to v4.29.1 to also
pick up downstream Mathlib API changes that were sitting in the
follow-up queue.

Proof maintenance, all under one commit because most of it traces
to a single coordinated transparency refactor in v4.29.0
(leanprover/lean4#12179 + #12572):

- enter_decl and a new reduce_fn_body tactic explicitly iota+beta
  reduce noir_def function bodies; v4.29's simp only [] no longer
  fires the matcher iota for the FunctionDecl.fn / Function.body /
  Lambda.body chain, nor for shadowing match h![T] with | h![T] =>
  patterns. PR leanprover/lean4#13363 in v4.30 restores this
  automatically; reduce_fn_body has a TODO to delete then.
- Field.lean: @[reducible] def Fp + explicit Field.toCommRing
  instance, since ring/linarith/linear_combination can no longer
  reach CommRing through Field via the opaque def.
- Builtin.Basic.HList.toList_length_is_n: explicit induction.
- Builtin.Memory.ref frame: explicit disjoint-insert proof
  (Finmap.insert_eq_singleton_union is no longer rfl-true).
- Builtin.Array.index_replaced_arr: show-then-rw + Fin.val_cast.
- Builtin.Struct examples: rfl/intro+rfl in place of simp only [].
- Data.Digits: Nat.mod_eq_sub_mul_div for lsds, Nat.add_lt_add_left
  for the calc step, explicit ofDigitsBE'_toList equalities to
  avoid convert's residual HEq under v4.29.
- Data.Integers.BitVec.ofNat_1_eq_mod: BitVec.eq_of_toNat_eq path
  (Fin.ofNat no longer unfolds).
- Data.Strings: size_toUTF8 -> size_toByteArray (rename in v4.27,
  leanprover/lean4#11343).
- Hoare.SepTotal.U.le_*: Fin.Internal.ofNat_eq_ofNat unfolding.
- SeparationLogic.ValHeap.Finmap.insert_eq_singleton_union: proved
  via ext_lookup rather than rfl.
- Tactic.{SL,EnvSubsetSolver,Steps,Traits}: Lean.exceptEmoji
  removed; use Except.toTraceResult.toEmoji.
- Tests/Errors expected messages updated to v4.29 format.
- Tests/Monotonicity uses ring/abel/show in spots where v4.22's
  add_comm/add_assoc rewrite traversal order differs from v4.29.
- Tests/FieldGenerics, Tests/Syntax, Tests/LenBuiltin: insert
  reduce_fn_body after simp only [<noir_def>]; one explicit
  i < l.length + List.take_add_one bridge in the vectorIndex loop
  invariant.
- Tests/Envs: insert reduce_fn_body before bv_decide in the
  all_trait_call-via-compoundEnv example so bv_decide's internal
  whnf can reduce the safe-add builtin's match term, which v4.29
  no longer fires automatically.
- testing/**: bumped lean-toolchain to v4.29.1 and refreshed every
  lake-manifest.json mathlib + batteries pin so the E2E job can
  build the test projects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-library Library toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants