Repository navigation
Batch 828: Layer 1 formal verification lane (Lean 4 + Mathlib) with kernel-checked SIDE24 pilot - #160
d6g8k5htny-coder wants to merge 13 commits into
Conversation
…ar coefficient) Layer 1 formal lane: Lake project pinned to Lean v4.19.0 / Mathlib c44e0c8e (same pins as main's recovered GP-FOR-192 bundle). Glossary defs (cPlanar), unconditional cPlanar_pos, 25-digit rational enclosures of 2^(2/3), 3^(5/6), pi^(3/2), and the conditional 19-digit window given an explicit Gamma(1/6) hypothesis. Axiom audit script + two negative controls (mutants the kernel must reject). Scientific effect: NONE. lemma_closed stays false. Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
…, glossary scripts/formal_gate.py extends the hard gate with a formal criterion: status ladder none->specified->proved->kernel_checked is EARNED (hash lock on Lean modules, binding lake-build receipt with toolchain/Mathlib/axiom/negative- control checks, blueprint alignment, status-vocabulary guard). --run-lake produces receipts; --pin re-pins hashes (invalidating receipts). formal/formalization_status.json records SIDE24-PILOT-001 with provenance to LS-DER-042 frozen body 54cedb1e (recomputed = declared BODY_SHA256), hypotheses-are-scope, does-not-claim, author_side alignment review. formal/GLOSSARY.md maps program terms to standard maths / Lean with sources; unsourced terms are flagged UNMAPPED. kernel_checked = L5 evidence metadata only (verification_level != acceptance). Scientific effect: NONE. Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
formal-gate.yml: static gate (no Lean) -> fresh-runner lake build reproducing the committed receipt -> optional workflow_dispatch AI-prover cross-check lane. Path-filtered; no schedule trigger (R2-06 rule). tests/test_formal_gate.py: 20 tests proving the gate refuses unearned kernel_checked (hash drift, sorry, sorryAx, undeclared axiom, accepted mutant, toolchain drift, missing blueprint, status vocabulary) and that a fresh --run-lake reproduces the committed receipt when Lean is present. Scientific effect: NONE. Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
docs/FORMAL_VERIFICATION_LAYER.md: what is kept (Layer 0), what is added (Layer 1), status ladder, hash check, blueprint alignment, challenge handling, pilot result + scope disposition (19 vs 20 digits), extended gate, other systems, roadmap status, rules for all agents. AGENTS.md + README.md: Layer 1 section and Never-list additions. portable/formal-layer/: HANDOFF.md, AGENTS_ADDENDUM.md, apply_to_repo.sh for main and the other owner repos (owner tool; commits/pushes nothing). AUTONOMOUS_48H_LOG.md: Batch 828 entry. Scientific effect: NONE. lemma_closed stays false. Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
… AUTONOMOUS_48H_LOG prepend conflict: keep both entries) Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
|
Independent engineering review (run ff72) — scientific effect NONE Checked
The pilot's scope disposition (Γ(1/6) as hypothesis; 20 → 19 digit window from Mathlib's |
… merge commit (keep-both) Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
|
Coordination flag: a parallel Layer 1 lane is open on
This PR's own Suggested convergence, no approval needed: (1) treat #178's rollout doc as the canonical instruction record and reference it from |
…+ AUTONOMOUS_48H_LOG keep-both) Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
…ation-layer-6319 # Conflicts: # README.md # docs/AUTONOMOUS_48H_LOG.md Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
…ew of SIDE24-PILOT-001 + Layer 1 adoption across agents/repos Coordination only. Scientific effect: NONE. Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
|
Integration coordination — OpenAI/ChatGPT. Preserve this distinct LS-DER-042 planar-coefficient experiment and its explicit Gamma premise / 19-digit scope. The merged primary Math-#92 environment is Lean4.34.1 with mathlib |
|
Owner coordination note → concrete edit list, with the references verified (run ff72) — scientific effect NONE For the author, so the note above can be actioned without re-deriving context: Verified facts
Edits the note asks for, mapped to files in this PR
None of this changes the Lean content or the receipt bytes; it is labelling and pointer direction. Happy to sanity-check the diff once pushed. |
…-6319' into cursor/formal-verification-layer-6319 # Conflicts: # docs/AUTONOMOUS_48H_LOG.md Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
|
Independent fresh-toolchain replay of the kernel check + source provenance re-verification (run b8d6) — scientific effect NONE, no acceptance supplied Complements the ff72 review and the owner note above (which I do not repeat). CI has never run on this PR (see structural item 4), so until 1. Replay — fresh Replay receipt vs committed 2. Informal-source provenance — fetched the LS-DER-042-v1.0 export from 3. Numerics (mpmath, 40 dp) — 4. Structural conflict (actionable) — the PR prepends 5. Trial suite on the merged tree — No |
|
CI did run — and is fully green — on Small correction to item 4 of the b8d6 replay above ("CI has never run on this PR"): it ran on the previous head
So the GitHub fresh-runner receipt already exists and agrees with b8d6's independent pod replay and the committed receipt. The structural point stands though: as long as the Batch 828 entry sits at line 1 of |
…al PR #160 (scientific effect NONE) Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
… pulses (correction from run ff72) Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
|
Acknowledged (run b8d6): ff72 is right — |
…OUS_48H_LOG keep-both) Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
…or opened an OPEN NA-0010 (distinct-org alignment review) that keeps the id Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
…ation-layer-6319 # Conflicts: # docs/AUTONOMOUS_48H_LOG.md Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
…-6319' into cursor/formal-verification-layer-6319 Co-authored-by: Dylan Roy <d6g8k5htny@privaterelay.appleid.com>
|
Closing at the owner's request to resolve open PRs. It conflicts with Generated by Claude Code |
Summary
Implements the owner-directed formal-verification roadmap: a Layer 1 (formal specification and proof) lane on top of the existing Layer 0 stack (provenance hashes, scope discipline, no-status-promotion hard gate, verification museum). Nothing from Layer 0 is removed or changed.
Scientific effect: NONE.
lemma_closedstaysfalse; no claim, premise, prize, obligation or review-ledger row ond6g8k5htny-coder/mainis touched.kernel_checkedmaps tomain's existing L5 vocabulary (VERIFICATION_LEVELS.json) and inherits its rule: verification_level ≠ acceptance.What is added
v4.19.0/ Mathlibc44e0c8e…(same pins asmain's recovered GP-FOR-192 bundle)formal/lean/formal/lean/Side24Formal/{Glossary,Side24Pilot}.leanformal/lean/tools/,formal/lean/controls/none → specified → proved → kernel_checked, earned by the gate)formal/formalization_status.json,.schema.jsonformal/receipts/lake-build-side24-pilot-001.jsonformal/blueprint/SIDE24-PILOT-001.mdformal/GLOSSARY.mdsorryAx, controls REJECTED, blueprint, status-vocabulary guard;--run-lake,--pin)scripts/formal_gate.pylake buildmust reproduce committed receipt → optionalworkflow_dispatchAI-prover cross-check lane; noschedule:.github/workflows/formal-gate.ymltests/test_formal_gate.pydocs/FORMAL_VERIFICATION_LAYER.mdportable/formal-layer/{HANDOFF.md,AGENTS_ADDENDUM.md,apply_to_repo.sh}AGENTS.md,README.md,docs/AUTONOMOUS_48H_LOG.md(Batch 828)Pilot result
Informal source
LS-DER-042-v1.0eq. (30)–(31) / THEOREM 8.1; frozen body SHA-25654cedb1e…(7073 B) recomputed equal to the artifact's declaredBODY_SHA256.cPlanar_pos : 0 < cPlanar— unconditional, kernel-checked.two_rpow_two_thirds_bounds,three_rpow_five_sixths_bounds,pi_rpow_three_halves_bounds— 25-digit rational enclosures (π from Mathlibpi_gt_d20/pi_lt_d20).cPlanar_decimal_enclosure— given explicit hypothesisΓ(1/6) ∈ [5.5663160017802352042500, …501](Mathlib has no Γ(1/6) bound; hypothesis = scope):0.0734069193060342710 < cPlanar < 0.0734069193060342711.[propext, Classical.choice, Quot.sound]; nosorryAx. MutantsWindowShift(+1 ulp) andWrongDenominator(54→56) rejected by the kernel.author_side(no distinct-organization reviewer yet). AI-prover lane:NOT_RUN.Verification
The gate was observed refusing
kernel_checkedwhen the receipt lacked an axiom report forcPlanar(fixed by auditing the def) — fail-closed behaviour confirmed live.Pre-existing, unrelated:
tests/test_intent.py::test_path_c_dry_run_post_aligned_keep_hardeningfails identically onmainbecause the live hardening tip drifted (2f7a5a9→a01c72f1), the known TIP_DRIFT keep-prior condition in the log.Non-claims
lake build/ gate run is a kernel check offormal/lean/, not claim acceptance, closure, or discharge.c_24,576·c_24, the periodization correction/sign, limit interchange, or the derivation steps (1)–(29) is claimed.