Repository navigation
Recurrence spaces, phase B: certificate replay, exceptional indices, row-tactic adapter (#1978) - #1998
Draft
PerAlexandersson wants to merge 1 commit into
Draft
Recurrence spaces, phase B: certificate replay, exceptional indices, row-tactic adapter (#1978)#1998PerAlexandersson wants to merge 1 commit into
PerAlexandersson wants to merge 1 commit into
Conversation
Worker-drafted (Codex), integrated unverified: the worker reports a passing full default build and guards; strict runLinter/audit not yet run by the integrator. See the PR for the per-target summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 of 14 tasks
This branch has not been deployed
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.
Draft, unverified by the integrator. Phase B of #1978, drafted by a Codex worker. The worker reports a passing full default build (11112 jobs) and guards. Still to do before merging:
golfw/verify_lane.sh, i.e. strictrunLinteragainstnolints.json, the coverage check and the catalog audit, plus my review of the code.Recurrence spaces phase B report
B1: short-certificate replay
rr_replay_lift: infers the lift data from the goal, appliesliftDefect_eq_zero_of_lagDefect_eq_zero, and checks the concrete factor identity withdecideor polynomial normalization. The source recurrence and the bundledkseeds aresupplied as proof terms.
rr_replay_source: replays the converse certificate from the lift, the source seed,and
affineIndex ... (n + k) ≠ 0; its factor identity is normalized automatically.rr_replay_factornormalizer. Its terminaldonemakes altered factorsfail rather than leave residual goals.
RealRooted/Tactic/Recurrence.leanandRealRooted/Tactic/Examples/A049325RecurrenceSpace.lean.B2: exceptional indices
liftDefect_eq_zero_from_of_lagDefect_eq_zero_from: a source recurrence fromn₀plus the
kseeds in[n₀, n₀ + k)proves the lift fromn₀.lagDefect_eq_zero_from_of_liftDefect_eq_zero_from_of_exceptional: a lift fromn₀plus a source seed at
n₀and an extra source seed after each zero affine leader provesthe source recurrence from
n₀.lagDefect_eq_zero_from_of_liftDefect_eq_zero_from: the specialization with no zeroaffine leaders.
rr_replay_lift_fromandrr_replay_source_fromfor the tail and exceptional-leadertheorems. These variants take the already checked factor equality explicitly.
RealRooted/RecurrenceSpace/Defect.lean; tactic regressions are in the A049325 examplemodule.
B3: row-tactic adapter
derivativeRecurrence_of_liftDefect_eq_zero: for a lift whose leader is the nonzeroscalar polynomial
C (delta n), produces the normalized recurrence in the existingA * P' + B * Pconvention.rr_lift_recurrence, which applies that bridge while leaving degree, leading-sign,root-window propagation, root-sign, and base-row goals to existing theory/tactics.
derivativeRecurrence_interlaces_of_window; the same premise shape feedsderivativeRecurrence_interlaces_of_roots_mem_IccandderivativeRecurrence_interlaces_of_roots_le.RealRooted/RecurrenceSpace/Defect.lean,RealRooted/Tactic/Recurrence.lean.B4: acceptance regressions
rr_replay_lift, replacing the manual theoremapplication and explicit factor-certificate argument.
hermiteReplay_succchecksH[n+1] = 2X H[n] - H[n]'throughrr_lift_recurrence.and an exceptional-leader converse.
fail_if_successregressions: one changesgammafromXtoX + 1; the othersupplies seeds for the corrupted derivative coefficient
X * (X + 15).RealRooted/Tactic/OEIS_COVERAGE.md; updated the two affected import budgets inscripts/import_architecture.json.Nothing in B1--B4 was skipped. Later targets from issue #1978 outside this phase-B brief were
not attempted.
Verification
Focused target:
Full default target:
./guards.sh:The generated coverage
--checkandgit diff --checkalso passed.🤖 Generated with Claude Code