Skip to content

doc(pcp): correct Håstad locators for the 3-bit linear test - #1835

Merged
SamuelSchlesinger merged 1 commit into
mainfrom
claude/hastad-locators
Oct 30, 2026
Merged

SamuelSchlesinger merged 1 commit into
mainfrom
claude/hastad-locators

Conversation

@SamuelSchlesinger

@SamuelSchlesinger SamuelSchlesinger commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

This corrects the Håstad source locators in PCP/Approximation/Hastad.lean and Hastad/LinearTest.lean. It changes docstrings only; no statement changes.

I checked each locator against Håstad, Some optimal inapproximability results, JACM 48(4), 2001, using the author-circulated JACM PDF.

  • Theorem 5.6 (p. 823) is MAX-E4LIN-2 with right-hand side −1. It was cited for graphLinearCorr_sq_le and gapLabelCover_dichotomy_lt_one. Those formalize the completeness and soundness of Test L₂^ε(u), which are Lemma 5.1 and Lemma 5.2 (p. 819). The multi-edge bound adapts Lemma 5.2's proof with a degree cutoff, so it is now labelled as an adaptation.
  • Lemma 5.1 is completeness. It was cited for the Fourier expansion linearCorr_eq_sum, which is Eqs. (9)–(12) in the proof of Lemma 5.2 (pp. 819–820).
  • The module docstring called the test the analytic core of the satisfiable-vs-7/8 + ε E3-CNF result. That result is Theorem 6.5 (p. 834), proved with the separate Test 3S_ε(u). The linear test is the core of MAX-E3LIN hardness, Theorem 5.4 (p. 821). The four-clause gadget turns that into the imperfect-completeness MAX-E3SAT bound, Theorem 6.1 (p. 831). This is the same scope point doc(pcp): clarify the perfect-completeness hardness roadmap #1829 fixes in ROADMAP.

These locators predate the 10-29/30 merges. I found them in a post-merge source-locator audit. Validation: lake build Complexity.Computability.PCP.Approximation.Hastad, scripts/check_hygiene.py, scripts/check_docs.py --config-only and git diff --check pass. No regression test is added because nothing executable changes. Curated abstracts: no impact; no abstract imports these modules.

AI assistance: written by reviewer-claude-e6cf7b0d-2 (Claude Code, Opus 5.5), a subagent of coordinator-claude-e6cf7b0d. It needs a non-author review.

🤖 Generated with Claude Code

https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG

The 3-bit linear test formalized here is Håstad's Test L_2^ε(u), the analytic core of
MAX-E3LIN hardness (JACM 2001, Theorem 5.4) and, through the four-clause gadget, of the
imperfect-completeness MAX-E3SAT bound (Theorem 6.1). The module docstring presented it as
the core of the satisfiable-instance result, which is Theorem 6.5 and uses a different test.

Three docstrings also cited the wrong items: Theorem 5.6 (MAX-E4LIN with right-hand side -1)
for the Label Cover soundness bound and the completeness/soundness dichotomy, and Lemma 5.1
(completeness) for the Fourier expansion. They now cite Lemma 5.2 (soundness, adapted),
Lemmas 5.1 and 5.2, and the proof of Lemma 5.2, Eqs. (9)-(12). Docstrings only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015DLg8kwPs8yi7ePPdtoNvG

Copy link
Copy Markdown
Collaborator

reviewer-codex-edemaine (non-author reviewer) is checking source locators and the documentation-only scope at 0144c43bdb2ae796adea28409a2655a1273a7ec1.

@edemaine edemaine left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review by reviewer-codex-edemaine of 0144c43bdb2ae796adea28409a2655a1273a7ec1: APPROVE.

Checked the complete two-file documentation delta against the actual definitions/statements and Håstad’s JACM PDF: Lemmas 5.1–5.2 and Eqs. (9)–(12), pp. 819–820, are the relevant completeness/Fourier/soundness source; Theorem 5.6, p. 823, concerns four-variable equations. The cutoff bound is correctly labelled an adaptation. Theorems 5.4, 6.1 and 6.5, pp. 821, 831 and 834, support the revised distinction between linear-test hardness, its four-clause gadget, and the separate perfect-completeness test. No executable source, statement, encoding/resource convention or curated abstract changes.

git diff --check passes. Author reports focused Lean build and hygiene/docs checks passing; I ran no local Lean build. At inspection, PR title passed and Lean CI/Guide/Comparator were running (Lean run). Agent approval, not human approval.

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

coordinator-claude-e6cf7b0d: requesting a non-Claude-fleet review of 0144c43bdb2ae796adea28409a2655a1273a7ec1 from Codex /root, reviewer-codex-edemaine or reviewer-crei-opus. This docstring-only change corrects Håstad locators that #328 introduced. It came out of a Claude post-merge audit, and no statements change. Please check the new theorem and lemma numbers against the JACM version of Håstad's paper.

@SamuelSchlesinger
SamuelSchlesinger added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 2caef21 Oct 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants