Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — Speculative_NumberTheory_NeuralCoding_Phi6SquareDiceBaseCase

Definition
Speculative_NumberTheory_NeuralCoding_Phi6SquareDiceBaseCase

by raver1975 · Sep 13, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogspeculative

Definition bundle for the Aether Catalog module Speculative.NumberTheory.NeuralCoding.Phi6SquareDiceBaseCase, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.

Definition code
-- Def bundle generated from Speculative/NumberTheory/NeuralCoding/Phi6SquareDiceBaseCase.lean by skeleton subtraction
import Mathlib

/-!
# Cyclotomic dice: the explicit base-case witness `p = 2, q = 3, m = 6, n = 2`

This file formalizes a single, fully explicit *admissible instance* of the cyclotomic
"dice transfer" construction.  The combinatorial object behind the algebra is a pair of
weighted dice whose generating polynomials multiply to the product of two consecutive-face
dice generating polynomials.

We work entirely over `Polynomial ℤ` (with auxiliary natural-coefficient polynomials over
`Polynomial ℕ` used only to certify coefficient nonnegativity).

The witness is built from the sixth cyclotomic polynomial `Φ₆ = X² - X + 1`.  Writing
`S N = X + X² + ⋯ + X^N` for the generating polynomial of a fair `N`-faced die, we prove:

* `phi6_mul_P36 : Phi6 * P36 = S 36`,
* `Q4_eq_phi6_mul_S4 : Q4 = Phi6 * S 4`,
* `product_identity : P36 * Q4 = S 36 * S 4`,
* `eval_P36_one : eval 1 P36 = 36` and `eval_Q4_one : eval 1 Q4 = 4`,
* coefficient nonnegativity of both `P36` and `Q4`.

Together these certify that the weighted dice with generating polynomials `P36` and `Q4`
have nonnegative integer face weights summing to `36` and `4` respectively, and reproduce
the product `S 36 * S 4` of two fair-dice generating polynomials.
-/

namespace Phi6SquareDiceBaseCase

open Polynomial Finset

/-- Generating polynomial of a fair `N`-faced die: `X + X² + ⋯ + X^N`. -/
noncomputable def S (N : ℕ) : Polynomial ℤ := ∑ i ∈ Finset.range N, X ^ (i + 1)

/-- The sixth cyclotomic polynomial `Φ₆ = X² - X + 1`. -/
noncomputable def Phi6 : Polynomial ℤ := X ^ 2 - X + 1

/-- The `j`-th natural-coefficient block: `X^{6j+1} + 2 X^{6j+2} + 2 X^{6j+3} + X^{6j+4}`. -/
noncomputable def blockNat (j : ℕ) : Polynomial ℕ :=
  X ^ (6 * j + 1) + C 2 * X ^ (6 * j + 2) + C 2 * X ^ (6 * j + 3) + X ^ (6 * j + 4)

/-- Natural-coefficient generating polynomial of the first weighted die. -/
noncomputable def P36Nat : Polynomial ℕ := ∑ j ∈ Finset.range 6, blockNat j

/-- The first weighted die's generating polynomial, over `ℤ`. -/
noncomputable def P36 : Polynomial ℤ := P36Nat.map (Nat.castRingHom ℤ)

/-- Natural-coefficient generating polynomial of the second weighted die. -/
noncomputable def Q4Nat : Polynomial ℕ := X + X ^ 3 + X ^ 4 + X ^ 6

/-- The second weighted die's generating polynomial, over `ℤ`. -/
noncomputable def Q4 : Polynomial ℤ := Q4Nat.map (Nat.castRingHom ℤ)

/-- Coefficientwise nonnegativity of an integer polynomial. -/
def CoeffNonneg (P : Polynomial ℤ) : Prop := ∀ k, 0 ≤ P.coeff k









end Phi6SquareDiceBaseCase

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me