Skip to content

statement: parameterize Catalan's irrationality-exponent upper bound - #21

Closed
1337isnot1337 wants to merge 1 commit into
bigospeedrun:mainfrom
1337isnot1337:statement/catalan-exponent
Closed

1337isnot1337 wants to merge 1 commit into
bigospeedrun:mainfrom
1337isnot1337:statement/catalan-exponent

Conversation

@1337isnot1337

Copy link
Copy Markdown

Catalan currently has no trusted parameterized statement in the verifier. This adds BigOSpeedrun.Catalan.Bound r for the fixed literal Catalan series: for every real exponent s > r, all sufficiently large natural denominators and all integer numerators satisfy the approximation inequality, excluding exact rational equalities. Smaller nonnegative rational bounds are better. This represents the irrationality-exponent upper bound without requiring the stronger inequality at the exact endpoint.

The research package preserves Sean Litsey's pinned statement template byte for byte without importing its proof holes, records licenses and source hashes, and documents model choices and remaining review obligations. No finite Catalan bound, irrationality proof, or improved record is claimed. Maintainers still need to review and enable the profile, target generator and Comparator/receipt bindings.

Validation: contributor-owned GitHub Actions run compiled the proposed statement and five validation declarations, including the source-shape bridge, bound monotonicity, a positive control, and rejection of bound zero for the actual Catalan series. All five printed axiom reports contain only propext, Classical.choice and Quot.sound. The final package records hashes matching the tested source files. Python package verification, live run verification, shell syntax and git diff --check passed. No Lean ran on the office host; no production workflow or enabled verifier target changes.

Reproduce package checks:

python3 auto-research/lean-statements/2026-10-19-1337isnot1337-catalan-exponent/verify.py

Prepared with OpenAI Codex (GPT-6); original proof credit remains with the cited source authors.

@nmamano

nmamano commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Agent for Nil (BOS Reviewer):

Reply from BOS Reviewer, the agent that maintains this verifier: thank you, the statement is careful and well documented, and the validation checks help. Because it would become a trusted target, a maintainer has to decide two points first: whether the target should also imply that Catalan's constant is irrational, as the current claims do, and which pinned Lean and Mathlib versions it uses (yours match none of our current profiles). We reply here once that is decided.

@nmamano

nmamano commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Agent for Nil (BOS Reviewer):

Decision (BOS Reviewer, for the maintainers): we ask for two changes before we accept it. (1) The target should imply that Catalan's constant is irrational, as the current claims do: state the bound for every fraction a/b, with no exclusion of exact equality (for example b^(-r) < |G - a/b| for all large b and all a). (2) Pin it to one of our existing profiles: Lean v4.33.1 with Mathlib 0df444a, or Lean v4.34.1 with Mathlib d13f23b7 (see profiles/). If the changes are not here by 2026-10-28, we close this PR with a note, and you can reopen it when it is ready.

nmamano added a commit that referenced this pull request Oct 21, 2026
…tem no longer stops it

The first scan on 17a76eb (2026-10-21 18:47Z, run 39655822107) replied to issue
#35 and then stopped with an HTTPError at PR #21: the select job's token had
pull-requests: read, and an issue comment on a PR needs pull-requests: write.
The select job now has pull-requests: write (it still checks out no PR code).
Each item is now replied to in its own try: a failed item is logged by number
and error type, and the pass goes on to the next one. The pass's own cap and
the shared selection budget still stop the whole pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Received. This PR changes no submissions/ folder, so it starts no proof run. A maintainer reviews it and answers here.

@darkhipo

Copy link
Copy Markdown
Contributor

Both changes from the Oct 21 decision are still outstanding at head f44a5460 (unmoved since that ack), and the window closes 2026-10-28. I went through both against the actual tree, and they are smaller than they look — in particular ask (1) is a one-line deletion, and the file already contains the shape you need.

Ask 1 — drop the exact-equality exclusion: one deleted line

challenges/catalan/Statement.lean currently defines

def UpperBoundFor (x r : ℝ) : Prop :=
  ∀ s : ℝ, r < s →
    ∀ᶠ b : ℕ in Filter.atTop, ∀ a : ℤ,
      x ≠ (a : ℝ) / (b : ℝ) →                                   -- ← this line
        (b : ℝ) ^ (-s) < |x - (a : ℝ) / (b : ℝ)|

Delete the marked hypothesis and you have precisely the form the reviewer asked for: b^(-s) < |x - a/b| for all large b and all a, with no exclusion. No new definition is needed — the strict inequality already does the work, since at x = a/b the right side is 0 and the inequality fails.

Why the current form does not imply irrationality, quantified. If x = p/q is rational, then for any a/b ≠ x we have |x − a/b| = |pb − aq|/(qb) ≥ 1/(qb), so b^(−s) < 1/(qb) for all large b whenever s > 1; and for the fractions that do equal x the hypothesis x ≠ a/b is false, so they impose nothing. Hence UpperBoundFor x r holds for every rational x and every r ≥ 0 (take s = max(r,1)+1). So Bound 0 is trivially true for any rational constant — the target as written cannot distinguish rational from irrational, which is exactly the reviewer's objection, and it also means the race would admit a degenerate best-possible r = 0 proof.

After the deletion, a rational x makes the statement false (pick b a multiple of q, a = pb/q, arbitrarily large), so any proof of Bound r forces irrationality — with no change to what an honest proof has to establish.

Worth noting: Endpoint at line 27 already has the wanted shape — ∀ᶠ b, ∀ a, b^(-s) < |x - a/b|, no hypothesis — and its docstring says "as in the pinned source". So UpperBoundFor can simply be ∀ s, r < s → Endpoint x s, and the file stops carrying two definitions that differ only by a vacuity-inducing guard. The docstring line "For irrational x the exclusion is automatic" then becomes moot and can go.

Ask 2 — pin to a profile: measured mapping

The PR's data/source-lake-manifest.json records mathlib 065356127b1dc0016f66b7283ce0ce2c4055aa55 at inputRev v4.35.0-rc2 — which matches neither profile, confirming the reviewer verbatim. The two profiles resolve to:

profile mathlib rev notes
profiles/anthropic-lake-manifest.json 0df444a360eaa60ab8c11dca51a86af692955474 mathlib inputRev v4.33.1, fixedToolchain: false
profiles/lake-manifest.json d13f23b723b8a846827a245b89c10fc7d3f11612 mathlib inputRev is the rev itself, fixedToolchain: true

So the mechanical fix is: copy one of those two files over data/source-lake-manifest.json, and add the matching lean-toolchain to data/ — there is no lean-toolchain there today, and the fixedToolchain: true profile is the one where an unpaired toolchain is most likely to drift.

One detail worth confirming with the reviewer before pinning, since it changes which lean-toolchain you write: profiles/lake-manifest.json records the Cli package at inputRev v4.34.0, not v4.34.1. Either the toolchain lives outside the manifest or the version in the comment is approximate — a one-line question in this thread settles it and avoids pinning to the wrong toolchain file.

The evidence itself is fine

Since I had the tree at hand: all four sha256 values in evidence/lean-check.json match the branch byte-for-byte after normalizing CRLF (107, 49, 39 and 23 CRs; shasum hashes bytes, hence the apparent mismatch). Nothing is stale — the branch was not amended after that run. The statement is pure definitions with no theorem and no sorry, consistent with its scope.

So the remaining distance is one deleted line, one manifest swap, and one lean-toolchain file. Two days left.

@nmamano

nmamano commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Agent for Nil (BOS Reviewer):

Thank you, @darkhipo, for the careful check against the tree.

Toolchain per profile. The manifests do not record the Lean version. inputRev v4.34.0 is the tag of the Cli package, not the Lean version. The race profile sets the toolchain in its lean_toolchain field, and the verifier writes lean-toolchain from that field when it builds (scripts/verifier.py line 275). The pairs are:

manifest Mathlib rev lean-toolchain
profiles/lake-manifest.json d13f23b723b8a846827a245b89c10fc7d3f11612 leanprover/lean4:v4.34.1
profiles/anthropic-lake-manifest.json 0df444a360eaa60ab8c11dca51a86af692955474 leanprover/lean4:v4.33.1

You can see each pair in profiles/direct.json (dft uses the first one, 3sum, apsp and average-sensitivity use the second one), and the lean-toolchain file of Mathlib at each of those revs has the same version. Thus v4.34.1 in our Oct 21 comment is correct.

Ask (1). Your reading is correct: Endpoint (line 27) already has the shape we asked for, so UpperBoundFor x r := ∀ s, r < s → Endpoint x s satisfies ask (1). One small correction: with the current exclusion, a rational x satisfies UpperBoundFor x r for every r ≥ 1 (not every r ≥ 0), because each s > r must hold. The conclusion stays the same: the current target does not imply irrationality.

Next step. We do not edit this branch. The PR author must push the changes, or anyone can open a new PR with them. If the head of this PR does not change by 2026-10-28, we close it on that date. It can be reopened later.

nmamano added a commit that referenced this pull request Oct 26, 2026
…on, Lean v4.34.1)

Trusted statement for /other/catalan, written by BOS Integrations (Claude) after verifier #21 by
1337isnot1337, with darkhipo's review of it; series and inequality as in Sean Litsey's Challenge.lean
(slitsey/catalan-irrationality-measure@50672b8). BigOSpeedrun.Catalan.Bound r: 0 <= r and, for every
real s > r, for all large b and every integer a, b^(-s) < |G - a/b|. No fraction is excluded, so a
proof also proves that G is irrational (the 2026-10-21 ask on #21). Profile: Lean v4.34.1 with Mathlib
d13f23b (profiles/lake-manifest.json, the dft profile: the OAI library of the existing Lean proofs is native there; Lead, 2026-10-26). Statement.lean sha256 9ba7370f.

Validation.lean (not trusted): irrationality, rationals fail, monotonicity, the transfer from a
fixed-exponent result (Litsey's form) to Bound, summability of the series, and sqrt 2 controls; only
propext, Classical.choice and Quot.sound. Independent statement review by BOS Reviewer (2026-10-26).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@darkhipo

Copy link
Copy Markdown
Contributor

Status note before the 2026-10-28 window closes -- written from the tree, not from memory.

The substance of this PR is already in main, and it is credited to you

main commit 6b7a1d2 ("statement: Catalan irrationality-exponent target (no equality exclusion, Lean v4.34.1)", Nil Mamano, 2026-10-26T18:14:06+0100) adds:

challenges/catalan/LICENSE
challenges/catalan/NOTICE
challenges/catalan/README.md
challenges/catalan/Statement.lean
challenges/catalan/Validation.lean

Its own commit message says "written by BOS Integrations (Claude) after verifier #21 by 1337isnot1337, with darkhipo's review of it", and the header of challenges/catalan/Statement.lean says "Its form with a parameter is a BigOSpeedrun adapter, written after the pull request of 1337isnot1337 (verifier #21)."

Both changes from the 2026-10-21 decision were made there, not on this branch:

  1. No equality exclusion. Your UpperBoundFor carried x != (a:R)/(b:R) -> as a hypothesis. main's drops it and reuses the Endpoint you already had:

    def UpperBoundFor (x r : R) : Prop :=
      forall s : R, r < s -> Endpoint x s

    so Bound r now implies G is irrational -- the ask exactly.

  2. Profile pinned. Lean v4.34.1 with Mathlib d13f23b (profiles/lake-manifest.json, the dft profile), Statement.lean sha256 9ba7370f recorded in the commit.

    One difference I did not get to the bottom of, so I am flagging it rather than judging it: main's file uses plain import where yours uses module / public import / @[expose] public section. I have not run either against the v4.34.1 profile, so I cannot tell you which of the two it actually accepts -- only that they are not the same file.

What this means for the PR

main and this branch now both add challenges/catalan/, so GitHub reports CONFLICTING. Measured with git merge-tree --write-tree origin/main f44a5460, the conflicted paths are exactly four:

challenges/catalan/README.md        (add/add)
challenges/catalan/Statement.lean   (add/add)
scripts/submissions.py              (content)
tests/test_submissions.py           (content)

So the automatic close on 2026-10-28 will fire for a merge conflict, not for a missed ask. Please do not read it as a rejection: the target is live on main today.

To be clear about my own earlier comment here (2026-10-26T06:06Z): I asked for the two changes on this branch by 2026-10-28. That request was answered on main's side about eleven hours later, by the maintainer, in his own commit. My ask is moot and I should not have implied the window was the thing to beat.

If you want the research package kept, this is the only form of #21 that still adds something

Everything under auto-research/lean-statements/2026-10-19-1337isnot1337-catalan-exponent/ (Validation.lean, verify.py, evidence/, data/, code/, check-catalan.yml, verify-lean.sh) is not in main. main does ship its own challenges/catalan/Validation.lean, but it is a different file at a different path -- nothing from this branch's package was carried over. So a rebase onto current main that:

  • drops this branch's challenges/catalan/Statement.lean and README.md in favour of main's (they are the trusted target now),
  • keeps the research package and re-points its data/TARGETS.json at challenges/catalan/Statement.lean,
  • re-resolves scripts/submissions.py and tests/test_submissions.py against main's current registry,

would still carry unique content -- a package that validates the adopted target without importing its proof holes. That is your call entirely; if you would rather let it close, nothing is lost, because the target itself is already accepted.

I am not a maintainer here and cannot speak for the verifier. I can review a rebased head against verify.py if that is useful. Either way, thank you for the statement -- the three definitions and the Endpoint/UpperBoundFor split were the right shape, and it is the shape that shipped.

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.

3 participants