Theorem 1.1 — Cubic congruence for the q-secant inversion enumerator
OpenQSecantCubic.cubicCongruenceLet be the set of up--down alternating permutations of , with the empty permutation included when . For , let be its inversion number, and define the -secant inversion enumerator
For every natural number , prove the polynomial congruence
Equivalently, divides the difference of the two displayed polynomials in . This is the cubic refinement of the Andrews--Foata congruence and determines the quadratic correction at .
Formalization Note Permutations use the zero-based type Fin (2*n), and congruence is represented by exact divisibility in Polynomial ℤ. The cases and are included in the single statement.
import Definitions.Def_frame_2026_qsecant_interfaces
namespace QSecantCubic
open Polynomial
theorem cubicCongruence (n : ℕ) :
(1 + X) ^ 3 ∣
qSecant n -
(X ^ (2 * n * (n - 1)) -
C (Nat.choose n 2 : ℤ) * (1 + X) ^ 2) := by sorry
end QSecantCubic
Read-back
What the Lean code literally says, in plain math · gpt-5.6-sol
Theorems.QSecantCubic / QSecantCubic.cubicCongruence
For every natural number , let
where the displayed alternation means precisely that every adjacent comparison with even zero-based index is a rise and every one with odd index is a fall, and counts pairs with . The theorem asserts exact divisibility in :
Here is natural-number subtraction, hence is truncated to at , and is coerced from to the integer constant polynomial. Equivalently, the literal divisibility claim is that for every there exists such that
There are no hypotheses on , so the statement is not vacuous. At , , the exponent is , and the binomial coefficient is , making the dividend . At , the sole up-down permutation of two elements is the identity, so , the exponent is again , and the binomial coefficient is , making that dividend as well.
Confirmed by the mission captain (proposal self-audit).