**The type-pair channel of a prime cyclic order â a closed form for every
ProvedCyclicTypeChannel.Ipair_primeaether-catalogshared
The type-pair channel of a prime cyclic order â a closed form for every
prime. For p = 2 this returns the paper-74 cap 1; for every odd prime the
value is strictly smaller (Ipair_prime_lt_one).
theorem CyclicTypeChannel.Ipair_prime{p : ℕ} (hp : p.Prime) :
Ipair p = Real.logb 2 p
- ((p : ℝ) - 1) * (2 * (p : ℝ) - 1) * Real.logb 2 ((p : ℝ) - 1) / (p : ℝ) ^ 2
+ ((p : ℝ) - 1) * ((p : ℝ) - 2) * Real.logb 2 ((p : ℝ) - 2) / (p : ℝ) ^ 2 := by sorry
/-! ## 5. Consequences: the cap among prime orders -/
/-! ## 6. Cross-checks against the enumerated values
`Ipair 3` and `Ipair 5` were computed in `CyclicTypeChannelCRT.lean` by explicit
enumeration of the `9`- and `25`-element boxes. Re-deriving them from the general
prime formula is an independent check of the closed form. -/
Formalization Note Transplanted verbatim from the Aether Catalog source Shared/CyclicTypeChannelPrime.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Shared/CyclicTypeChannelPrime.lean import Mathlib import Definitions.Def_Shared_CyclicTypeChannel import Definitions.Def_Shared_CyclicTypeChannelPrime /- # The prime cyclic order: a closed form for the type-pair channel The exact-value files compute the type-pair channel `Ipair n` for a finite list of cyclic orders. This file closes the *prime* case in complete generality: for every prime `p` the channel of the cyclic order `C p` is `Ipair p = log₂ p - (p-1)(2p-1)/p² · log₂ (p-1) + (p-1)(p-2)/p² · log₂ (p-2)`. (`Ipair_prime`; the two exact values `Ipair 3` and `Ipair 5` recorded in `CyclicTypeChannelCRT.lean` are the instances `p = 3, 5`.) Two consequences: * `Ipair_prime_lt_one`: every **odd** prime order is *strictly below* the one-bit binary-fork cap, so among prime cyclic orders the cap is attained exactly at `p = 2` (`Ipair_prime_eq_one_iff`). This upgrades the isolated computations `Ipair 3 < 1`, `Ipair 5 < 1` to an infinite statement and shows that the above-cap phenomenon of `C₄, C₆, C₁₀, C₁₂, C₁₆` is genuinely a *composite* phenomenon: a prime cyclic order has only two splitting types, and its fork is exactly the binary fork that papers 72–74 capped. * `above_cap_imp_not_prime`: breaking the cap forces the cyclic order to be composite. -/ open CyclicTypeChannel open Finset /-! ## 1. The splitting type of a prime cyclic order -/ /-! ## 2. The three fibres in the box -/ /-! ## 3. The pair entropy -/ /-! ## 4. The conditional entropy -/ /-! ### The nonzero fibres -/
Formal statement
theorem CyclicTypeChannel.Ipair_prime{p : ℕ} (hp : p.Prime) :
Ipair p = Real.logb 2 p
- ((p : ℝ) - 1) * (2 * (p : ℝ) - 1) * Real.logb 2 ((p : ℝ) - 1) / (p : ℝ) ^ 2
+ ((p : ℝ) - 1) * ((p : ℝ) - 2) * Real.logb 2 ((p : ℝ) - 2) / (p : ℝ) ^ 2 := by sorrySource