Repository navigation
Formalize three drafting proposals' lemmas (fixed and checked with Lean 4.19.0) - #152
Merged
Merged
Conversation
The author supplied Lean sources for three drafting proposals (innovation-clock drafting, prefix-isolated sparse planning, causal defect drafting). They are added byte-identical to the supplied files; they do not elaborate yet (a Mathlib-only induction name and a keyword used as an identifier), which the next commit fixes.
Two mechanical fixes, no statement changes: the Mathlib-only `Nat.strong_induction_on` becomes core's `Nat.strongRecOn` (case `ind`), and a binder named `prefix`, a keyword, becomes `«prefix»`.
Replace the stale "not compiled" headers with neutral provenance and the caveats, print the axioms of every theorem, describe what each file proves in formal/STATUS.md (including that weighted_depth gives only the Jacobi bound for a real target), and extend scripts/check_lean.sh to formal/drafting/.
scripts/check_lean.sh now covers formal/drafting/; the log is its output at 4533e5e (no errors; the drafting theorems use only standard axioms).
Owner
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Owner
Author
|
Verdict: APPROVE (90c5ba2; merge after #151)
|
SamMausberg
added a commit
that referenced
this pull request
Oct 1, 2026
…ommitted rules (#151, #152) From evidence/frontier (#151), each an oracle upper bound on the block-16 DFlash trace with the Triton verify cycle (exactness pending), under rules committed before the oracles ran: - P-A innovation-clock: interpreter wrong at 0.47-0.54 of positions; the perfect-event oracle is rejected up to 16 free overrides per cycle and passes only at 32; candidate-based controllers cover 0.924 against 0.9892 (B = 64) and 0.9925 (B = 256) needed. - P-B prefix-isolated planning: first-gap bound at most 14.4-37.0 at B = 64 (44.4 needed) and 43.4 at B = 256 (111.6) for 2-16 anchors; 43.4 after a post-run correction from 39.7, no verdict changed. - P-C causal defect: at most 1.60-2.00 accepted drafts per boundary against 3.56 for fresh DFlash. One sentence on formal/drafting (#152): the Lean statements elaborate with no sorry and establish the encodings, clipping and audit soundness, not the speed-ups; the convergence bound needs exact locality and gives one sweep per position for a real target. New subsection app:external-drafting, register entry drafting-oracles, three status rows; the lean entry and A.8's machine-checked paragraph now cover the three drafting files.
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 adds the Lean sources of three drafting proposals under
formal/drafting/: innovation-clock drafting, prefix-isolated sparse planning and causal defect drafting. The author supplied them; they are fixed and checked here. Two of their theorems back the drafting-frontier oracles in #151, so merge this after #151:teacher_forced_prefix_iff: a deterministic causal proposal's free-running accepted prefix equals its teacher-forced one.oracle_clipping.Commits (kept separate so the diff to the supplied sources is visible)
a47dd8aimports the three files byte-identical to the supplied sources. They do not elaborate.b067004applies two mechanical fixes. No theorem statement changes, apart from the spelling of one binder.Nat.strong_induction_onis a Mathlib name, absent from core and Std. It becomes core'sNat.strongRecOn, with case nameind.prefix, which is a keyword, becomes«prefix».4533e5eupdates the documentation and the check.#print axiomsfor every theorem.formal/STATUS.mdwhat each file proves and what it does not.scripts/check_lean.shtoformal/drafting/.90c5ba2regeneratesevidence/precision/lean_check.logwith the extended check.Result
With Lean 4.19.0,
bash scripts/check_lean.shelaborates the wholeformal/tree with no errors and nosorry(exit 0). The run was single-core under the lock's CPU window. All 33 drafting theorems depend only onpropext,Quot.soundandClassical.choice. The only warnings are two unused[DecidableEq α]section variables.Caveats (also in the headers and STATUS.md)
CausalDefect.weighted_depth: this is correct but needs exact locality. For a real target, the defect F - G depends on every earlier position, so the bound is one sweep per position, the bound of plain Jacobi iteration. The proposal's one-sweep claim rests on the margin lemma instead.evidence/frontier/README.md(Drafting-frontier oracles: P-A, P-B and P-C fail their first decisive test #151).