| @@ -0,0 +1,40 @@ |
| 1 | +# Cook’s alphabets, languages, and P versus NP question |
| 2 | + |
| 3 | +Independent reading for [V-11, issue #52][issue]. The row numbers below are from [Monteverde v1.1.1][audit]. Cook page numbers are the printed numbers in §1 of [The P versus NP Problem][cook]. Lean links use the Shoal checkout at `73bcf065148633ad0cd4fc929e66339d5edd4f4f`, whose frozen statement comes from lean-dojo at `603053dc267cf3efe422f438eb78098c0ececd6f`. The PDF’s SHA-256 is `018f3d473d16c35e807e8cdfbd0bed3ccf7a56452e3e10c6b1d84b56eaf2cf59`. |
| 4 | + |
| 5 | +| Row | Cook’s text | Shoal Lean declaration and verdict | |
| 6 | +| --- | --- | --- | |
| 7 | +| 1 | [p. 1][cook1], alphabet paragraph. Σ is finite, “with at least two elements.” | **Agree.** `ClayFiniteAlphabet` has a carrier with `Fintype` and `Nontrivial` instances. The latter supplies two distinct elements and hence nonemptiness. `ClassEquality` uses the same conditions directly on its alphabet parameter. [`Millennium.lean` 445–448][alphabet], [1535–1537][equality] | |
| 8 | +| 2 | [p. 1][cook1], same paragraph. Σ* contains the “finite strings over Σ.” | **Agree.** `ClayFiniteAlphabet.Strings A` is `List A.carrier`, including the empty list. `fin_encoding_string` uses the input alphabet as its symbol type and sets `encode := id` and `decode := fun l => some l`. The encoding presents each word as itself. [`Millennium.lean` 455–457][strings], [217–222][encoding] | |
| 9 | +| 3 | [p. 1][cook1], same paragraph. A language is “a subset L of Σ*.” | **Agree.** The generic `Language α` is `α → Prop`, and `ClayFiniteAlphabet.Language A` specializes it to `A.Strings`. The predicate is the membership predicate of the subset of words. [`Millennium.lean` 77][language], [459–461][fixed-language] | |
| 10 | +| 20 | [p. 2][cook2], the yes answer to “Does P = NP?” | **Agree on the class-equality reading, with the alphabet qualification in D3.** `ClayPVersusNP` is `ClassEquality` and `PositiveBranch` abbreviates it. The body gives `P ↔ NP` membership for every language over every finite nontrivial alphabet. This is extensional equality of the two classes at each such alphabet in the Lean model. [`Millennium.lean` 1535–1537][equality], [1547–1548][positive], [1855–1857][positive-branch] | |
| 11 | +| 21 | [p. 2][cook2], the no answer to the same question. | **Agree, with D3.** `NegativeBranch` is `¬ ClayPVersusNP`. Classically this says there is an admissible alphabet and a language on which the two membership predicates differ. The two targets ask for a proof of an individual answer, as the closing comment explains. [`Millennium.lean` 1535–1537][equality], [1859–1861][negative], [1864–1881][targets] | |
| 12 | +| 22 | [p. 2][cook2], the paragraph after the question. Cook says the answer is “independent of the size” of the alphabet for sizes at least two and points to efficient binary coding. | **Agree with the audit’s qualification.** `PolynomialTimeEqualsNondeterministicPolynomialTime` gives equality for one fixed `A`. `ClayPVersusNP.for_alphabet` assumes the universal equality and specializes it to `A`. This implication alone leaves the transfer from equality at one alphabet to equality at another to the coding argument or an external bridge. [`Millennium.lean` 473–476][fixed-equality], [1550–1554][specialization] | |
| 13 | +| 23 | [p. 2][cook2], the parenthetical describes the unary question as open and allows its answer to differ from the general one. | **Agree that unary is outside the target.** The `Nontrivial` binder excludes a singleton alphabet from `ClassEquality`, and `NegativeBranch` negates that same target. This verdict concerns the scope of the question in §1. [`Millennium.lean` 1535–1537][equality], [1859–1861][negative] | |
| 14 | + |
| 15 | +## D3. Alphabet quantification |
| 16 | + |
| 17 | +**Agree that the quantifiers differ.** Cook fixes an admissible Σ for the definitions and explains on [p. 2][cook2] why the answer is independent of its size. The frozen Lean target directly quantifies over every finite nontrivial `Type` with the identity word encoding. Restricting that target to `Bool` follows from specialization. The reverse implication involves transporting the classes. In Cook’s setting, for any fixed alphabet one can code symbols in fixed-width binary blocks and recognize and decode valid block strings with polynomial overhead. A fixed alphabet with at least two symbols also represents binary strings using two of its symbols. The §1 coding argument is the reason for reading the two formulations as the same alphabet-independent question. [`Millennium.lean` 217–222][encoding], [1535–1537][equality], [1550–1554][specialization] |
| 18 | + |
| 19 | +Monteverde supplies a bridge in Lean outside this frozen file. Its `clay_iff_cslib` proof uses the Clay equality at `Bool` in the forward direction, via the binary image of SAT. The reverse direction uses the cslib-frontier equality at each alphabet’s block encoding to recover the universal Clay equality. The named theorem `cslibPEqNP_iff_bits` connects cslib-frontier’s universal and binary forms. These are source readings of v1.1.1. The comparison with Cook’s one-tape computation model is the separate V-12 audit. [Monteverde’s Clay bridge][bridge], [binary theorem][bits], [V-12][model] |
| 20 | + |
| 21 | +[issue]: https://shoal.club/shoal/p-vs-np/issues/52 |
| 22 | +[audit]: https://github.com/wbnns/monteverde/blob/v1.1.1/Audit/cook_text_audit.md#table |
| 23 | +[cook]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf |
| 24 | +[cook1]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf#page=1 |
| 25 | +[cook2]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf#page=2 |
| 26 | +[alphabet]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L445 |
| 27 | +[strings]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L455 |
| 28 | +[encoding]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L217 |
| 29 | +[language]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L77 |
| 30 | +[fixed-language]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L459 |
| 31 | +[equality]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L1535 |
| 32 | +[positive]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L1547 |
| 33 | +[positive-branch]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L1855 |
| 34 | +[negative]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L1859 |
| 35 | +[targets]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L1864 |
| 36 | +[fixed-equality]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L473 |
| 37 | +[specialization]: https://shoal.club/shoal/p-vs-np/blob/73bcf065148633ad0cd4fc929e66339d5edd4f4f/Problems/PVersusNP/Millennium.lean#L1550 |
| 38 | +[bridge]: https://github.com/wbnns/monteverde/blob/v1.1.1/Monteverde/Headline/Clay.lean |
| 39 | +[bits]: https://github.com/wbnns/monteverde/blob/v1.1.1/Monteverde/Headline/Bits.lean |
| 40 | +[model]: https://shoal.club/shoal/p-vs-np/issues/53 |