Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/c296-regular-point-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: C296 regular-point chart
on:
pull_request:
paths:
- "frontiers/critical_level_attainment_20261020/final-project/Lifetime.lean"
- "frontiers/regular_point_chart_20261020/**"
- ".github/workflows/c296-regular-point-chart.yml"
workflow_dispatch:
Expand Down Expand Up @@ -32,13 +33,19 @@ jobs:
working-directory: frontiers/regular_point_chart_20261020
run: |
set -euo pipefail
sha256sum --check SOURCE_SHA256SUMS
lean --version
lake build RegularPointChart RegularPointChartInterface
lake env lean -E warning RegularPointChart.lean
lake env lean -E warning RegularPointChartInterface.lean
lake env leanchecker RegularPointChart
lake env leanchecker RegularPointChartInterface
lake env lean RegularPointChartAxiomAudit.lean
- name: Exercise axiom policy and inventory controls with Lean
working-directory: frontiers/regular_point_chart_20261020
run: |
set -euo pipefail
python3 -B -S scripts/test_axiom_audit.py
- name: Mutation-test the negative diagnostic classifier
working-directory: frontiers/regular_point_chart_20261020
run: |
Expand Down
50 changes: 50 additions & 0 deletions frontiers/regular_point_chart_20261020/REPAIR_20261024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# C296 audit and dependency-trigger repair

Engineering successor to Math- PR488 head
`762a6f30e7131b7b2cc02ad2d80113de9263bd4c`, addressing review
`5635610588` and threads `4365149299`, `4365149322`, `4365149354`.
The dated README/RESULTS remain historical evidence, not receipts for this repair.

The workflow now names the exact consumed C294 `Lifetime.lean` path. The
manifest binds the updated workflow and audit, test harness, unchanged
classifier and its tests, and this scope note. The workflow checks those
digests before building. Regenerate digests whenever an included input changes.

The audit discovers declarations originating in `RegularPointChart` and checks
that all seven original required names are present. For every discovered name,
it requires a kernel declaration and rejects transitive axioms outside
`propext`, `Classical.choice`, and `Quot.sound`. Its inventory includes generated
declarations belonging to that module; it does not claim to enumerate every
declaration in imported Mathlib. It does inspect the transitive axiom closure
of each audited declaration, including axioms reached through imports.

The hosted test harness runs actual Lean on disposable audit copies, retaining
stdout, stderr and return codes under `.lake/c296-audit-evidence` and printing
reviewable output into the job log. It tests the production positive case,
forbidden transitive axioms, missing required target, empty inventory, weakened
allowlist, and setup/syntax errors. A printing-only control preserves the old
audit behavior and demonstrates why printed reports are not enforcement.
An unknown declaration already makes Lean fail; completeness is instead tested
by omitting an existing required declaration from the audited inventory.

The original chart/interface proofs, consumed Lifetime, compiler/mathlib pins,
noncriticality control, classifier and classifier tests are unchanged.
The separately reviewed classifier-composition proposal is not adopted here.

Execution and attribution: OpenAI Codex root chat
`01a0bbb5-2fcb-77f0-b78b-4d220ddd7ab2` authored the repair; delegated
OpenAI Codex `/root/c299_timeout_scope_audit` authored the test harness.
Separate nonauthor review and current-candidate hosted receipts belong in the
PR discussion. This source note itself asserts neither review nor execution.
Dylan Roy did not personally perform a human review. No organizational or
blind independence is claimed for same-provider delegated review.

Local Lean execution remains unavailable after the retained `/proc` denial;
no local retry or bypass is part of this repair. The isolated source stage and
native Git publication are not a working local repository checkout. Hosted
results must identify the actual run, attempt, head and tested merge commit.

This is a draft engineering repair, not default-main integration, theorem
completion, alignment approval, or scientific promotion. All hypotheses,
ordinary-persistence bridges and regional collision obligations remain open.
No merge, Ready transition or deployment is part of this delivery.
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
import RegularPointChart
import Lean.Elab.Command
import Lean.Util.CollectAxioms

#print axioms UniversalLaw.Spec.Lifetime.regularPointDerivative_range_eq_top
#print axioms UniversalLaw.Spec.Lifetime.regularPointHasStrictFDerivAt
#print axioms UniversalLaw.Spec.Lifetime.regularPointChart
#print axioms UniversalLaw.Spec.Lifetime.regularPointChart_fst
#print axioms UniversalLaw.Spec.Lifetime.regularPointChart_self
#print axioms UniversalLaw.Spec.Lifetime.mem_regularPointChart_source
#print axioms UniversalLaw.Spec.Lifetime.mem_regularPointChart_target
/-! Enforce the standard-axiom policy over the complete module-origin census.
The required inventory prevents omission of any of the seven original targets.
This is an engineering audit, not independent alignment or scientific acceptance. -/

open Lean Elab Command in
run_cmd do
let env := (← getEnv).setExporting false
let allowed : List Name := [`propext, `Classical.choice, `Quot.sound]
let some idx := env.getModuleIdx? `RegularPointChart
| throwError "C296_AXIOM_MISSING_MODULE RegularPointChart"
let constants := env.constants.toList
let names := (constants.filterMap fun (name, _) =>
if env.getModuleIdxFor? name == some idx then some name else none).toArray.qsort Name.lt
let audited := names
if audited.isEmpty then throwError "C296_AXIOM_EMPTY RegularPointChart"
let required : Array Name := #[
`UniversalLaw.Spec.Lifetime.regularPointDerivative_range_eq_top,
`UniversalLaw.Spec.Lifetime.regularPointHasStrictFDerivAt,
`UniversalLaw.Spec.Lifetime.regularPointChart,
`UniversalLaw.Spec.Lifetime.regularPointChart_fst,
`UniversalLaw.Spec.Lifetime.regularPointChart_self,
`UniversalLaw.Spec.Lifetime.mem_regularPointChart_source,
`UniversalLaw.Spec.Lifetime.mem_regularPointChart_target]
for name in required do
unless audited.contains name do
throwError "C296_AXIOM_MISSING_TARGET {name}"
for name in audited do
if (env.checked.get.find? name).isNone then
throwError "C296_AXIOM_MISSING_KERNEL_DECL {name}"
let axs ← Lean.collectAxioms name
let axiomText := String.intercalate ", " (axs.toList.map fun ax => ax.toString)
logInfo m!"C296_AXIOM_DECL {name.toString} AXIOMS [{axiomText}]"
for ax in axs do
unless allowed.contains ax do
throwError "C296_AXIOM_FORBIDDEN {ax} in {name}"
logInfo m!"C296_AXIOM_POLICY_PASS COUNT {audited.size}"
8 changes: 6 additions & 2 deletions frontiers/regular_point_chart_20261020/SOURCE_SHA256SUMS
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
1ff2d19ee045175a510d994ad539476e1d5df98247ec4b4d6267fedc7909f996 ../../.github/workflows/c296-regular-point-chart.yml
b9b8bdb81de2b3e16c036bc672e1cb78e3d400c02af68b89e827e3e59d8a870f ../../.github/workflows/c296-regular-point-chart.yml
90f4892608e953ecc696bb32ea159d1c178ceb8a1c6edfd11acfceb14af462c6 ../critical_level_attainment_20261020/final-project/Lifetime.lean
5568c8d6e03f7064cd5924ebe2814ae746100505ae31789d5c975902528f9fa2 RegularPointChart.lean
d87cc945b859472417ce9ef1c197a34f5ea4b63e65a857ce24316f435288e051 RegularPointChartInterface.lean
da7256bbe6baa41e2fda6888d80b72dce73c27eac5ad641ad9b875243370acf7 WithoutNoncriticality.lean
b1cfc6126c9885e30a4b3d8eac3e96b57e92f88930faa5e6eacbf06fb3ed78b8 RegularPointChartAxiomAudit.lean
1d5ea6e816a580dde7298640eeb27664adb247cbaa347ff0184edf7f6d514a43 RegularPointChartAxiomAudit.lean
3c154a9b908e97ae98c8f2ac0062be391bde49c13f8d436fedbbc8b1b9d88213 lakefile.toml
a5f438c3066ea36abd201994397d4b75234b7fff52d2ef8de9dea64f874baf6b lake-manifest.json
d5edba4e4b8faad9c1baeadb265716d20d03be4d1a2647dc5e35b0c0325bea7b lean-toolchain
7f27ef40f7c7d76138df0fd8ca376a8a8ea09f5b44a174882ffad0de912e6576 scripts/classify_negative.sh
54f06670e9f5bb3bc7fe20d3cc3e2bf118633bf797011d3f7251bc6da16742ae scripts/test_negative_classifier.sh
aa269dec1f012a059bc7192dcadc5a1ab14f16ad9415fdbcd87faa225ee31920 scripts/test_axiom_audit.py
db85b47b9841e50749b50190cff57ddaadf28c4baaad34f9d05533cff8b6629c REPAIR_20261024.md
Loading
Loading