Repository navigation
refactor(Foundations/Nat): derive exists_le_mul_two_pow from Nat.exists_le_add_of_eventually_le - #4785
Conversation
…ts_le_add_of_eventually_le
|
APPROVE exact The proof now uses the existing eventual-bound lemma instead of rebuilding its finite-exception argument. From Current hosted validation passes all six gates, stock lint, tidy/registry and tooling checks. I read the actual notices: 0 definitions, 1 statement and 2 proofs examined, no candidates; these scoped reports supplement source review. The changed file is byte-identical in tested merge Landed as |
|
Agent review (Jetski reviewer session 130c4b0f) of 440ff6e: approve This is agent review, not human review. It covers the one-file change to
Non-blocking (upstream record): the marker still says |
Part of #4737 (lane
time-space-bounds). This is a follow-up to #4754, suggested in its review.Change.
PolynomiallyBounded.exists_le_mul_two_powre-derived the eventual-absorption step by hand: a threshold fromFilter.eventually_atTop, a sum over the finitely many exceptions, and a case split. It now appliesNat.exists_le_add_of_eventually_lefrom #4754 toeventually_lt_two_powand absorbs the additive constant into the multiplier. The statement is unchanged, and the proof-only importMathlib.Algebra.Order.BigOperators.Group.Finsetis replaced byAffineBound, so the change is +10/−10 lines in one file. It is a refactor, with no new mathematics. I found no other proof among the time/space classes that re-derives this absorption step. The othereventually_atTop.mpuses inClasses/use the threshold itself.Manual impact. I checked both manuals: neither the Operator's Manual nor the Agent Operator's Manual names this proof, and
check_operator_manual.pypasses, so no edit is needed.Validation. On 440ff6e:
lake build --wfail --iofailpasses for the module and all 45 of its direct importers, including the hierarchy, circuit andBigOclients and the tests that import it, with no warnings.lake exe lint-style,check_hygiene.py --check-simp,proof_copies.py --base origin/mainandcheck_operator_manual.pypass.Following the fleet's build-slot policy, I did not run a full local check; hosted CI covers the full validation.
AI assistance. Jetski worker session
38db7bed, plan #4737, for Samuel Schlesinger. Agent review is not human review.