DevinWatson commited on
Commit
8b915ef
·
verified ·
1 Parent(s): 1076249

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`. It does not say a statement is the intended one: a theorem that
43
- takes a hard fact as a hypothesis passes.
 
 
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.28.0/x86_64-unknown-linux-gnu/50404a904017-85ce656b2da49ac8/SHA256SUMS.txt CHANGED
@@ -1,5 +1,6 @@
1
  66df9498e8458d47de7c18c619d6766023e8040810b074c8da8770c550889f06 lake-manifest.json
2
  17b29188aacb0e5fbda7e1af01ce47e2f87bdb522a369dcd885d95e6773748e2 manifest.json
 
3
  338199ded690d74cc2aa9c5f8079378039a8114134cd70e290c2caffe36f8590 reports/axiom_audit.txt
4
  0b0ce6f6d9030c3cb2add311372e1378f58251288218bbf2d8f067652da6c3fa reports/axiom_audit_result.json
5
  8267bd6b5b8d83e71b7a08cccb5bd3b6949ad34c33f56e0d869ae8f5f98bbc35 reports/build.log
 
1
  66df9498e8458d47de7c18c619d6766023e8040810b074c8da8770c550889f06 lake-manifest.json
2
  17b29188aacb0e5fbda7e1af01ce47e2f87bdb522a369dcd885d95e6773748e2 manifest.json
3
+ b91b4068ac6429e5c643aad233871aa9bbdfb5642593cb294b724696c180c488 reports/axiom_audit.lean
4
  338199ded690d74cc2aa9c5f8079378039a8114134cd70e290c2caffe36f8590 reports/axiom_audit.txt
5
  0b0ce6f6d9030c3cb2add311372e1378f58251288218bbf2d8f067652da6c3fa reports/axiom_audit_result.json
6
  8267bd6b5b8d83e71b7a08cccb5bd3b6949ad34c33f56e0d869ae8f5f98bbc35 reports/build.log
builds/v4.28.0/x86_64-unknown-linux-gnu/50404a904017-85ce656b2da49ac8/reports/axiom_audit.lean ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Lean
2
+ import output.solution
3
+
4
+ open Lean Elab Command
5
+
6
+ namespace AxAudit
7
+ structure St where
8
+ seen : NameMap (Array Name) := {}
9
+ axioms : NameSet := {}
10
+ abbrev M := ReaderT Environment (StateM St)
11
+
12
+ partial def collect (c : Name) : M Unit := do
13
+ let env ← read
14
+ let s ← get
15
+ if let some axs := s.seen.find? c then
16
+ modify fun s => { s with axioms := axs.foldl (fun a x => a.insert x) s.axioms }
17
+ return
18
+ let saved := s.axioms
19
+ modify fun s => { s with axioms := {}, seen := s.seen.insert c #[] }
20
+ let ce (e : Expr) : M Unit := e.getUsedConstants.forM collect
21
+ match env.find? c with
22
+ | some (.axiomInfo v) => modify (fun s => { s with axioms := s.axioms.insert c }); ce v.type
23
+ | some (.defnInfo v) => ce v.type *> ce v.value
24
+ | some (.thmInfo v) => ce v.type *> ce v.value
25
+ | some (.opaqueInfo v) => ce v.type *> ce v.value
26
+ | some (.quotInfo _) => pure ()
27
+ | some (.ctorInfo v) => ce v.type
28
+ | some (.recInfo v) => ce v.type
29
+ | some (.inductInfo v) => ce v.type *> v.ctors.forM collect
30
+ | none => pure ()
31
+ let res := (← get).axioms.toArray.qsort Name.lt
32
+ modify fun s => { s with seen := s.seen.insert c res, axioms := res.foldl (fun a x => a.insert x) saved }
33
+ end AxAudit
34
+
35
+ run_cmd do
36
+ let env ← getEnv
37
+ let penv := env.setExporting false
38
+ let mods : NameSet := (#[`output.solution] : Array Name).foldl (fun s n => s.insert n) {}
39
+ let std : NameSet := (#[``propext, ``Classical.choice, ``Quot.sound] : Array Name).foldl (fun s n => s.insert n) {}
40
+ let mut roots : Array Name := #[]
41
+ let mut declared : Array Name := #[]
42
+ for (c, ci) in env.constants.map₁.toList do
43
+ let some idx := env.getModuleIdxFor? c | continue
44
+ unless mods.contains env.header.moduleNames[idx.toNat]! do continue
45
+ roots := roots.push c
46
+ if let .axiomInfo _ := ci then declared := declared.push c
47
+ let (_, st) := ((roots.forM AxAudit.collect).run penv).run {}
48
+ let mut used : NameSet := {}
49
+ let mut nonstd : Array (Name × Array Name) := #[]
50
+ for c in roots do
51
+ let axs := (st.seen.find? c).getD #[]
52
+ for a in axs do used := used.insert a
53
+ let bad := axs.filter (fun a => !std.contains a)
54
+ unless bad.isEmpty do nonstd := nonstd.push (c, bad)
55
+ 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"