prime_convolution_critical_env_orbit_decomposition
The critical two-level environment is one two-support product orbit plus a nonnegative diagonal matrix for every allowed prime dimension and coupling.
Statement
open Fin.CommRing in theorem prime_convolution_critical_env_orbit_decomposition (n : ℕ) (hp : (n+2).Prime) (h5 : 5 ≤ n+2) (r : Fin (n+2)) (hr0 : r ≠ 0) (hr1 : r ≠ 1) (hr2 : 2*r ≠ 1) (p : ℝ) (hp0 : 0 ≤ p) (hp1 : p ≤ 1) : ∃ (a b w : Fin (n+2) → ℝ), (∀ j, 0 ≤ w j) ∧ prime_convolution_critical_env (n+2) p = (Matrix.of fun j l => ((∑ i, a i * b (r*i+j) * a (i+j-l) * b (r*(i+j-l)+l) : ℝ) : ℂ)) + Matrix.diagonal (fun j => (w j : ℂ))
- Source
- OP-2466 product-orbit decomposition
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- prime_convolution_critical_envThe critical (threshold) environment sigma_crit = |psi_p><psi_p| + sqrt(p(1-p)) * I on Fin d: the two-level pure environment shifted by…
- prime_convolution_two_support_orbit_formulaThe product orbit supported at 0 and minus one produces the two-level rank-one environment plus its two crossed diagonal entries, provided…
- two_level_psiThe unit vector psi_p on Fin d with psi_p(j) = sqrt(p) for j = 0, sqrt(1 - p) for j = 1, and 0 for all other j (the pure state entering…
The proof, explained
The proof constructs candidate profile vectors a, b and diagonal weights w from the dimension and coupling parameters. By the two-support orbit summation formula, the convolution sum decomposes entrywise into the rank-one product ψ(j)ψ(l) plus a diagonal correction term supported only at r and 1-r. Choosing w to vanish at r and 1-r and equal √(p*(1-p)) everywhere else complements this correction to form the full identity diagonal √(p*(1-p)) * I, perfectly matching the critical environment matrix.
In ℤ/(n+2)ℤ, both 2 and 1 - e(r) are nonzero.
Under the ring equivalence e between Fin(n+2) and ℤ/(n+2)ℤ, if 2 were zero in ℤ/(n+2)ℤ, then n+2 would divide 2, which contradicts 0 < 2 < n+2 since n+2 ≥ 5. Furthermore, e(2) = e(1+1) = 2. If 1 - e(r) = 0, then e(r) = e(1), which by injectivity of e implies r = 1, contradicting r ≠ 1.
uses
ZMod.natCast_eq_zero_iff,Nat.not_dvd_of_pos_of_lt,map_add,map_one,one_add_one_eq_two,sub_eq_zero.mpletI : Fact (Nat.Prime (n+2)) := ⟨hp⟩ let e := ZMod.finEquiv (n+2) have hz2 : (2 : ZMod (n+2)) ≠ 0 := by intro h have hdvd : n+2 ∣ 2 := (ZMod.natCast_eq_zero_iff 2 (n+2)).mp h have hlt : 0 < 2 ∧ 2 < n+2 := by omega exact (Nat.not_dvd_of_pos_of_lt hlt.1 hlt.2) hdvd have he2 : e 2 = (2 : ZMod (n+2)) := by calc e 2 = e (1 + 1) := by congr 1 <;> norm_num _ = e 1 + e 1 := map_add e 1 1 _ = 2 := by simp only [map_one]; exact one_add_one_eq_two have he1 : e (1-r) = 1 - e r := by simp [e] have hfr : 1-e r ≠ 0 := by intro h have heq : e r = e 1 := by simpa using (sub_eq_zero.mp h).symm exact hr1 (e.injective heq)
In Fin(n+2), 2 ≠ 0 and 2*(1-r) ≠ 0.
Applying the ring equivalence e to 2 = 0 gives 2 = 0 in ℤ/(n+2)ℤ, contradicting the previous step. Similarly, applying e to 2*(1-r) = 0 yields 2*(1 - e(r)) = 0 in ℤ/(n+2)ℤ. Because n+2 is prime, ℤ/(n+2)ℤ is an integral domain with no zero divisors, so the product of the nonzero elements 2 and 1 - e(r) cannot be zero.
uses
congrArg,mul_ne_zeroconstructor · intro h have := congrArg e h simp [he2] at this exact hz2 this · intro h have hz : (2 : ZMod (n+2)) * (1-e r) = 0 := by have := congrArg e h simpa [he2,he1] using this exact (mul_ne_zero hz2 hfr) hz
Construct candidate functions a, b and diagonal weight vector w.
We set A = p^(1/4), B = (1-p)^(1/4), and q = √(p*(1-p)). We define a = in1249_A(n, A, B), b = in1249_B(n, r, A, B), and choose diagonal weights w(j) = 0 when j = r or j = 1-r, and w(j) = q otherwise, providing them as witnesses for the existential claim.
classical let A := Real.sqrt (Real.sqrt p) let B := Real.sqrt (Real.sqrt (1-p)) let q := Real.sqrt (p*(1-p)) let a := in1249_A n A B let b := in1249_B n r A B let w : Fin (n+2) → ℝ := fun j => if j=r ∨ j=1-r then 0 else q refine ⟨a,b,w, ?_, ?_⟩
The diagonal weights w are nonnegative everywhere. automation
For each index j, w(j) is either 0 or q = √(p*(1-p)). Since 0 ≤ p ≤ 1, both cases are nonnegative.
· intro j dsimp [w, q] split_ifs <;> positivity
The algebraic relations A² = √p, B² = √(1-p), A²B² = q hold, and 2 ≠ 0, 2*(1-r) ≠ 0 in Fin(n+2).
Squaring A and B clears the outer square roots since √p and √(1-p) are nonnegative. Their product satisfies A²B² = √p * √(1-p) = √(p*(1-p)) = q. The non-vanishing conditions 2 ≠ 0 and 2*(1-r) ≠ 0 follow from in1249_prime_fin_nonzero.
uses
Real.sq_sqrt,Real.sqrt_nonneg,Real.sqrt_mul,in1249_prime_fin_nonzero· have hp1' : 0 ≤ 1-p := by linarith have ha : A^2 = Real.sqrt p := Real.sq_sqrt (Real.sqrt_nonneg p) have hb : B^2 = Real.sqrt (1-p) := Real.sq_sqrt (Real.sqrt_nonneg (1-p)) have hq : A^2*B^2 = q := by rw [ha,hb] dsimp [q] rw [Real.sqrt_mul hp0] obtain ⟨htwo,hdouble⟩ := in1249_prime_fin_nonzero n hp h5 r hr1
For every index j, in1249_P(n, A, B, j) equals two_level_psi(n+2, p, j).
We verify that the index equality (j : ℕ) = 0 is equivalent to j = 0 in Fin(n+2), and similarly for (j : ℕ) = 1. Evaluating in1249_P and two_level_psi at j = 0 gives A² = √p, at j = 1 gives B² = √(1-p), and gives 0 for all other indices, so the two functions coincide.
uses
Fin.exthave hpsi (j : Fin (n+2)) : in1249_P n A B j = two_level_psi (n+2) p j := by have h0 : ((j : ℕ) = 0) ↔ j=0 := by constructor · intro h; apply Fin.ext; simpa using h · intro h; subst j; rfl have h1 : ((j : ℕ) = 1) ↔ j=1 := by constructor · intro h; apply Fin.ext; simpa using h · intro h; subst j; simp simp [in1249_P, two_level_psi, h0,h1,ha,hb]
Entry (j, l) of the orbit convolution sum evaluates to ψ(j)ψ(l) + q * [j = l ∧ (j = r ∨ j = 1-r)].
Expanding entry (j, l) of the matrix sum, we apply the two-support orbit summation formula prime_convolution_two_support_orbit_formula. Substituting in1249_P = ψ and A²B² = q simplifies the convolution sum to the rank-one term ψ(j)ψ(l) plus q on the diagonal elements at r and 1-r.
uses
Matrix.add_apply,Matrix.of_apply,Matrix.diagonal_apply,prime_convolution_two_support_orbit_formulaext j l rw [Matrix.add_apply, Matrix.of_apply, Matrix.diagonal_apply] have ho := prime_convolution_two_support_orbit_formula n r hr0 hr1 hr2 htwo hdouble A B j l change _ = ((∑ i, in1249_A n A B i * in1249_B n r A B (r*i+j) * in1249_A n A B (i+j-l) * in1249_B n r A B (r*(i+j-l)+l) : ℝ) : ℂ) + _ rw [ho, hpsi j, hpsi l, hq]
The critical environment matrix matches the sum of the orbit convolution and diagonal matrix entrywise. automation
By definition, entry (j, l) of the critical environment matrix is ψ(j)ψ(l) + q * [j = l]. When j ≠ l, both sides equal ψ(j)ψ(l). When j = l, if j ∈ {r, 1-r}, the orbit term provides q while w(j) = 0, giving ψ(j)² + q; if j ∉ {r, 1-r}, the orbit term provides 0 while w(j) = q, again giving ψ(j)² + q. Both sides match in all cases.
uses
Matrix.add_apply,Matrix.of_apply,Matrix.smul_apply,smul_eq_mul,Matrix.one_applysimp only [prime_convolution_critical_env, Matrix.add_apply, Matrix.of_apply, Matrix.smul_apply, smul_eq_mul, Matrix.one_apply] dsimp [w] by_cases hjl : j=l · subst l by_cases hj : j=r ∨ j=1-r · simp [hj, q] · simp [hj, q] · simp [hjl]
ZMod.natCast_eq_zero_iff- For natural numbers a and b, the image of a in ℤ/bℤ is zero if and only if b divides a.
Nat.not_dvd_of_pos_of_lt- If 0 < n < m, then m does not divide n.
map_add- A homomorphism preserves addition: f(x + y) = f(x) + f(y).
map_one- A homomorphism with one preserves 1: f(1) = 1.
one_add_one_eq_two- In any additive monoid with one, 1 + 1 = 2.
sub_eq_zero.mp- If a - b = 0, then a = b.
congrArg- Applying a function to equal values yields equal results: if x = y then f(x) = f(y).
mul_ne_zero- In a ring without zero divisors, the product of two nonzero elements is nonzero.
Real.sqrt_nonneg- For any real number x, its square root is nonnegative: √x ≥ 0.
Real.sq_sqrt- For any nonnegative real number x, (√x)² = x.
Real.sqrt_mul- For x ≥ 0, √(x * y) = √x * √y.
in1249_prime_fin_nonzero- In Fin(n+2) with prime n+2 ≥ 5 and r ≠ 1, both 2 ≠ 0 and 2*(1-r) ≠ 0.
Fin.ext- Two elements of Fin(n) are equal if and only if their underlying natural values are equal.
Matrix.add_apply- The (i, j)-th entry of a sum of matrices is the sum of their (i, j)-th entries.
Matrix.of_apply- The (i, j)-th entry of a matrix defined by a function f is f(i, j).
Matrix.diagonal_apply- The (i, j)-th entry of a diagonal matrix is d(i) if i = j and 0 otherwise.
prime_convolution_two_support_orbit_formula- The two-support orbit convolution sum equals P(j)P(l) plus A²B² when j = l and j ∈ {r, 1-r}.
Matrix.smul_apply- The (i, j)-th entry of a scalar multiple r • A is r • A(i, j).
smul_eq_mul- Scalar multiplication agrees with ring multiplication: a • b = a * b.
Matrix.one_apply- The (i, j)-th entry of the identity matrix is 1 if i = j and 0 otherwise.
- Step 1 uses the helper lemma in1249_prime_fin_nonzero established in lines 8-33 of the source, which verifies the non-degeneracy conditions needed for the orbit summation formula.
- Step 8 relies on case analysis on whether indices match, with simplification handling the arithmetic and boolean conditions.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
open Fin.CommRingset_option maxRecDepth 4096set_option maxHeartbeats 1000000theorem in1249_prime_fin_nonzero (n : ℕ) (hp : (n+2).Prime) (h5 : 5 ≤ n+2) (r : Fin (n+2)) (hr1 : r ≠ 1) : (2 : Fin (n+2)) ≠ 0 ∧ 2*(1-r) ≠ 0 := by letI : Fact (Nat.Prime (n+2)) := ⟨hp⟩ let e := ZMod.finEquiv (n+2) have hz2 : (2 : ZMod (n+2)) ≠ 0 := by intro h have hdvd : n+2 ∣ 2 := (ZMod.natCast_eq_zero_iff 2 (n+2)).mp h have hlt : 0 < 2 ∧ 2 < n+2 := by omega exact (Nat.not_dvd_of_pos_of_lt hlt.1 hlt.2) hdvd have he2 : e 2 = (2 : ZMod (n+2)) := by calc e 2 = e (1 + 1) := by congr 1 <;> norm_num _ = e 1 + e 1 := map_add e 1 1 _ = 2 := by simp only [map_one]; exact one_add_one_eq_two have he1 : e (1-r) = 1 - e r := by simp [e] have hfr : 1-e r ≠ 0 := by intro h have heq : e r = e 1 := by simpa using (sub_eq_zero.mp h).symm exact hr1 (e.injective heq) constructor · intro h have := congrArg e h simp [he2] at this exact hz2 this · intro h have hz : (2 : ZMod (n+2)) * (1-e r) = 0 := by have := congrArg e h simpa [he2,he1] using this exact (mul_ne_zero hz2 hfr) hzopen Fin.CommRingopen Fin.CommRing intheorem prime_convolution_critical_env_orbit_decomposition (n : ℕ) (hp : (n+2).Prime) (h5 : 5 ≤ n+2) (r : Fin (n+2)) (hr0 : r ≠ 0) (hr1 : r ≠ 1) (hr2 : 2*r ≠ 1) (p : ℝ) (hp0 : 0 ≤ p) (hp1 : p ≤ 1) : ∃ (a b w : Fin (n+2) → ℝ), (∀ j, 0 ≤ w j) ∧ prime_convolution_critical_env (n+2) p = (Matrix.of fun j l => ((∑ i, a i * b (r*i+j) * a (i+j-l) * b (r*(i+j-l)+l) : ℝ) : ℂ)) + Matrix.diagonal (fun j => (w j : ℂ)) := by classical let A := Real.sqrt (Real.sqrt p) let B := Real.sqrt (Real.sqrt (1-p)) let q := Real.sqrt (p*(1-p)) let a := in1249_A n A B let b := in1249_B n r A B let w : Fin (n+2) → ℝ := fun j => if j=r ∨ j=1-r then 0 else q refine ⟨a,b,w, ?_, ?_⟩ · intro j dsimp [w, q] split_ifs <;> positivity · have hp1' : 0 ≤ 1-p := by linarith have ha : A^2 = Real.sqrt p := Real.sq_sqrt (Real.sqrt_nonneg p) have hb : B^2 = Real.sqrt (1-p) := Real.sq_sqrt (Real.sqrt_nonneg (1-p)) have hq : A^2*B^2 = q := by rw [ha,hb] dsimp [q] rw [Real.sqrt_mul hp0] obtain ⟨htwo,hdouble⟩ := in1249_prime_fin_nonzero n hp h5 r hr1 have hpsi (j : Fin (n+2)) : in1249_P n A B j = two_level_psi (n+2) p j := by have h0 : ((j : ℕ) = 0) ↔ j=0 := by constructor · intro h; apply Fin.ext; simpa using h · intro h; subst j; rfl have h1 : ((j : ℕ) = 1) ↔ j=1 := by constructor · intro h; apply Fin.ext; simpa using h · intro h; subst j; simp simp [in1249_P, two_level_psi, h0,h1,ha,hb] ext j l rw [Matrix.add_apply, Matrix.of_apply, Matrix.diagonal_apply] have ho := prime_convolution_two_support_orbit_formula n r hr0 hr1 hr2 htwo hdouble A B j l change _ = ((∑ i, in1249_A n A B i * in1249_B n r A B (r*i+j) * in1249_A n A B (i+j-l) * in1249_B n r A B (r*(i+j-l)+l) : ℝ) : ℂ) + _ rw [ho, hpsi j, hpsi l, hq] simp only [prime_convolution_critical_env, Matrix.add_apply, Matrix.of_apply, Matrix.smul_apply, smul_eq_mul, Matrix.one_apply] dsimp [w] by_cases hjl : j=l · subst l by_cases hj : j=r ∨ j=1-r · simp [hj, q] · simp [hj, q] · simp [hjl]