Skip to content

closeout(OPE-2): n-queens formalized, no claim — integrates #3/#5/#6/#7 + erratum + claim packet - #8

Open
agentforce314 wants to merge 10 commits into
mainfrom
ope/2-nqueens-closeout
Open

agentforce314 wants to merge 10 commits into
mainfrom
ope/2-nqueens-closeout

Conversation

@agentforce314

Copy link
Copy Markdown
Owner

Director close-out — OPE-2 "solve the n-queens problem" (board-named, full process)

Disposition: formalized, no claim. This PR is the integration of the whole chain plus the close-out artifacts. Merging it (merge commit, not squash) makes #3, #5, #6, #7 redundant — GitHub will mark them merged. #4 is superseded by #6 and should be closed without merging (it carries sorry).

What is in here

Verification (Director, on this branch)

rm .lake/build/lib/ProofLab/NQueensTheorem.*
lake build ProofLab.NQueensTheorem   → ✔ [2240/2240] Built ProofLab.NQueensTheorem, zero sorry warnings
rg "sorry|admit|native_decide" ProofLab/NQueensTheorem.lean → no hits
lake env lean attacks/n-queens-20260912-180329/review_checks.lean → exit 0
  n_queens_exists_iff        : [propext, Classical.choice, Quot.sound]
  queens_exists_of_four_le   : [propext, Quot.sound]
python3 test_mathforge.py → passes

Residual risks (board-facing, from OPE-7 — no claim regardless)

  1. No Lean bridge to the Level A IsNQueens encoding (OPE-1424: n-queens Level A (n=2 none / n=3 none / n=4 [1,3,0,2]) Paul3435/open-math-lab#174). 2. Only reading (a) existence; (b) counting / (c) asymptotics / (d) completion / (e) toroidal untouched. 3. Definition fidelity is human judgement. 4. Single-machine toolchain, no lean4checker. 5. No novelty; Mathlib screen local-pin only. 6. LOG.md erratum (fixed here). 7. n ≠ 2 ∧ n ≠ 3 includes vacuous n = 0. 8. Unused import ProofLab.NQueens (harmless).

Board merges. Paperclip: OPE-2 (parent), OPE-3..OPE-7 (children, all done).

🤖 Generated with Claude Code

agentforce314 and others added 10 commits September 12, 2026 10:51
… pin

- Disambiguate five "n-queens" readings on the feasibility rubric; target (a)
  existence iff n≠2,3 scores 88; expected known-classical, formalize-only
- Pin Lean-shaped statement: NonAttacking (Fin n → Fin n, injective + both
  subtraction-free diagonal families) and n_queens_exists_iff; n=0 convention
- Novelty pre-screen: local Mathlib a719ba5c31 (v4.10.0) grep, ZERO named
  n-queens theorem; literature handles Pauls 1874 / HLM 1969 / Bernhardsson
  1991 / Bell–Stevens 2009; PR Paul3435#174 Level A cited as prior art, not solution
- Catalog row → shortlisted; ledger block + table row; mathforge score run
- Verify: python3 test_mathforge.py (11 OK); python3 bin/mathforge status
…y on branch only)

- New ProofLab/NQueensTheorem.lean: NonAttacking (Fin n → Fin n) and
  n_queens_exists_iff copied verbatim from the Scout pin; optional split
  queens_exists_of_four_le; both tagged STUB: proof in OPE-6
- decide-level sanity: NonAttacking ![1,3,0,2] (PR Paul3435#174 n=4 witness)
- ProofLab.lean imports the new module; ProofLab/NQueens.lean untouched
- STATEMENT.md: carries PR #3 text + appended 'Lean pin' section with
  build tail and #print axioms (now [sorryAx]; done requires none)
- Verify: lake build ProofLab.NQueensTheorem exit 0, 2 sorry warnings

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…Lean lemma plan (status: informal)

- attacks/n-queens-20260912-180329/: LOG.md (formulas E1/E2/corner, named lemmas,
  dead ends, Lean-shaped lemma list, wave estimate, hazards), STATUS.json,
  STRATEGIES.md, verify_construction.py + verify_output.txt (PASS 4<=n<=1000,
  NonAttacking clauses checked verbatim)
- docs/PROBLEM_LEDGER.md: OPE-5 entry

No Lean compiled; no novelty claim; handoff to OPE-6.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… E1/E2 + corner extension)

Proves n_queens_exists_iff and queens_exists_of_four_le in
ProofLab/NQueensTheorem.lean; frozen statements from the OPE-4 pin are
byte-identical. Route is the Attack Lead's (OPE-5) 3-formula partition,
entirely in ℕ → ℕ with one Fin transfer lemma. n = 2, 3 nonexistence by
kernel decide on the function encoding. #print axioms:
[propext, Classical.choice, Quot.sound]. Supersedes PR #4.

Deviations from the LOG text: f₂ pieces P3/P4 written with the addition
first (2*r + 2 - …) to avoid ℕ truncation; e2_no_fix needs 4 ≤ n.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…LOG.md f₂ erratum

- ADVERSARIAL_REVIEW.md: fresh rebuild (Built, not Replayed), own #print axioms,
  keyword grep, cold read of NonAttacking, negative controls per clause,
  deviations (a)/(b) confirmed, hypothesis diff table, scope/claim posture,
  machine-trust boundary, 8 residual risks. Verdict: APPROVE WITH RESIDUALS.
- review_checks.lean + .out: scratch file run with lake env lean (exit 0).
- review_check_f2.py: LOG typed ℕ-form vs signed vs Lean form, 8<=n<=1000.

No claim. Artifact reviewed: origin/ope/6-nqueens-proof @ 8ae158a.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…nqueens-closeout

# Conflicts:
#	catalog/problems/n-queens/STATEMENT.md
… LOG.md erratum, ledger/catalog, claim packet

- Integrates ope/3 (Scout), ope/5 (Attack Lead), ope/6 (Formalist proof), ope/7 (Reviewer);
  one trivial STATEMENT.md conflict resolved by taking the ope/6 version (ope/3 + OPE-4 pin section).
- attacks/n-queens-20260912-180329/LOG.md: erratum header + in-place fix of typed f₂ P3/P4
  (ℕ-truncation) and e2_no_fix (needs 4 ≤ n), as confirmed by OPE-6 and OPE-7.
- STATUS.json → closed-formalized. Ledger + catalog + DOSSIER + feasibility → formalized.
- problems/n-queens/CLAIM_PACKET.md via mathforge claim prepare: recommendation NO CLAIM.
- Verified on this branch: lake build ProofLab.NQueensTheorem fresh Built, zero sorry,
  #print axioms = [propext, Classical.choice, Quot.sound]; Reviewer review_checks.lean exit 0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…c, PDF)

- proofs/n-queens/paper/main.tex: internal lab report — statement, 0-indexed construction
  with Lean lemma tags, formalization + verification, adversarial review (negative controls,
  hypothesis diff), process/timeline, residual risks, lessons; appendices \VerbatimInput the
  Lean source and the review/verify transcripts from the repo so they cannot drift.
- build.sh: tectonic (XeTeX, bundle fonts by filename). tectonic 0.17.0 installed user-locally
  at ~/.local/bin (board OK for user-local tooling).
- main.pdf committed (18 pp, 120 KB). Ledger row + catalog artifacts point at it.
- Claim posture unchanged: internal report, no external claim.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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