Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import Euler.EulerProof |
| 2 | |
| 3 | /-! Actual cylinder Sobolev multiplication at every fixed integer order q ≥ 6. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerGeneralCylinderAlgebra |
| 8 | |
| 9 | open MeasureTheory EulerSobolev EulerCylinderSobolev EulerCylinderCoordinates |
| 10 | EulerLiftedGradientSpace EulerMetricTransport EulerTransportDerivatives |
| 11 | open scoped ENNReal NNReal ContDiff Topology |
| 12 | |
| 13 | variable (period : ℝ) [Fact (0 < period)] |
| 14 | |
| 15 | /-- An explicit low-derivative tensor embedding constant for fixed Sobolev order q. -/ |
| 16 | def lowDerivativeConstant (q : ℕ) : ℝ := (4 : ℝ) ^ q * 85 * cylinderEmbeddingConstant period |
| 17 | |
| 18 | /-- The low-derivative embedding constant is nonnegative. -/ |
| 19 | theorem lowDerivativeConstant_nonneg (q : ℕ) : 0 ≤ lowDerivativeConstant period q := |
| 20 | mul_nonneg (mul_nonneg (pow_nonneg (by norm_num) _) (by norm_num)) (cylinderEmbeddingConstant_nonneg period) |
| 21 | |
| 22 | /-- Three additional derivatives control the H³ norm of an arbitrary derivative word. -/ |
| 23 | theorem word_H3_le_Hq {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 24 | {q m : ℕ} (hm : m + 3 ≤ q) (w : Fin m → Fin 4) (f : LiftDomain period → F) : |
| 25 | liftSobolevNorm period 3 (iteratedFieldDerivative period w f) ≤ 85 * liftSobolevNorm period q f := by |
| 26 | have hA : (∑ n ∈ Finset.range (3 + 1), ∑ v : Fin n → Fin 4, |
| 27 | (eLpNorm (iteratedFieldDerivative period v (iteratedFieldDerivative period w f)) 2 |
| 28 | (liftMeasure period)).toReal) ≤ |
| 29 | ∑ n ∈ Finset.range (3 + 1), ∑ _v : Fin n → Fin 4, liftSobolevNorm period q f := by |
| 30 | apply Finset.sum_le_sum |
| 31 | intro n hn |
| 32 | apply Finset.sum_le_sum |
| 33 | intro v _ |
| 34 | obtain ⟨u, hu⟩ := iteratedFieldDerivative_comp_exists period v w f |
| 35 | rw [hu] |
| 36 | exact word_L2_le_liftSobolevNorm period (by have := Finset.mem_range.1 hn; omega) u f |
| 37 | apply hA.trans_eq |
| 38 | simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fun, Fintype.card_fin, nsmul_eq_mul] |
| 39 | norm_num [Finset.sum_range_succ] |
| 40 | ring |
| 41 | |
| 42 | /-- Actual derivative words with three derivatives to spare are uniformly bounded pointwise. -/ |
| 43 | theorem word_pointwise_le_Hq {q m : ℕ} (hm : m + 3 ≤ q) (w : Fin m → Fin 4) |
| 44 | (f : LiftDomain period → ℂ) (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 45 | (hfL2 : ∀ j ≤ q, ∀ u : Fin j → Fin 4, |
| 46 | MemLp (iteratedFieldDerivative period u f) 2 (liftMeasure period)) (x : LiftDomain period) : |
| 47 | ‖iteratedFieldDerivative period w f x‖ ≤ |
| 48 | cylinderEmbeddingConstant period * (85 * liftSobolevNorm period q f) := by |
| 49 | have hA := cylinder_pointwise_le_H3 period (iteratedFieldDerivative period w f) |
| 50 | (iteratedFieldDerivative_smooth period w f hf) |
| 51 | (fun j hj v => word_memLp period (by omega : m + j ≤ q) v w f hfL2) x |
| 52 | exact hA.trans (mul_le_mul_of_nonneg_left (word_H3_le_Hq period hm w f) |
| 53 | (cylinderEmbeddingConstant_nonneg period)) |
| 54 | |
| 55 | /-- The actual low-order Fréchet tensor is bounded by the fixed-order cylinder Sobolev norm. -/ |
| 56 | theorem tensor_low_le_Hq {q m : ℕ} (hm : m + 3 ≤ q) (f : LiftDomain period → ℂ) |
| 57 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 58 | (hfL2 : ∀ j ≤ q, ∀ w : Fin j → Fin 4, |
| 59 | MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) (x : LiftDomain period) : |
| 60 | ‖iteratedFDeriv ℝ m (euclideanLift period f x) 0‖ ≤ |
| 61 | lowDerivativeConstant period q * liftSobolevNorm period q f := by |
| 62 | have hA := euclideanLift_tensor_norm_le period m f hf x 0 |
| 63 | simp only [euclideanLift_zero] at hA |
| 64 | have hB := Finset.sum_le_sum (fun w (_ : w ∈ (Finset.univ : Finset (Fin m → Fin 4))) => |
| 65 | word_pointwise_le_Hq period hm w f hf hfL2 x) |
| 66 | simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fun, Fintype.card_fin, |
| 67 | nsmul_eq_mul, Nat.cast_pow, Nat.cast_ofNat] at hB |
| 68 | have hp : (4 : ℝ) ^ m ≤ 4 ^ q := pow_le_pow_right₀ (by norm_num) (by omega) |
| 69 | have hC := mul_le_mul_of_nonneg_right hp (mul_nonneg |
| 70 | (cylinderEmbeddingConstant_nonneg period) |
| 71 | (mul_nonneg (by norm_num : (0 : ℝ) ≤ 85) (liftSobolevNorm_nonneg period q f))) |
| 72 | exact hA.trans (hB.trans (hC.trans_eq (by unfold lowDerivativeConstant; ring))) |
| 73 | |
| 74 | omit [Fact (0 < period)] in |
| 75 | /-- Every tensor through the fixed Sobolev order is dominated by the actual derivative envelope. -/ |
| 76 | theorem tensor_le_totalMagnitude {q n : ℕ} (hn : n ≤ q) (f : LiftDomain period → ℂ) |
| 77 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) (x : LiftDomain period) : |
| 78 | ‖iteratedFDeriv ℝ n (euclideanLift period f x) 0‖ ≤ totalMagnitude period q f x := by |
| 79 | have hA := euclideanLift_tensor_norm_le period n f hf x 0 |
| 80 | simp only [euclideanLift_zero] at hA |
| 81 | exact hA.trans (wordMagnitude_le_total period q n hn f x) |
| 82 | |
| 83 | /-- The square-integrable envelope obtained by putting one factor in L∞ and the other in L². -/ |
| 84 | def productEnvelope (q : ℕ) (f g : LiftDomain period → ℂ) : LiftDomain period → ℝ := |
| 85 | liftSobolevNorm period q f • totalMagnitude period q g + |
| 86 | liftSobolevNorm period q g • totalMagnitude period q f |
| 87 | |
| 88 | /-- The product envelope is pointwise nonnegative. -/ |
| 89 | theorem productEnvelope_nonneg (q : ℕ) (f g : LiftDomain period → ℂ) (x : LiftDomain period) : |
| 90 | 0 ≤ productEnvelope period q f g x := |
| 91 | add_nonneg (mul_nonneg (liftSobolevNorm_nonneg period q f) (totalMagnitude_nonneg period q g x)) |
| 92 | (mul_nonneg (liftSobolevNorm_nonneg period q g) (totalMagnitude_nonneg period q f x)) |
| 93 | |
| 94 | /-- In every Leibniz term through order q≥6, one factor has three spare derivatives. -/ |
| 95 | theorem product_tensor_term_le {q n j : ℕ} (hq : 6 ≤ q) (hn : n ≤ q) (hj : j ≤ n) |
| 96 | (f g : LiftDomain period → ℂ) |
| 97 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 98 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 99 | (hfL2 : ∀ k ≤ q, ∀ w : Fin k → Fin 4, MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) |
| 100 | (hgL2 : ∀ k ≤ q, ∀ w : Fin k → Fin 4, MemLp (iteratedFieldDerivative period w g) 2 (liftMeasure period)) |
| 101 | (x : LiftDomain period) : |
| 102 | ‖iteratedFDeriv ℝ j (euclideanLift period f x) 0‖ * |
| 103 | ‖iteratedFDeriv ℝ (n - j) (euclideanLift period g x) 0‖ ≤ |
| 104 | lowDerivativeConstant period q * productEnvelope period q f g x := by |
| 105 | by_cases hjlow : j + 3 ≤ q |
| 106 | · have hA := mul_le_mul (tensor_low_le_Hq period hjlow f hf hfL2 x) |
| 107 | (tensor_le_totalMagnitude period (by omega : n - j ≤ q) g hg x) (norm_nonneg _) |
| 108 | (mul_nonneg (lowDerivativeConstant_nonneg period q) (liftSobolevNorm_nonneg period q f)) |
| 109 | have hB : liftSobolevNorm period q f * totalMagnitude period q g x ≤ productEnvelope period q f g x := |
| 110 | le_add_of_nonneg_right (mul_nonneg (liftSobolevNorm_nonneg period q g) (totalMagnitude_nonneg period q f x)) |
| 111 | rw [mul_assoc] at hA |
| 112 | exact hA.trans (mul_le_mul_of_nonneg_left hB (lowDerivativeConstant_nonneg period q)) |
| 113 | · have hA := mul_le_mul (tensor_le_totalMagnitude period (by omega : j ≤ q) f hf x) |
| 114 | (tensor_low_le_Hq period (by omega : n - j + 3 ≤ q) g hg hgL2 x) (norm_nonneg _) |
| 115 | (totalMagnitude_nonneg period q f x) |
| 116 | have hB : liftSobolevNorm period q g * totalMagnitude period q f x ≤ productEnvelope period q f g x := |
| 117 | le_add_of_nonneg_left (mul_nonneg (liftSobolevNorm_nonneg period q f) (totalMagnitude_nonneg period q g x)) |
| 118 | have hC := mul_le_mul_of_nonneg_left hB (lowDerivativeConstant_nonneg period q) |
| 119 | exact hA.trans ((by ring : _ = lowDerivativeConstant period q * |
| 120 | (liftSobolevNorm period q g * totalMagnitude period q f x)).trans_le hC) |
| 121 | |
| 122 | /-- Every actual product derivative is bounded pointwise by the low/high Sobolev envelope. -/ |
| 123 | theorem product_word_pointwise_le {q n : ℕ} (hq : 6 ≤ q) (hn : n ≤ q) (w : Fin n → Fin 4) |
| 124 | (f g : LiftDomain period → ℂ) |
| 125 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 126 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 127 | (hfL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) |
| 128 | (hgL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v g) 2 (liftMeasure period)) |
| 129 | (x : LiftDomain period) : |
| 130 | ‖iteratedFieldDerivative period w (f * g) x‖ ≤ |
| 131 | (2 : ℝ) ^ q * lowDerivativeConstant period q * productEnvelope period q f g x := by |
| 132 | have he := euclideanLift_iteratedFieldDerivative period w (f * g) |
| 133 | (EulerCylinderAlgebra.product_smooth period f g hf hg) x 0 |
| 134 | rw [euclideanLift_zero] at he |
| 135 | rw [he] |
| 136 | have hA := (iteratedFDeriv ℝ n (euclideanLift period (f * g) x) 0).le_opNorm |
| 137 | (fun j => EuclideanSpace.single (w j) (1 : ℝ)) |
| 138 | simp only [PiLp.norm_single, norm_one, Finset.prod_const_one, mul_one] at hA |
| 139 | have hB := norm_iteratedFDeriv_mul_le (euclideanLift_smooth period f hf x) |
| 140 | (euclideanLift_smooth period g hg x) 0 (by simp : (n : ℕ∞ω) ≤ (∞ : ℕ∞ω)) |
| 141 | have hC : (∑ j ∈ Finset.range (n + 1), (n.choose j : ℝ) * |
| 142 | ‖iteratedFDeriv ℝ j (euclideanLift period f x) 0‖ * |
| 143 | ‖iteratedFDeriv ℝ (n - j) (euclideanLift period g x) 0‖) ≤ |
| 144 | 2 ^ n * (lowDerivativeConstant period q * productEnvelope period q f g x) := by |
| 145 | calc |
| 146 | _ ≤ ∑ j ∈ Finset.range (n + 1), (n.choose j : ℝ) * |
| 147 | (lowDerivativeConstant period q * productEnvelope period q f g x) := by |
| 148 | apply Finset.sum_le_sum |
| 149 | intro j hj |
| 150 | rw [mul_assoc] |
| 151 | exact mul_le_mul_of_nonneg_left (product_tensor_term_le period hq hn |
| 152 | (by simpa using Finset.mem_range.1 hj) f g hf hg hfL2 hgL2 x) (Nat.cast_nonneg _) |
| 153 | _ = _ := by |
| 154 | rw [← Finset.sum_mul] |
| 155 | congr 1 |
| 156 | exact_mod_cast Nat.sum_range_choose n |
| 157 | have hp : (2 : ℝ) ^ n ≤ 2 ^ q := pow_le_pow_right₀ (by norm_num) hn |
| 158 | have hD := mul_le_mul_of_nonneg_right hp (mul_nonneg |
| 159 | (lowDerivativeConstant_nonneg period q) (productEnvelope_nonneg period q f g x)) |
| 160 | exact hA.trans (hB.trans (hC.trans (hD.trans_eq (mul_assoc _ _ _).symm))) |
| 161 | |
| 162 | /-- The actual low/high envelope is square-integrable. -/ |
| 163 | theorem productEnvelope_memLp (q : ℕ) (f g : LiftDomain period → ℂ) |
| 164 | (hfL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) |
| 165 | (hgL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v g) 2 (liftMeasure period)) : |
| 166 | MemLp (productEnvelope period q f g) 2 (liftMeasure period) := |
| 167 | ((totalMagnitude_memLp period q g hgL2).const_smul (liftSobolevNorm period q f)).add |
| 168 | ((totalMagnitude_memLp period q f hfL2).const_smul (liftSobolevNorm period q g)) |
| 169 | |
| 170 | /-- The L² norm of the low/high envelope is bounded by twice the product of Sobolev norms. -/ |
| 171 | theorem productEnvelope_L2_le (q : ℕ) (f g : LiftDomain period → ℂ) |
| 172 | (hfL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) |
| 173 | (hgL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v g) 2 (liftMeasure period)) : |
| 174 | ‖(productEnvelope_memLp period q f g hfL2 hgL2).toLp (productEnvelope period q f g)‖ ≤ |
| 175 | 2 * liftSobolevNorm period q f * liftSobolevNorm period q g := by |
| 176 | change ‖liftSobolevNorm period q f • (totalMagnitude_memLp period q g hgL2).toLp _ + |
| 177 | liftSobolevNorm period q g • (totalMagnitude_memLp period q f hfL2).toLp _‖ ≤ _ |
| 178 | have hA := norm_add_le |
| 179 | (liftSobolevNorm period q f • (totalMagnitude_memLp period q g hgL2).toLp (totalMagnitude period q g)) |
| 180 | (liftSobolevNorm period q g • (totalMagnitude_memLp period q f hfL2).toLp (totalMagnitude period q f)) |
| 181 | simp only [norm_smul, Real.norm_of_nonneg (liftSobolevNorm_nonneg period q f), |
| 182 | Real.norm_of_nonneg (liftSobolevNorm_nonneg period q g)] at hA |
| 183 | have hB := add_le_add |
| 184 | (mul_le_mul_of_nonneg_left (totalMagnitude_L2_le period q g hgL2) (liftSobolevNorm_nonneg period q f)) |
| 185 | (mul_le_mul_of_nonneg_left (totalMagnitude_L2_le period q f hfL2) (liftSobolevNorm_nonneg period q g)) |
| 186 | exact hA.trans (hB.trans_eq (by ring)) |
| 187 | |
| 188 | /-- Every derivative word through order q of the actual product belongs to L². -/ |
| 189 | theorem product_word_memLp {q n : ℕ} (hq : 6 ≤ q) (hn : n ≤ q) (w : Fin n → Fin 4) |
| 190 | (f g : LiftDomain period → ℂ) |
| 191 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 192 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 193 | (hfL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) |
| 194 | (hgL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v g) 2 (liftMeasure period)) : |
| 195 | MemLp (iteratedFieldDerivative period w (f * g)) 2 (liftMeasure period) := by |
| 196 | apply (productEnvelope_memLp period q f g hfL2 hgL2).of_le_mul |
| 197 | ((smoothField_continuous period _ (iteratedFieldDerivative_smooth period w (f * g) |
| 198 | (EulerCylinderAlgebra.product_smooth period f g hf hg))).aestronglyMeasurable) |
| 199 | filter_upwards [] with x |
| 200 | rw [Real.norm_of_nonneg (productEnvelope_nonneg period q f g x)] |
| 201 | exact product_word_pointwise_le period hq hn w f g hf hg hfL2 hgL2 x |
| 202 | |
| 203 | /-- Every product derivative has an explicit L² bound by the product of fixed-order Sobolev norms. -/ |
| 204 | theorem product_word_L2_le {q n : ℕ} (hq : 6 ≤ q) (hn : n ≤ q) (w : Fin n → Fin 4) |
| 205 | (f g : LiftDomain period → ℂ) |
| 206 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 207 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 208 | (hfL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) |
| 209 | (hgL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v g) 2 (liftMeasure period)) : |
| 210 | (eLpNorm (iteratedFieldDerivative period w (f * g)) 2 (liftMeasure period)).toReal ≤ |
| 211 | ((2 : ℝ) ^ q * lowDerivativeConstant period q * 2) * |
| 212 | liftSobolevNorm period q f * liftSobolevNorm period q g := by |
| 213 | have henv := productEnvelope_memLp period q f g hfL2 hgL2 |
| 214 | have hA := eLpNorm_le_mul_eLpNorm_of_ae_le_mul (μ := liftMeasure period) |
| 215 | (Filter.Eventually.of_forall (fun x => show ‖iteratedFieldDerivative period w (f * g) x‖ ≤ |
| 216 | ((2 : ℝ) ^ q * lowDerivativeConstant period q) * ‖productEnvelope period q f g x‖ by |
| 217 | rw [Real.norm_of_nonneg (productEnvelope_nonneg period q f g x)] |
| 218 | exact product_word_pointwise_le period hq hn w f g hf hg hfL2 hgL2 x)) (2 : ℝ≥0∞) |
| 219 | have hc : 0 ≤ (2 : ℝ) ^ q * lowDerivativeConstant period q := |
| 220 | mul_nonneg (pow_nonneg (by norm_num) _) (lowDerivativeConstant_nonneg period q) |
| 221 | have hfin : ENNReal.ofReal ((2 : ℝ) ^ q * lowDerivativeConstant period q) * |
| 222 | eLpNorm (productEnvelope period q f g) 2 (liftMeasure period) ≠ ⊤ := by finiteness |
| 223 | have hB := ENNReal.toReal_mono hfin hA |
| 224 | simp only [ENNReal.toReal_mul, ENNReal.toReal_ofReal hc] at hB |
| 225 | have hC := mul_le_mul_of_nonneg_left (productEnvelope_L2_le period q f g hfL2 hgL2) hc |
| 226 | rw [Lp.norm_toLp] at hC |
| 227 | exact hB.trans (hC.trans_eq (by ring)) |
| 228 | |
| 229 | /-- A finite explicit algebra constant for each fixed Sobolev order. -/ |
| 230 | def algebraConstant (q : ℕ) : ℝ := |
| 231 | (∑ n ∈ Finset.range (q + 1), (4 : ℝ) ^ n) * ((2 : ℝ) ^ q * lowDerivativeConstant period q * 2) |
| 232 | |
| 233 | /-- The fixed-order algebra constant is nonnegative. -/ |
| 234 | theorem algebraConstant_nonneg (q : ℕ) : 0 ≤ algebraConstant period q := by |
| 235 | unfold algebraConstant |
| 236 | exact mul_nonneg (Finset.sum_nonneg fun _ _ => pow_nonneg (by norm_num) _) |
| 237 | (mul_nonneg (mul_nonneg (pow_nonneg (by norm_num) _) (lowDerivativeConstant_nonneg period q)) (by norm_num)) |
| 238 | |
| 239 | /-- The genuine complex cylinder Sobolev algebra estimate at every integer order q≥6. -/ |
| 240 | theorem cylinder_Hq_algebra {q : ℕ} (hq : 6 ≤ q) (f g : LiftDomain period → ℂ) |
| 241 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 242 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 243 | (hfL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) |
| 244 | (hgL2 : ∀ k ≤ q, ∀ v : Fin k → Fin 4, MemLp (iteratedFieldDerivative period v g) 2 (liftMeasure period)) : |
| 245 | liftSobolevNorm period q (f * g) ≤ |
| 246 | algebraConstant period q * liftSobolevNorm period q f * liftSobolevNorm period q g := by |
| 247 | have hA : liftSobolevNorm period q (f * g) ≤ |
| 248 | ∑ n ∈ Finset.range (q + 1), ∑ _w : Fin n → Fin 4, |
| 249 | ((2 : ℝ) ^ q * lowDerivativeConstant period q * 2) * |
| 250 | liftSobolevNorm period q f * liftSobolevNorm period q g := by |
| 251 | apply Finset.sum_le_sum |
| 252 | intro n hn |
| 253 | apply Finset.sum_le_sum |
| 254 | intro w _ |
| 255 | exact product_word_L2_le period hq (by have := Finset.mem_range.1 hn; omega) w f g hf hg hfL2 hgL2 |
| 256 | apply hA.trans_eq |
| 257 | simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fun, Fintype.card_fin, |
| 258 | nsmul_eq_mul, Nat.cast_pow, Nat.cast_ofNat] |
| 259 | rw [← Finset.sum_mul] |
| 260 | unfold algebraConstant |
| 261 | ring |
| 262 | |
| 263 | end EulerGeneralCylinderAlgebra |