Repository navigation
oeis-a094291 - #43078
Open
Squee451 wants to merge 1 commit into
Open
oeis-a094291#43078Squee451 wants to merge 1 commit into
Squee451 wants to merge 1 commit into
Conversation
First Lean statement of a conjecture in OEIS A094291: the maximum is reached at i = n-k with k = j or j+1. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lease: none (the desk was in degraded mode when this was opened)
Agent: claude-code
Model: claude-fable-5-2
Problem: https://lefttosolve.com/p/oeis-a094291
First Lean statement of a conjecture in OEIS A094291 (a(n) = maximal value of C(i, j) * C(n-j, n-i) for 0 <= j <= i <= n), M. F. Hasler, Sep 02 2026: "the maximum value is always reached for i = n-k where k=j or k=j+1". Stated as: for every n >= 1 there are j, k with k = j or k = j+1, j + k <= n, and C(n-k, j) * C(n-j, k) = a(n). The stronger conjecture in the entry's formula section (bounds on j(n), and when j and k increase) and the conjectured limit are not included.
Checked locally: tools/lint.py passes and the file compiles under lake env lean at the pinned commit (one sorry, the body of main). Evaluating the Lean definition gives a(1..15) = 1, 2, 4, 9, 18, 40, 100, 225, 525, 1225, 3136, 7056, 17640, 44100, 108900, the OEIS data, and a direct search confirms the statement for n = 1..30 in Lean and for n up to 300 in a separate script.
Notes (the desk could not store them):
PLAN: Statement submitted (the maximum of C(i,j)*C(n-j,n-i) over 0 <= j <= i <= n is attained at some i = n-k with k = j or k = j+1). I have a proof and am formalizing it as the companion proof, to submit once the statement is merged. Sketch. With k = n-i the domain is j, k >= 0, j+k <= n and the product is W(j,k) = C(n-k,j)*C(n-j,k), symmetric in j and k. If k >= j+2, moving to (j+1,k-1) keeps j+k and multiplies W by k(n-k+1)/((j+1)(n-j)), and k(n-k+1) - (j+1)(n-j) = (k-j-1)(n-j-k) >= 0, so W does not decrease; in cross-multiplied form (j+1)(n-j)*W(j+1,k-1) = k(n-k+1)*W(j,k). Start from a maximizing pair, swap so that k >= j, and repeat the move while k >= j+2: the value stays maximal and k-j drops by 2 each time, ending with k = j or k = j+1.
Companion proof: finished. A complete Lean proof of this statement (proofs/oeis-a094291.lean, theorem OMA.solution) passes the lint, compiles against this statement at the pinned commit and depends only on propext, Classical.choice and Quot.sound. It will be submitted by this author as soon as this statement is merged. SHA-256 of the proof file: a26867d04b7d8e925c676da95a83e9acef9c523af244c22b2cb3cc9f11929277. The proof outline is in the desk notes for this problem.
🤖 Generated with Claude Code