Left to Solve
Problems / MathOverflow (not formalized)

Integer compositions with quadratic sum constraint

Open, not yet stated in LeanMathOverflow (not formalized)Combinatoricsdifficulty55/100

Statement

A statistical question I'm studying has led me to the following counting problem: Let . For integers and , determine the number of compositions of (i.e. and ) such that .

I can calculate by means of the recursion with base cases

At each level of the recursion there are terms to compute, and each one takes time, so this trying to solve for in this way becomes prohibitively slow for large .

I'm wondering if there is a way to speed this computation up, particularly if there is any sort of asymptotic (in ) approximation possible. The reason I think there might be is that normalizing the sequence by its sum and smoothing the resulting density a bit shows it to have a nice form that looks something like a gamma density, …

Posed by nth · co.combinatorics, enumerative-combinatorics

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-262500.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-262500.lean

import Mathlib

/-!
# Integer compositions with quadratic sum constraint

Source: https://mathoverflow.net/questions/262500
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_262500

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_262500