mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
Resolves the convergence_to_fixed_point failure by proving the correct eigensolid statement: stepExact stabilizes all value components (N_7, N_8, N_11) in one application. The original theorem was mathematically false (iteration counter is free-running). QC cleanup sweep across Physics/ (20 files): - 3 remaining LOW items fixed: h00/h01 factoring, rD->rd, rdDr1/rdDr2 x100 - 6 of 7 sorry theorems proved; 1 explicitly FAILED (convergence) - Unused imports removed, naming violations fixed, #eval witnesses added - 210 -> 144 issues remaining (all WARNING/INFO, zero ERROR) New tooling: - scripts/qc-flag/lean_qc_flagger.py implemements 5-point inspection protocol - Outputs structured JSON + Markdown pass/fail reports DAG receipts at shared-data/data/stack_solidification/qc_*_dag_2026-05-13.md
1.8 KiB
1.8 KiB
QC Flagger Build DAG — Automated Inspection Tool
Date: 2026-05-13
Files Created
scripts/qc-flag/lean_qc_flagger.pyscripts/qc-flag/run_qc_flag.shscripts/qc-flag/AGENTS.md
Verification
- Test run:
python3 scripts/qc-flag/lean_qc_flagger.py 0-Core-Formalism/lean/Semantics/Semantics/Physics/UniversalBridge.lean - Result: PASS — 10 issues found (all WARNING, no ERROR)
- Errors: None (script runs without errors)
Protocol Coverage
| # | Protocol Point | Implemented |
|---|---|---|
| 1 | Structural Health | YES |
| 2 | Naming Conventions | YES |
| 3 | Q16_16 Compliance | YES |
| 4 | Proof Quality | YES |
| 5 | Dependency Analysis | YES |
Test Results
Single file scan
python3 scripts/qc-flag/lean_qc_flagger.py \
0-Core-Formalism/lean/Semantics/Semantics/Physics/UniversalBridge.lean
- 26 theorems, 20 defs, 11 #eval!, 0 sorries
- 10 issues: 9 naming, 1 proof quality
- Verdict: PASS
Directory scan (20 files)
python3 scripts/qc-flag/lean_qc_flagger.py \
0-Core-Formalism/lean/Semantics/Semantics/Physics/
- 20/20 files pass
- 227 total issues (0 ERROR, 227 WARNING/INFO)
- Comment filtering: correctly ignores
sorry/Float/type names in comments - Data defs (
struct { ... }, integer constants): correctly excluded from companion theorem check
Shell wrapper
bash scripts/qc-flag/run_qc_flag.sh \
0-Core-Formalism/lean/Semantics/Semantics/Physics/UniversalBridge.lean
- Reports saved to
scripts/qc-flag/reports/<timestamp>/ - JSON + Markdown output generated
Python compile check
python3 -m py_compile scripts/qc-flag/lean_qc_flagger.py
- Compiles cleanly (stdlib only, no external dependencies)
Exit Codes
- 0: all files pass (no ERROR-severity issues)
- 1: at least one file has ERROR-severity issues