Audit/Axioms.lean pins the output of #print axioms for the main theorems with #guard_msgs, and lake build now builds it by default. A sorry, a new axiom, or anything assuming P ≠ NP or P = NP makes the build fail instead of passing silently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diff
3 files changed +71 -1
| @@ -0,0 +1 @@ | ||
| 1 | +import Audit.Axioms | |
| @@ -0,0 +1,65 @@ | ||
| 1 | +import PvsNP | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Axiom audit | |
| 5 | + | |
| 6 | +Each headline theorem may use only Lean's standard axioms (`propext`, `Classical.choice`, | |
| 7 | +`Quot.sound`). `#guard_msgs` makes `lake build` fail if any theorem here starts to depend on | |
| 8 | +anything else: a `sorry` (`sorryAx`) or a new axiom. In particular nothing may assume P ≠ NP or P = NP. | |
| 9 | +-/ | |
| 10 | + | |
| 11 | +/-- info: 'PvsNP.InP.inNP' depends on axioms: [propext, Quot.sound] -/ | |
| 12 | +#guard_msgs in | |
| 13 | +#print axioms PvsNP.InP.inNP | |
| 14 | + | |
| 15 | +/-- info: 'PvsNP.InP.compl' depends on axioms: [propext] -/ | |
| 16 | +#guard_msgs in | |
| 17 | +#print axioms PvsNP.InP.compl | |
| 18 | + | |
| 19 | +/-- info: 'PvsNP.InP.of_reduces' depends on axioms: [propext, Quot.sound] -/ | |
| 20 | +#guard_msgs in | |
| 21 | +#print axioms PvsNP.InP.of_reduces | |
| 22 | + | |
| 23 | +/-- info: 'PvsNP.InNP.of_reduces' depends on axioms: [propext, Quot.sound] -/ | |
| 24 | +#guard_msgs in | |
| 25 | +#print axioms PvsNP.InNP.of_reduces | |
| 26 | + | |
| 27 | +/-- info: 'PvsNP.Reduces.refl' depends on axioms: [propext, Quot.sound] -/ | |
| 28 | +#guard_msgs in | |
| 29 | +#print axioms PvsNP.Reduces.refl | |
| 30 | + | |
| 31 | +/-- info: 'PvsNP.Reduces.trans' depends on axioms: [propext, Quot.sound] -/ | |
| 32 | +#guard_msgs in | |
| 33 | +#print axioms PvsNP.Reduces.trans | |
| 34 | + | |
| 35 | +/-- info: 'PvsNP.PolyTimeComputable.comp' depends on axioms: [propext, Quot.sound] -/ | |
| 36 | +#guard_msgs in | |
| 37 | +#print axioms PvsNP.PolyTimeComputable.comp | |
| 38 | + | |
| 39 | +/-- info: 'PvsNP.NPHard.all_inP' depends on axioms: [propext, Quot.sound] -/ | |
| 40 | +#guard_msgs in | |
| 41 | +#print axioms PvsNP.NPHard.all_inP | |
| 42 | + | |
| 43 | +/-- info: 'PvsNP.NPComplete.inP_iff' depends on axioms: [propext, Quot.sound] -/ | |
| 44 | +#guard_msgs in | |
| 45 | +#print axioms PvsNP.NPComplete.inP_iff | |
| 46 | + | |
| 47 | +/-- info: 'PvsNP.pEqNP_iff' depends on axioms: [propext, Quot.sound] -/ | |
| 48 | +#guard_msgs in | |
| 49 | +#print axioms PvsNP.pEqNP_iff | |
| 50 | + | |
| 51 | +/-- info: 'PvsNP.pNeNP_iff' depends on axioms: [propext, Classical.choice, Quot.sound] -/ | |
| 52 | +#guard_msgs in | |
| 53 | +#print axioms PvsNP.pNeNP_iff | |
| 54 | + | |
| 55 | +/-- info: 'PvsNP.NPComplete.pNeNP_iff' depends on axioms: [propext, Quot.sound] -/ | |
| 56 | +#guard_msgs in | |
| 57 | +#print axioms PvsNP.NPComplete.pNeNP_iff | |
| 58 | + | |
| 59 | +/-- info: 'PvsNP.Machine.run_lift' depends on axioms: [propext, Quot.sound] -/ | |
| 60 | +#guard_msgs in | |
| 61 | +#print axioms PvsNP.Machine.run_lift | |
| 62 | + | |
| 63 | +/-- info: 'PvsNP.Machine.run_seq' depends on axioms: [propext, Quot.sound] -/ | |
| 64 | +#guard_msgs in | |
| 65 | +#print axioms PvsNP.Machine.run_seq | |