{
  "id": "4635",
  "ident": "NS.04635",
  "slug": "oeis-109074",
  "title": "Numerator of $\\binom{6n-2}{2n} / \\left(2 \\binom{4n-1}{2n}\\right)$",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "\"It is conjectured that $\\binom{6n-2}{2n} / \\left(2 \\binom{4n-1}{2n}\\right) =\n\\text{A005156}(n+1)/\\text{A005156}(n)$.\"\n\nThe OEIS comment indexes A005156 from $1$; for the $0$-indexed sequence `b` this states\n`frac (n + 1) = b (n + 1) / b n`. This holds by the product formula\n$$\\text{A005156}(n) = \\frac{1}{2^n} \\prod_{k=1}^{n} \\frac{(6k-2)!\\,(2k-1)!}{(4k-1)!\\,(4k-2)!}$$\nconjectured by Robbins and proved by Kuperberg (2002).",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA109074.conjecture",
  "statement_lean": "theorem conjecture (n : ℕ) :\n    frac (n + 1) = (b (n + 1) : ℚ) / (b n : ℚ)",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Numerator of $\\binom{6n-2}{2n} / \\left(2 \\binom{4n-1}{2n}\\right)$\n\nThe sequence $a(n)$ is the numerator of $\\binom{6n-2}{2n} / \\left(2 \\binom{4n-1}{2n}\\right)$.\nThe OEIS entry records the conjecture that this ratio equals $\\text{A005156}(n) / \\text{A005156}(n-1)$,\nwhere $\\text{A005156}(n)$ is the number of $(2n+1) \\times (2n+1)$ vertically symmetric alternating\nsign matrices (VSASMs). This follows from Robbins's VSASM product formula, proved by Kuperberg\n(2002).\n\n*References:*\n- [A109074](https://oeis.org/A109074)\n- [A005156](https://oeis.org/A005156)\n- G. Kuperberg, \"Symmetry classes of alternating-sign matrices under one roof,\"\n  [arXiv:math/0008184](https://arxiv.org/abs/math/0008184), *Ann. of Math.* **156** (2002),\n  835–866.\n-/\n\n@[expose] public section\n\nnamespace OeisA109074\n\nopen Nat\n\n/--\nThe rational number defined by $\\binom{6n-2}{2n} / \\left(2 \\binom{4n-1}{2n}\\right)$,\nwhose numerator is A109074.\n-/\ndef frac (n : ℕ) : ℚ :=\n  let numTerm : ℕ := (6 * n - 2).choose (2 * n)\n  let denTerm : ℕ := 2 * ((4 * n - 1).choose (2 * n))\n  (numTerm : ℚ) / (denTerm : ℚ)\n\n/--\nThe primary defining sequence `a`.\n$a(n)$ is the numerator of $\\binom{6n-2}{2n} / \\left(2 \\binom{4n-1}{2n}\\right)$.\n-/\ndef a (n : ℕ) : ℕ :=\n  (frac n).num.natAbs\n\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 1 := by native_decide\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by native_decide\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 3 := by native_decide\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 26 := by native_decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 323 := by native_decide\n\n/--\nLists of length `k` with entries in `{-1, 0, 1}`.\n-/\ndef trinaryLists : ℕ → List (List ℤ)\n  | 0 => [[]]\n  | k + 1 =>\n    (trinaryLists k).flatMap fun xs => [(-1 : ℤ) :: xs, 0 :: xs, 1 :: xs]\n\n/--\nChecks that all prefix sums of `xs` starting from `acc` lie in `{0, 1}` and the final sum is `1`.\n-/\ndef isAsmLineAux : ℤ → List ℤ → Bool\n  | acc, [] => acc == 1\n  | acc, x :: xs =>\n    let s := acc + x\n    (s == 0 || s == 1) && isAsmLineAux s xs\n\n/--\nA list of integers in `{-1, 0, 1}` is a valid alternating sign matrix row/column if all of its\nprefix sums lie in `{0, 1}` and its total sum is `1`.\n-/\ndef isAsmLine (xs : List ℤ) : Bool :=\n  isAsmLineAux 0 xs\n\n/--\nAll vertically symmetric alternating sign matrix rows of length `2 * n + 1`.\n-/\ndef symAsmRows (n : ℕ) : List (List ℤ) :=\n  (trinaryLists n).flatMap fun half =>\n    [(-1 : ℤ), 0, 1].filterMap fun mid =>\n      let row := half ++ [mid] ++ half.reverse\n      if isAsmLine row then some row else none\n\n/--\nNumber of ways to complete `k` remaining vertically symmetric ASM rows given the current column\npartial sums `colSums`.\n-/\ndef countVsasmRows (rows : List (List ℤ)) : ℕ → List ℤ → ℕ\n  | 0, colSums => if colSums.all (· == 1) then 1 else 0\n  | k + 1, colSums =>\n    let step := countVsasmRows rows k\n    rows.foldl (fun acc r =>\n      let nextSums := List.zipWith (· + ·) colSums r\n      if nextSums.all (fun s => s == 0 || s == 1) then\n        acc + step nextSums\n      else acc) 0\n\n/--\nA005156 (offset 0): the number of $(2n+1) \\times (2n+1)$ alternating sign matrices symmetric\nabout the vertical axis (VSASMs).\n-/\ndef b (n : ℕ) : ℕ :=\n  countVsasmRows (symAsmRows n) (2 * n + 1) (List.replicate (2 * n + 1) 0)\n\n@[category test, AMS 5 11]\ntheorem b_0 : b 0 = 1 := by decide\n\n@[category test, AMS 5 11]\ntheorem b_1 : b 1 = 1 := by decide\n\n@[category test, AMS 5 11]\ntheorem b_2 : b 2 = 3 := by decide\n\n@[category test, AMS 5 11]\ntheorem b_3 : b 3 = 26 := by decide\n\n@[category test, AMS 5 11]\ntheorem b_4 : b 4 = 646 := by native_decide\n\n/--\n\"It is conjectured that $\\binom{6n-2}{2n} / \\left(2 \\binom{4n-1}{2n}\\right) =\n\\text{A005156}(n+1)/\\text{A005156}(n)$.\"\n\nThe OEIS comment indexes A005156 from $1$; for the $0$-indexed sequence `b` this states\n`frac (n + 1) = b (n + 1) / b n`. This holds by the product formula\n$$\\text{A005156}(n) = \\frac{1}{2^n} \\prod_{k=1}^{n} \\frac{(6k-2)!\\,(2k-1)!}{(4k-1)!\\,(4k-2)!}$$\nconjectured by Robbins and proved by Kuperberg (2002).\n-/\n@[category research solved, AMS 5 11]\ntheorem conjecture (n : ℕ) :\n    frac (n + 1) = (b (n + 1) : ℚ) / (b n : ℚ) := by\n  sorry\n\nend OeisA109074\n",
  "statement_hash": "c3ff5d5a2317de455fd14c4e902f91d078ff1c700ae779daa7ff3e53626236bf",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}