Initial constraint grid for a CNF formula
Lax956329.Grid · concepts/Lax956329/Grid.lean · lax-956329
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
A power-of-two grid encodes the truth assignment along its rows and partial clause disjunctions down its columns. The alphabet has size , the port degree is , and each congruence block has children. If the formula is unsatisfiable, every grid labeling fails at least one directed port.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax956329.Hierarchy |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Initial constraint grid for a CNF formula |
| 6 | type: lemma |
| 7 | --- |
| 8 | A power-of-two grid encodes the truth assignment along its rows and partial |
| 9 | clause disjunctions down its columns. The alphabet has size , the port |
| 10 | degree is , and each congruence block has children. If the formula |
| 11 | is unsatisfiable, every grid labeling fails at least one directed port. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax956329.Grid |
| 15 | |
| 16 | open Hierarchy Lax429075.CNF Lax429075.Encoding |
| 17 | |
| 18 | axiom initial (F : Formula) : ∃ h : ℕ, ∃ S : System 4, S.radices = List.replicate h 2 ∧ |
| 19 | S.m = 2^h ∧ S.m ≤ 2*((encodeCNF F).length+2) ∧ |
| 20 | (S.satisfied ↔ Satisfiable F) ∧ (¬ Satisfiable F → ∀ σ, 1 ≤ S.failed σ) |
| 21 | |
| 22 | /-- The entire initial grid is produced by a polynomial-time machine on raw inputs. -/ |
| 23 | axiom reduction : ∃ f : Lax434930.PolynomialTime.Word → Lax434930.PolynomialTime.Word, |
| 24 | Instances.Poly f ∧ ∀ x, ∃ S : System 4, f x = S.bits ∧ |
| 25 | (x ∈ Lax429075.Satisfiability.SAT → S.satisfied) ∧ |
| 26 | (x ∉ Lax429075.Satisfiability.SAT → ∀ σ, 1 ≤ S.failed σ) |
| 27 | |
| 28 | end Lax956329.Grid |
| 29 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments