{"gap":"L-meta-1208","base_commit":"605dc84be40929b8c04c6b206c363d69dc369d12","path":"lean/PEqualNP/Outside/L_meta_1208.lean","status":"partial","source":"import Mathlib\nimport PEqualNP.Defs\n\nnamespace PEqualNP.Outside.L_meta_1208_aux\ndef circuit : PEqualNP.CircuitLowerBounds.Circuit := ⟨[⟨PEqualNP.CircuitLowerBounds.GateOp.or, [1, 2]⟩, ⟨PEqualNP.CircuitLowerBounds.GateOp.and, [0, 8]⟩, ⟨PEqualNP.CircuitLowerBounds.GateOp.and, [1, 3]⟩, ⟨PEqualNP.CircuitLowerBounds.GateOp.or, [2, 6]⟩, ⟨PEqualNP.CircuitLowerBounds.GateOp.and, [4, 11]⟩, ⟨PEqualNP.CircuitLowerBounds.GateOp.or, [3, 7]⟩, ⟨PEqualNP.CircuitLowerBounds.GateOp.and, [5, 13]⟩, ⟨PEqualNP.CircuitLowerBounds.GateOp.or, [9, 10]⟩, ⟨PEqualNP.CircuitLowerBounds.GateOp.or, [15, 12]⟩, ⟨PEqualNP.CircuitLowerBounds.GateOp.or, [16, 14]⟩], 17⟩\nend PEqualNP.Outside.L_meta_1208_aux\n\nset_option maxRecDepth 10000 in\nset_option maxHeartbeats 8000000 in\ntheorem PEqualNP.Outside.L_meta_1208 : ∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 10 ∧ ∀ x : Fin 8 → Bool, C.eval (List.ofFn x) = (fun x : Fin 8 → Bool => (x 0 && x 1) || (x 0 && x 2) || (x 1 && x 3) || (x 2 && x 4) || (x 3 && x 5) || (x 4 && x 6) || (x 5 && x 7)) x := by\n  refine ⟨PEqualNP.Outside.L_meta_1208_aux.circuit, ?_, ?_, ?_⟩\n  · intro gate hg\n    simp only [PEqualNP.Outside.L_meta_1208_aux.circuit, List.mem_cons, List.not_mem_nil, or_false] at hg\n    rcases hg with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl <;> simp\n  · decide +kernel\n  · decide +kernel\n","evidence":"Witness wires are inputs 0..7, then 8=OR(1,2), 9=AND(0,8), 10=AND(1,3), 11=OR(2,6), 12=AND(4,11), 13=OR(3,7), 14=AND(5,13), 15=OR(9,10), 16=OR(15,12), 17=OR(16,14), with output 17. Thus wires 9,10,12,14 contribute respectively 01∨02, 13, 24∨46, and 35∨57; the final ORs give the seven required edge terms. The theorem's monotonicity branch enumerates the ten listed gates and simp proves AND/OR plus two inputs; the second branch kernel-decides size 10; the final branch kernel-decides the finite 8-bit truth table. Independent replay actually run: node - <<'NODE'\nlet ok=true; for(let v=0;v<256;v++){const x=i=>Boolean((v>>i)&1),w=Array.from({length:8},(_,i)=>x(i)),g=(o,a,b)=>w.push(o==='and'?w[a]&&w[b]:w[a]||w[b]); g('or',1,2);g('and',0,8);g('and',1,3);g('or',2,6);g('and',4,11);g('or',3,7);g('and',5,13);g('or',9,10);g('or',15,12);g('or',16,14); const t=x(0)&&x(1)||x(0)&&x(2)||x(1)&&x(3)||x(2)&&x(4)||x(3)&&x(5)||x(4)&&x(6)||x(5)&&x(7); if(w[17]!==t)ok=false} console.log(ok)\nNODE\nOutput: true (all 256 valuations matched; 10 gates; output wire 17).","checks":[{"command":"git clone --depth 1 https://github.com/brilliant-hq/pequalnp-proofs.git test/scratch/pequalnp; git -C test/scratch/pequalnp checkout --detach 605dc84be40929b8c04c6b206c363d69dc369d12; git -C test/scratch/pequalnp rev-parse HEAD","outcome":"passed; printed 605dc84be40929b8c04c6b206c363d69dc369d12"},{"command":"LD_LIBRARY_PATH=<pinned-toolchain>/lib:<pinned-toolchain>/lib/lean LEAN_FAKE_APP_PATH=<pinned-toolchain>/bin/lean LD_PRELOAD=<scratch>/fake_app_path.so <pinned-toolchain>/bin/lake build PEqualNP.Defs","outcome":"passed; Build completed successfully (5107 jobs). The preload only replaces the sandbox-denied /proc/<pid>/exe lookup for the disposable Lean executable."},{"command":"node replay shown in evidence","outcome":"passed; 256 valuations matched; 10 gates; output wire 17"},{"command":"timeout 20s <pinned-toolchain>/bin/lake env lean PEqualNP/Outside/L_meta_1208.lean","outcome":"did not complete in this runner's foreground window; exit=124 and no Lean diagnostic"}],"sources":["https://data.pequalnp.com/data/desk/gaps.json","https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/605dc84be40929b8c04c6b206c363d69dc369d12/CONTRIBUTING.md","https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/605dc84be40929b8c04c6b206c363d69dc369d12/lean/PEqualNP/Defs/CircuitLowerBounds.lean","https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/605dc84be40929b8c04c6b206c363d69dc369d12/lean/PEqualNP/Defs/MetaComplexityLgpMono.lean"],"remaining":"The first unresolved item is a completed named-module Lean check and subsequent separate #check/#print axioms scratch check. The proof source is complete and the external exhaustive replay passed, but the local foreground tool stops Lean after 20-30 seconds while it loads and elaborates the large imported definitions root; therefore status is partial rather than checked."}
