Add builds (2026-11-10)
Browse files
README.md
CHANGED
|
@@ -38,9 +38,14 @@ Every value below is read from the build folder's own reports; "not run" and "no
|
|
| 38 |
|
| 39 |
What the columns mean:
|
| 40 |
- **`sorry` warnings:** declarations the build reported as using `sorry`. Anything depending on them is not proved.
|
|
|
|
|
|
|
|
|
|
| 41 |
- **Axiom audit:** every declaration in the package's modules traced to the axioms it uses. "passed" means only
|
| 42 |
-
`propext`, `Classical.choice` and `Quot.sound`.
|
| 43 |
-
|
|
|
|
|
|
|
| 44 |
- **Round trip:** a separate user with empty Lean and Lake caches restored the build from the archive and Lake reported
|
| 45 |
every target up to date. It shows the archive is complete, not that the proofs are right.
|
| 46 |
|
|
|
|
| 38 |
|
| 39 |
What the columns mean:
|
| 40 |
- **`sorry` warnings:** declarations the build reported as using `sorry`. Anything depending on them is not proved.
|
| 41 |
+
"problem statements only" means every one is in a `problem.lean` or challenge file: in that layout the
|
| 42 |
+
statement file states the theorems with `sorry`, a matching solution file proves them, and a comparator checks
|
| 43 |
+
that the two match. The axiom audit then shows whether the solutions are clean.
|
| 44 |
- **Axiom audit:** every declaration in the package's modules traced to the axioms it uses. "passed" means only
|
| 45 |
+
`propext`, `Classical.choice` and `Quot.sound`. "passed outside problem statements" means a module-by-module audit
|
| 46 |
+
found `sorryAx` only in problem or challenge statement modules, and every other module, including every solution,
|
| 47 |
+
uses only those three. Neither says a statement is the intended one: a theorem that takes a hard fact as a
|
| 48 |
+
hypothesis passes.
|
| 49 |
- **Round trip:** a separate user with empty Lean and Lake caches restored the build from the archive and Lake reported
|
| 50 |
every target up to date. It shows the archive is complete, not that the proofs are right.
|
| 51 |
|
builds/v4.35.0-rc2/x86_64-unknown-linux-gnu/ac419e26b93e-fc9acd63ef40db72/SHA256SUMS.txt
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
8bb9ac1efca8c15ee11daea15255875ce0909e28553153b899b1a2fa222c34aa lake-manifest.json
|
| 2 |
14506d2b6c2962a644846b02f71dd5be8ec8ff111c3fa288b90aa714288935eb manifest.json
|
|
|
|
| 3 |
3934effec714b50e96a4dc403f4ffffe3ee73305886daa3b5f8b738509a2fce8 reports/axiom_audit.txt
|
| 4 |
60b1bc865805ee8e9ceb495e3a227a6bae5e62c19c7daf92880833f519a490e2 reports/axiom_audit_result.json
|
| 5 |
0fd198fc81f24775e3c352b1183f61731e3baf0211424698b6b2cf53efc16e17 reports/build.log
|
|
|
|
| 1 |
8bb9ac1efca8c15ee11daea15255875ce0909e28553153b899b1a2fa222c34aa lake-manifest.json
|
| 2 |
14506d2b6c2962a644846b02f71dd5be8ec8ff111c3fa288b90aa714288935eb manifest.json
|
| 3 |
+
e5a04abeb0a59318f6f52d3d38a0cb24730929a9786499e47fea082b55cf9ec9 reports/axiom_audit.lean
|
| 4 |
3934effec714b50e96a4dc403f4ffffe3ee73305886daa3b5f8b738509a2fce8 reports/axiom_audit.txt
|
| 5 |
60b1bc865805ee8e9ceb495e3a227a6bae5e62c19c7daf92880833f519a490e2 reports/axiom_audit_result.json
|
| 6 |
0fd198fc81f24775e3c352b1183f61731e3baf0211424698b6b2cf53efc16e17 reports/build.log
|
builds/v4.35.0-rc2/x86_64-unknown-linux-gnu/ac419e26b93e-fc9acd63ef40db72/reports/axiom_audit.lean
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Lean
|
| 2 |
+
import PCError
|
| 3 |
+
import PCError.Angles
|
| 4 |
+
import PCError.Attr
|
| 5 |
+
import PCError.Defs.Angles
|
| 6 |
+
import PCError.Defs.TheFactorModelAndItsDerivedMatrices
|
| 7 |
+
import PCError.Defs.TheOutOfSubspaceErrorIsEstimable
|
| 8 |
+
import PCError.Defs.TheRotationErrorIsNotEstimable
|
| 9 |
+
import PCError.ErrorInTheEstimatedPrincipalDirections
|
| 10 |
+
import PCError.External
|
| 11 |
+
import PCError.MatrixPreliminaries
|
| 12 |
+
import PCError.SLLN.Basic
|
| 13 |
+
import PCError.SLLN.Kronecker
|
| 14 |
+
import PCError.SLLN.OneSeries
|
| 15 |
+
import PCError.TheObservableDualGramMatrixInTheLimit
|
| 16 |
+
import PCError.TheOutOfSubspaceErrorIsEstimable
|
| 17 |
+
import PCError.TheRotationErrorIsNotEstimable
|
| 18 |
+
import PCError.TheSystematicDualGramsInTheLimit
|
| 19 |
+
import PCError.Weyl.Basic
|
| 20 |
+
import PCError.Weyl.CourantFischer
|
| 21 |
+
|
| 22 |
+
open Lean Elab Command
|
| 23 |
+
|
| 24 |
+
namespace AxAudit
|
| 25 |
+
structure St where
|
| 26 |
+
seen : NameMap (Array Name) := {}
|
| 27 |
+
axioms : NameSet := {}
|
| 28 |
+
abbrev M := ReaderT Environment (StateM St)
|
| 29 |
+
|
| 30 |
+
partial def collect (c : Name) : M Unit := do
|
| 31 |
+
let env ← read
|
| 32 |
+
let s ← get
|
| 33 |
+
if let some axs := s.seen.find? c then
|
| 34 |
+
modify fun s => { s with axioms := axs.foldl (fun a x => a.insert x) s.axioms }
|
| 35 |
+
return
|
| 36 |
+
let saved := s.axioms
|
| 37 |
+
modify fun s => { s with axioms := {}, seen := s.seen.insert c #[] }
|
| 38 |
+
let ce (e : Expr) : M Unit := e.getUsedConstants.forM collect
|
| 39 |
+
match env.find? c with
|
| 40 |
+
| some (.axiomInfo v) => modify (fun s => { s with axioms := s.axioms.insert c }); ce v.type
|
| 41 |
+
| some (.defnInfo v) => ce v.type *> ce v.value
|
| 42 |
+
| some (.thmInfo v) => ce v.type *> ce v.value
|
| 43 |
+
| some (.opaqueInfo v) => ce v.type *> ce v.value
|
| 44 |
+
| some (.quotInfo _) => pure ()
|
| 45 |
+
| some (.ctorInfo v) => ce v.type
|
| 46 |
+
| some (.recInfo v) => ce v.type
|
| 47 |
+
| some (.inductInfo v) => ce v.type *> v.ctors.forM collect
|
| 48 |
+
| none => pure ()
|
| 49 |
+
let res := (← get).axioms.toArray.qsort Name.lt
|
| 50 |
+
modify fun s => { s with seen := s.seen.insert c res, axioms := res.foldl (fun a x => a.insert x) saved }
|
| 51 |
+
end AxAudit
|
| 52 |
+
|
| 53 |
+
run_cmd do
|
| 54 |
+
let env ← getEnv
|
| 55 |
+
let penv := env.setExporting false
|
| 56 |
+
let mods : NameSet := (#[`PCError, `PCError.Angles, `PCError.Attr, `PCError.Defs.Angles, `PCError.Defs.TheFactorModelAndItsDerivedMatrices, `PCError.Defs.TheOutOfSubspaceErrorIsEstimable, `PCError.Defs.TheRotationErrorIsNotEstimable, `PCError.ErrorInTheEstimatedPrincipalDirections, `PCError.External, `PCError.MatrixPreliminaries, `PCError.SLLN.Basic, `PCError.SLLN.Kronecker, `PCError.SLLN.OneSeries, `PCError.TheObservableDualGramMatrixInTheLimit, `PCError.TheOutOfSubspaceErrorIsEstimable, `PCError.TheRotationErrorIsNotEstimable, `PCError.TheSystematicDualGramsInTheLimit, `PCError.Weyl.Basic, `PCError.Weyl.CourantFischer] : Array Name).foldl (fun s n => s.insert n) {}
|
| 57 |
+
let std : NameSet := (#[``propext, ``Classical.choice, ``Quot.sound] : Array Name).foldl (fun s n => s.insert n) {}
|
| 58 |
+
let mut roots : Array Name := #[]
|
| 59 |
+
let mut declared : Array Name := #[]
|
| 60 |
+
for (c, ci) in env.constants.map₁.toList do
|
| 61 |
+
let some idx := env.getModuleIdxFor? c | continue
|
| 62 |
+
unless mods.contains env.header.moduleNames[idx.toNat]! do continue
|
| 63 |
+
roots := roots.push c
|
| 64 |
+
if let .axiomInfo _ := ci then declared := declared.push c
|
| 65 |
+
let (_, st) := ((roots.forM AxAudit.collect).run penv).run {}
|
| 66 |
+
let mut used : NameSet := {}
|
| 67 |
+
let mut nonstd : Array (Name × Array Name) := #[]
|
| 68 |
+
for c in roots do
|
| 69 |
+
let axs := (st.seen.find? c).getD #[]
|
| 70 |
+
for a in axs do used := used.insert a
|
| 71 |
+
let bad := axs.filter (fun a => !std.contains a)
|
| 72 |
+
unless bad.isEmpty do nonstd := nonstd.push (c, bad)
|
| 73 |
+
logInfo m!"AXIOM-AUDIT decls={roots.size} declared_axioms={declared.toList} axioms_used={used.toList} nonstandard_count={nonstd.size} nonstandard_first={nonstd.toList.take 10} constants_walked={st.seen.size} AXIOM-AUDIT-END"
|