theorem
proved
tactic proof
poly_circuit_poly_capacity
show as:
view Lean formalization →
formal statement (Lean)
167theorem poly_circuit_poly_capacity {n : ℕ} (c : BooleanCircuit n)
168 (h_poly : ∃ (k d : ℕ), c.gate_count ≤ k * n ^ d) :
169 ∃ (k d : ℕ), CircuitZCapacity c ≤ k * n ^ d := by
proof body
Tactic-mode proof.
170 obtain ⟨k, d, hk⟩ := h_poly
171 exact ⟨2 * k, d, by
172 calc CircuitZCapacity c ≤ 2 * c.gate_count := circuit_capacity_bound c
173 _ ≤ 2 * (k * n ^ d) := by linarith
174 _ = 2 * k * n ^ d := by ring⟩
175
176/-! ## Part 3: The Defect Moat -/
177
178/-- The **Defect Moat** for a formula f: 0 if SAT, 1 if UNSAT. -/