Repository navigation
refactor: rename String.bytes to String.toByteArray - #11343
Merged
Merged
Conversation
TwoFX
force-pushed
the
markus/string-bytes
branch
from
November 24, 2025 18:22
f261a01 to
ec26d88
Compare
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
This was referenced Nov 26, 2025
3 tasks done
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR renames
String.bytestoString.toByteArray.This is for two reasons: first,
toByteArrayis a better name, and second, we have something else that wants to use the namebytes, namely the function that returns in iterator over the string's bytes.