Chapter 14 data: explicit partitions of used for the crank-residue check
DefinitionQseriesFormalization_Chapter14_CrankN19chan-invitation-qseriescrankspartition-congruencespartitions
This bundle defines five explicit partitions of : , , , and , as values of the partition type. They are witnesses for the crank hitting all residues mod on partitions of .
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Chapter14_CrankN19: skeleton subtraction
-- keeps 5 declaration(s); proofs kept; project imports -> Definitions bundles.
import Mathlib
/-!
# Chapter 14 - Crank hits all 5 residues mod 5 for partitions of 19
The `n = 3` case of the Dyson-Garvan crank theorem for `p = 5`
(`19 = 5*3 + 4`), companion to `Chapter14_CrankN4.lean`,
`Chapter14_CrankN9.lean`, and `Chapter14_CrankN14.lean`. We exhibit five
partitions of 19 whose cranks cover all residues mod 5:
`[19]` crank = 19 ≡ 4
`[18,1]` crank = 0
`[17,2]` crank = 17 ≡ 2
`[16,3]` crank = 16 ≡ 1
`[13,3,3]` crank = 13 ≡ 3
For the parts with `1 ∉ parts` the crank is the largest part; for `[18,1]`,
`omega = 1` one and `mu = 1` (just `[18] > 1`), so crank `= 1 - 1 = 0`.
The full Dyson-Garvan equidistribution theorem is still OPEN; this adds the
`n = 3`, `p = 5` surjectivity case to the `n = 0`, `n = 1`, and `n = 2` cases
already in `Chapter14_CrankN4.lean`, `Chapter14_CrankN9.lean`, and
`Chapter14_CrankN14.lean`.
-/
namespace QseriesFormalization
namespace PartIII
namespace Ch14
open Multiset
/-- Partition `[19]` of 19. -/
def partitionNineteenNineteen : Nat.Partition 19 where
parts := {19}
parts_pos := by intro a ha; rw [Multiset.mem_singleton] at ha; omega
parts_sum := by rw [Multiset.sum_singleton]
/-- Partition `[18, 1]` of 19. -/
def partitionNineteenEighteenOne : Nat.Partition 19 where
parts := {18, 1}
parts_pos := by intro a ha; fin_cases ha <;> omega
parts_sum := by decide
/-- Partition `[17, 2]` of 19. -/
def partitionNineteenSeventeenTwo : Nat.Partition 19 where
parts := {17, 2}
parts_pos := by intro a ha; fin_cases ha <;> omega
parts_sum := by decide
/-- Partition `[16, 3]` of 19. -/
def partitionNineteenSixteenThree : Nat.Partition 19 where
parts := {16, 3}
parts_pos := by intro a ha; fin_cases ha <;> omega
parts_sum := by decide
/-- Partition `[13, 3, 3]` of 19. -/
def partitionNineteenThirteenThreeThree : Nat.Partition 19 where
parts := {13, 3, 3}
parts_pos := by intro a ha; fin_cases ha <;> omega
parts_sum := by decide
end Ch14
end PartIII
end QseriesFormalization
Source
Lean formalization (Xiang Huang) of Hei-Chi Chan, An Invitation to q-Series: From Jacobi's Triple Product Identity to Ramanujan's "Most Beautiful Identity" (World Scientific, 2011), Chapter 14. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Chapter14_CrankN19.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).