Lean / 0xOsprey/shub-smale-tau9 / FoldingRecords.lean
Lean reader

Research/PvsNP/Tau/FoldingRecords.lean

351 lines33 declarationsno sorry
  1. module
  2. public import Research.PvsNP.Tau.BoundedMult
  3. @[expose] public section
  4. namespace Research.PvsNP.Tau
  5. /-!
  6. # Iterated Folding Records (`τ = 16, 17, 18`) and Exact `m = 4` Multiplication Sharpness
  7. This module formalizes two frontier advances on Smale's 4th Problem (the Shub–Smale
  8. $\tau$-Conjecture):
  9. 1. **New High-$\tau$ Record Witnesses (`τ = 16, 17, 18`):**
  10. - `tau_record_16_twelve : zMaxGe 16 12`:
  11. `((q - 36)^2 - 36)((q - 36)^2 - 36^2)(q - 2)(q - 6)` where `q = X(1 + X)`,
  12. with `12` distinct integer roots `{-9, -7, -6, -3, -2, -1, 0, 1, 2, 5, 6, 8}`.
  13. - `tau_record_17_thirteen : zMaxGe 17 13`:
  14. Square-extraction extension `slpRecord13 * (X + 196) * (q - (X + 196))`,
  15. with `13` distinct integer roots `{-196, -14, -6, -5, -4, -2, -1, 0, 1, 3, 4, 5, 14}`.
  16. - `tau_record_18_fourteen : zMaxGe 18 14`:
  17. Pronic self-shift extension `slpRecord16 * ((q - 36) - 36^2)` using
  18. `a + a^2 = a(a + 1)`, with `14` distinct integer roots
  19. `{-37, -9, -7, -6, -3, -2, -1, 0, 1, 2, 5, 6, 8, 36}`.
  20. 2. **Exact Sharpness for `m = 4` Multiplications (`max_{mulCount ≤ 4} z(P) = 2^4 = 16`):**
  21. - `appendConst`, `appendSubConst`, `appendSubConstSq`: binary-doubling addition chains
  22. that synthesize arbitrary natural constants using **zero** multiplication gates.
  23. - `slpFourMulSixteen`: a constant-free SLP with **exact `mulCount = 4`** computing
  24. `(((X(X + 1) - 16851)^2 - 220362381)^2 - 2083869931842000)^2 - 1832844567153600^2`.
  25. - `tau_four_mul_sharp : zMaxMulGe 4 16` with `16` distinct integer roots
  26. `{-184, -180, -177, -172, -66, -51, -39, -6, 5, 38, 50, 65, 171, 176, 179, 183}`.
  27. - `tau_four_mul_intRootCount_le_sixteen` and `bounded_mult_exact_sharpness_four`,
  28. establishing that `max_{mulCount ≤ m} z(P) = 2^m` is exact and sharp for all
  29. `m ∈ {0, 1, 2, 3, 4}`.
  30. -/
  31. /-! ## 1. New High-$\tau$ Record Witness SLPs (`τ = 16, 17, 18`) -/
  32. /-- Length-16 shifted pronic-square record witness with DAG constant reuse:
  33. `((q - 36)^2 - 36) * ((q - 36)^2 - 36^2) * (q - 2) * (q - 6)` where `q = X * (1 + X)`,
  34. with `12` distinct integer roots `{-9, -7, -6, -3, -2, -1, 0, 1, 2, 5, 6, 8}`. -/
  35. def slpRecord16 : SLP 16 :=
  36. let p1 : SLP 1 := .snoc .nil .add ⟨0, by omega⟩ ⟨1, by omega⟩ -- w2 = 1 + X
  37. let p2 : SLP 2 := .snoc p1 .mul ⟨1, by omega⟩ ⟨2, by omega⟩ -- w3 = q = X * (1 + X)
  38. let p3 : SLP 3 := .snoc p2 .add ⟨0, by omega⟩ ⟨0, by omega⟩ -- w4 = 2
  39. let p4 : SLP 4 := .snoc p3 .add ⟨0, by omega⟩ ⟨4, by omega⟩ -- w5 = 3
  40. let p5 : SLP 5 := .snoc p4 .mul ⟨4, by omega⟩ ⟨5, by omega⟩ -- w6 = 6
  41. let p6 : SLP 6 := .snoc p5 .mul ⟨6, by omega⟩ ⟨6, by omega⟩ -- w7 = 36
  42. let p7 : SLP 7 := .snoc p6 .sub ⟨3, by omega⟩ ⟨7, by omega⟩ -- w8 = q - 36
  43. let p8 : SLP 8 := .snoc p7 .mul ⟨8, by omega⟩ ⟨8, by omega⟩ -- w9 = (q - 36)^2
  44. let p9 : SLP 9 := .snoc p8 .sub ⟨9, by omega⟩ ⟨7, by omega⟩ -- w10 = (q - 36)^2 - 36
  45. let p10 : SLP 10 := .snoc p9 .mul ⟨7, by omega⟩ ⟨7, by omega⟩ -- w11 = 36^2 = 1296
  46. let p11 : SLP 11 := .snoc p10 .sub ⟨9, by omega⟩ ⟨11, by omega⟩ -- w12 = (q - 36)^2 - 36^2
  47. let p12 : SLP 12 := .snoc p11 .mul ⟨10, by omega⟩ ⟨12, by omega⟩ -- w13 = w10 * w12
  48. let p13 : SLP 13 := .snoc p12 .sub ⟨3, by omega⟩ ⟨4, by omega⟩ -- w14 = q - 2
  49. let p14 : SLP 14 := .snoc p13 .mul ⟨13, by omega⟩ ⟨14, by omega⟩ -- w15 = w13 * (q - 2)
  50. let p15 : SLP 15 := .snoc p14 .sub ⟨3, by omega⟩ ⟨6, by omega⟩ -- w16 = q - 6
  51. .snoc p15 .mul ⟨15, by omega⟩ ⟨16, by omega⟩ -- w17 = w15 * (q - 6)
  52. /-- Length-17 square-extraction record witness extending `slpRecord13`:
  53. `slpRecord13 * (X + 196) * (q - (X + 196))`, with `13` distinct integer roots
  54. `{-196, -14, -6, -5, -4, -2, -1, 0, 1, 3, 4, 5, 14}`. -/
  55. def slpRecord17 : SLP 17 :=
  56. let p14 : SLP 14 := .snoc slpRecord13 .add ⟨1, by omega⟩ ⟨10, by omega⟩ -- w15 = X + 196
  57. let p15 : SLP 15 := .snoc p14 .mul ⟨14, by omega⟩ ⟨15, by omega⟩ -- w16 = w14 * (X + 196)
  58. let p16 : SLP 16 := .snoc p15 .sub ⟨3, by omega⟩ ⟨15, by omega⟩ -- w17 = q - (X + 196) = X^2 - 196
  59. .snoc p16 .mul ⟨16, by omega⟩ ⟨17, by omega⟩ -- w18 = w16 * w17
  60. /-- Length-18 pronic self-shift record witness extending `slpRecord16`:
  61. `slpRecord16 * ((q - 36) - 36^2)`, with `14` distinct integer roots
  62. `{-37, -9, -7, -6, -3, -2, -1, 0, 1, 2, 5, 6, 8, 36}`. -/
  63. def slpRecord18 : SLP 18 :=
  64. let p17 : SLP 17 := .snoc slpRecord16 .sub ⟨8, by omega⟩ ⟨11, by omega⟩ -- w18 = (q - 36) - 1296
  65. .snoc p17 .mul ⟨17, by omega⟩ ⟨18, by omega⟩ -- w19 = w17 * w18
  66. /-! ## 2. Machine-Verified High-$\tau$ Record Lower Bounds (`zMaxGe`) -/
  67. theorem tau_record_16_twelve : zMaxGe 16 12 :=
  68. zMaxGe_of_evalInt slpRecord16 {-9, -7, -6, -3, -2, -1, 0, 1, 2, 5, 6, 8} 3
  69. (by decide) (by decide) (by decide)
  70. theorem tau_record_17_thirteen : zMaxGe 17 13 :=
  71. zMaxGe_of_evalInt slpRecord17 {-196, -14, -6, -5, -4, -2, -1, 0, 1, 3, 4, 5, 14} 2
  72. (by decide) (by decide) (by decide)
  73. theorem tau_record_18_fourteen : zMaxGe 18 14 :=
  74. zMaxGe_of_evalInt slpRecord18 {-37, -9, -7, -6, -3, -2, -1, 0, 1, 2, 5, 6, 8, 36} 3
  75. (by decide) (by decide) (by decide)
  76. /-! ## 3. Zero-Multiplication Binary-Doubling Addition Chains -/
  77. /-- Wire `0` of every `SLP` evaluates to `1` under `evalWireInt`. -/
  78. theorem SLP.evalWireInt_zero :
  79. ∀ {τ : ℕ} (P : SLP τ) (a : ℤ), P.evalWireInt a 0 = 1
  80. | 0, .nil, _ => rfl
  81. | τ + 1, .snoc P _ _ _, a => by
  82. have h : (0 : ℕ) < τ + 2 := Nat.zero_lt_succ _
  83. simpa [SLP.evalWireInt, h] using P.evalWireInt_zero a
  84. /-- Append a binary-doubling addition chain to `P : SLP τ` whose output wire evaluates
  85. to the constant `(c : ℤ)` for all inputs, using **zero** multiplication gates. -/
  86. def appendConst {τ : ℕ} (P : SLP τ) : ℕ → (d : ℕ) × SLP (τ + d)
  87. | 0 => ⟨1, P.snoc .sub 0 0⟩
  88. | n + 1 =>
  89. let c := n + 1
  90. let ⟨d, Q⟩ := appendConst P (c / 2)
  91. let Q2 : SLP (τ + (d + 1)) :=
  92. Q.snoc .add ⟨τ + d + 1, by omega⟩ ⟨τ + d + 1, by omega⟩
  93. if c % 2 = 0 then
  94. ⟨d + 1, Q2⟩
  95. else
  96. ⟨d + 2, Q2.snoc .add ⟨τ + d + 2, by omega⟩ 0⟩
  97. private theorem appendConst_zero {τ : ℕ} (P : SLP τ) :
  98. appendConst P 0 = ⟨1, P.snoc .sub 0 0⟩ := by
  99. rw [appendConst]
  100. private theorem appendConst_succ_even {τ : ℕ} (P : SLP τ) (n : ℕ) (heven : (n + 1) % 2 = 0) :
  101. appendConst P (n + 1) =
  102. ⟨(appendConst P ((n + 1) / 2)).1 + 1,
  103. (appendConst P ((n + 1) / 2)).2.snoc .add
  104. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩
  105. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩⟩ := by
  106. rw [appendConst]
  107. simp only [heven, ↓reduceIte]
  108. private theorem appendConst_succ_odd {τ : ℕ} (P : SLP τ) (n : ℕ) (hodd : (n + 1) % 2 ≠ 0) :
  109. appendConst P (n + 1) =
  110. ⟨(appendConst P ((n + 1) / 2)).1 + 2,
  111. ((appendConst P ((n + 1) / 2)).2.snoc .add
  112. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩
  113. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩).snoc .add
  114. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 2, by omega⟩ 0⟩ := by
  115. rw [appendConst]
  116. simp only [hodd, ↓reduceIte]
  117. private theorem eq_sigma_mulCount {τ : ℕ} {r₁ r₂ : (d : ℕ) × SLP (τ + d)} (h : r₁ = r₂) :
  118. r₁.2.mulCount = r₂.2.mulCount := by
  119. subst h; rfl
  120. private theorem eq_sigma_evalWireInt {τ : ℕ} {r₁ r₂ : (d : ℕ) × SLP (τ + d)} (h : r₁ = r₂)
  121. (a : ℤ) (k : ℕ) (hk : k < τ + 2) :
  122. r₁.2.evalWireInt a ⟨k, by omega⟩ = r₂.2.evalWireInt a ⟨k, by omega⟩ := by
  123. subst h; rfl
  124. private theorem eq_sigma_evalInt {τ : ℕ} {r₁ r₂ : (d : ℕ) × SLP (τ + d)} (h : r₁ = r₂) (a : ℤ) :
  125. r₁.2.evalInt a = r₂.2.evalInt a := by
  126. subst h; rfl
  127. theorem appendConst_mulCount {τ : ℕ} (P : SLP τ) (c : ℕ) :
  128. (appendConst P c).2.mulCount = P.mulCount := by
  129. induction c using Nat.strongRecOn with
  130. | ind c ih =>
  131. match c with
  132. | 0 =>
  133. rw [eq_sigma_mulCount (appendConst_zero P)]
  134. simp [SLP.mulCount]
  135. | n + 1 =>
  136. have hm : (n + 1) / 2 < n + 1 := Nat.div_lt_self (Nat.succ_pos n) (by decide)
  137. have hih := ih ((n + 1) / 2) hm
  138. by_cases heven : (n + 1) % 2 = 0
  139. · rw [eq_sigma_mulCount (appendConst_succ_even P n heven)]
  140. simpa [SLP.mulCount] using hih
  141. · rw [eq_sigma_mulCount (appendConst_succ_odd P n heven)]
  142. simpa [SLP.mulCount] using hih
  143. theorem appendConst_evalWireInt_lt {τ : ℕ} (P : SLP τ) (c : ℕ) (a : ℤ)
  144. (k : ℕ) (hk : k < τ + 2) :
  145. (appendConst P c).2.evalWireInt a ⟨k, by omega⟩ = P.evalWireInt a ⟨k, hk⟩ := by
  146. induction c using Nat.strongRecOn with
  147. | ind c ih =>
  148. match c with
  149. | 0 =>
  150. rw [eq_sigma_evalWireInt (appendConst_zero P) a k hk]
  151. simp [SLP.evalWireInt, hk]
  152. | n + 1 =>
  153. have hm : (n + 1) / 2 < n + 1 := Nat.div_lt_self (Nat.succ_pos n) (by decide)
  154. have hih := ih ((n + 1) / 2) hm
  155. have hk1 : k < τ + (appendConst P ((n + 1) / 2)).1 + 2 := by omega
  156. have hk2 : k < τ + (appendConst P ((n + 1) / 2)).1 + 1 + 2 := by omega
  157. by_cases heven : (n + 1) % 2 = 0
  158. · rw [eq_sigma_evalWireInt (appendConst_succ_even P n heven) a k hk]
  159. simpa [SLP.evalWireInt, hk1] using hih
  160. · rw [eq_sigma_evalWireInt (appendConst_succ_odd P n heven) a k hk]
  161. simpa [SLP.evalWireInt, hk1, hk2] using hih
  162. theorem appendConst_evalInt {τ : ℕ} (P : SLP τ) (c : ℕ) (a : ℤ) :
  163. (appendConst P c).2.evalInt a = (c : ℤ) := by
  164. induction c using Nat.strongRecOn with
  165. | ind c ih =>
  166. match c with
  167. | 0 =>
  168. rw [eq_sigma_evalInt (appendConst_zero P) a]
  169. simp [SLP.evalInt, SLP.evalWireInt, SLPOp.applyInt, P.evalWireInt_zero a]
  170. | n + 1 =>
  171. have hm : (n + 1) / 2 < n + 1 := Nat.div_lt_self (Nat.succ_pos n) (by decide)
  172. have hih := ih ((n + 1) / 2) hm
  173. by_cases heven : (n + 1) % 2 = 0
  174. · rw [eq_sigma_evalInt (appendConst_succ_even P n heven) a]
  175. have heval :
  176. ((appendConst P ((n + 1) / 2)).2.snoc .add
  177. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩
  178. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩).evalInt a =
  179. (appendConst P ((n + 1) / 2)).2.evalInt a +
  180. (appendConst P ((n + 1) / 2)).2.evalInt a := by
  181. simp [SLP.evalInt, SLP.evalWireInt, SLPOp.applyInt]
  182. rw [heval, hih]
  183. omega
  184. · rw [eq_sigma_evalInt (appendConst_succ_odd P n heven) a]
  185. have hzero :=
  186. ((appendConst P ((n + 1) / 2)).2.snoc .add
  187. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩
  188. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩).evalWireInt_zero a
  189. have heval :
  190. (((appendConst P ((n + 1) / 2)).2.snoc .add
  191. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩
  192. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 1, by omega⟩).snoc .add
  193. ⟨τ + (appendConst P ((n + 1) / 2)).1 + 2, by omega⟩
  194. 0).evalInt a =
  195. (appendConst P ((n + 1) / 2)).2.evalInt a +
  196. (appendConst P ((n + 1) / 2)).2.evalInt a + 1 := by
  197. simp [SLP.evalInt, SLP.evalWireInt, SLPOp.applyInt, hzero]
  198. rw [heval, hih]
  199. omega
  200. /-- Append gates computing `P.evalPoly - (c : ℤ)` using **zero** extra multiplications. -/
  201. def appendSubConst {τ : ℕ} (P : SLP τ) (c : ℕ) : (d : ℕ) × SLP (τ + d) :=
  202. let ⟨d, Q⟩ := appendConst P c
  203. ⟨d + 1, Q.snoc .sub ⟨τ + 1, by omega⟩ ⟨τ + d + 1, by omega⟩⟩
  204. theorem appendSubConst_mulCount {τ : ℕ} (P : SLP τ) (c : ℕ) :
  205. (appendSubConst P c).2.mulCount = P.mulCount := by
  206. simp [appendSubConst, SLP.mulCount, appendConst_mulCount]
  207. theorem appendSubConst_evalInt {τ : ℕ} (P : SLP τ) (c : ℕ) (a : ℤ) :
  208. (appendSubConst P c).2.evalInt a = P.evalInt a - (c : ℤ) := by
  209. have hlt := appendConst_evalWireInt_lt P c a (τ + 1) (Nat.lt_succ_self _)
  210. have hc := appendConst_evalInt P c a
  211. simpa [appendSubConst, SLP.evalInt, SLP.evalWireInt, SLPOp.applyInt, hlt] using
  212. congrArg (P.evalInt a - ·) hc
  213. /-- Append gates computing `(P.evalPoly - (c : ℤ)) ^ 2` using **exactly 1** extra
  214. multiplication gate. -/
  215. def appendSubConstSq {τ : ℕ} (P : SLP τ) (c : ℕ) : (d : ℕ) × SLP (τ + d) :=
  216. let ⟨d, Q⟩ := appendSubConst P c
  217. ⟨d + 1, Q.snoc .mul ⟨τ + d + 1, by omega⟩ ⟨τ + d + 1, by omega⟩⟩
  218. theorem appendSubConstSq_mulCount {τ : ℕ} (P : SLP τ) (c : ℕ) :
  219. (appendSubConstSq P c).2.mulCount = P.mulCount + 1 := by
  220. simp [appendSubConstSq, SLP.mulCount, appendSubConst_mulCount]
  221. theorem appendSubConstSq_evalInt {τ : ℕ} (P : SLP τ) (c : ℕ) (a : ℤ) :
  222. (appendSubConstSq P c).2.evalInt a = (P.evalInt a - (c : ℤ)) ^ 2 := by
  223. have hsub := appendSubConst_evalInt P c a
  224. have hstep :
  225. (appendSubConstSq P c).2.evalInt a =
  226. (appendSubConst P c).2.evalInt a * (appendSubConst P c).2.evalInt a := by
  227. simp [appendSubConstSq, SLP.evalInt, SLP.evalWireInt, SLPOp.applyInt]
  228. rw [hstep, hsub, sq]
  229. /-! ## 4. Four-Multiplication 16-Root Sharpness Witness (`m = 4`, `2^4 = 16`) -/
  230. /-- Length-2 SLP computing the pronic quadratic `X * (X + 1)` using `1` multiplication. -/
  231. def slpPronic : SLP 2 :=
  232. let p1 : SLP 1 := .snoc .nil .add ⟨1, by omega⟩ ⟨0, by omega⟩ -- w2 = X + 1
  233. .snoc p1 .mul ⟨1, by omega⟩ ⟨2, by omega⟩ -- w3 = X * (X + 1)
  234. theorem slpPronic_mulCount : slpPronic.mulCount = 1 := by
  235. decide
  236. theorem slpPronic_evalInt (a : ℤ) : slpPronic.evalInt a = a * (a + 1) := by
  237. simp [slpPronic, SLP.evalInt, SLP.evalWireInt, SLPOp.applyInt]
  238. /-- Packaged 4-multiplication iterated-folding SLP computing
  239. `(((X(X + 1) - 16851)^2 - 220362381)^2 - 2083869931842000)^2 - 1832844567153600^2`. -/
  240. def slpFourMulSixteenPair : (τ : ℕ) × SLP τ :=
  241. let s1 := appendSubConstSq slpPronic 16851
  242. let s2 := appendSubConstSq s1.2 220362381
  243. let s3 := appendSubConstSq s2.2 2083869931842000
  244. let s4 := appendSubConst s3.2 (1832844567153600 ^ 2)
  245. ⟨_, s4.2⟩
  246. /-- Constant-free SLP with **exact `mulCount = 4`** computing the degree-16
  247. 4-level folded polynomial with `16` distinct integer roots
  248. `{-184, -180, -177, -172, -66, -51, -39, -6, 5, 38, 50, 65, 171, 176, 179, 183}`. -/
  249. def slpFourMulSixteen : SLP slpFourMulSixteenPair.1 :=
  250. slpFourMulSixteenPair.2
  251. theorem slpFourMulSixteen_mulCount : slpFourMulSixteen.mulCount = 4 := by
  252. simp [slpFourMulSixteen, slpFourMulSixteenPair, appendSubConst_mulCount,
  253. appendSubConstSq_mulCount, slpPronic_mulCount]
  254. theorem slpFourMulSixteen_evalInt (a : ℤ) :
  255. slpFourMulSixteen.evalInt a =
  256. (((a * (a + 1) - 16851) ^ 2 - 220362381) ^ 2 - 2083869931842000) ^ 2 -
  257. (1832844567153600 : ℤ) ^ 2 := by
  258. simp only [slpFourMulSixteen, slpFourMulSixteenPair, appendSubConst_evalInt,
  259. appendSubConstSq_evalInt, slpPronic_evalInt]
  260. norm_num
  261. /-- Nonzero polynomials computed by SLPs with at most `4` multiplication gates
  262. have at most `16` distinct integer roots. -/
  263. theorem tau_four_mul_intRootCount_le_sixteen {τ : ℕ} (P : SLP τ) (hm : P.mulCount ≤ 4)
  264. (hne : P.evalPoly ≠ 0) :
  265. intRootCount P.evalPoly ≤ 16 :=
  266. tau_mulCount_intRootCount_le_two_pow P hm hne
  267. /-- Exact sharpness at `m = 4`: `slpFourMulSixteen` uses `4` multiplications and has
  268. `16 = 2^4` distinct integer roots
  269. `{-184, -180, -177, -172, -66, -51, -39, -6, 5, 38, 50, 65, 171, 176, 179, 183}`. -/
  270. theorem tau_four_mul_sharp : zMaxMulGe 4 16 := by
  271. refine zMaxMulGe_of_evalInt slpFourMulSixteen
  272. {-184, -180, -177, -172, -66, -51, -39, -6, 5, 38, 50, 65, 171, 176, 179, 183} 0
  273. (by rw [slpFourMulSixteen_mulCount])
  274. (by decide)
  275. (by rw [slpFourMulSixteen_evalInt]; decide)
  276. ?_
  277. intro a ha
  278. rw [slpFourMulSixteen_evalInt]
  279. revert a ha
  280. decide
  281. /-! ## 5. Summary Theorem: Exact Sharpness for `m = 0, 1, 2, 3, 4` -/
  282. /-- **Exact Sharpness Theorem for Bounded-Multiplication SLPs (`m = 0, 1, 2, 3, 4`):**
  283. For every `m ∈ {0, 1, 2, 3, 4}`, the maximum number of distinct integer roots of a nonzero
  284. polynomial computed by a constant-free SLP with at most `m` multiplication gates is
  285. **exactly** `2 ^ m` (`1`, `2`, `4`, `8`, `16` respectively). -/
  286. theorem bounded_mult_exact_sharpness_four :
  287. (∀ {τ : ℕ} (P : SLP τ), P.mulCount ≤ 0 → P.evalPoly ≠ 0 → intRootCount P.evalPoly ≤ 1) ∧
  288. zMaxMulGe 0 1 ∧
  289. (∀ {τ : ℕ} (P : SLP τ), P.mulCount ≤ 1 → P.evalPoly ≠ 0 → intRootCount P.evalPoly ≤ 2) ∧
  290. zMaxMulGe 1 2 ∧
  291. (∀ {τ : ℕ} (P : SLP τ), P.mulCount ≤ 2 → P.evalPoly ≠ 0 → intRootCount P.evalPoly ≤ 4) ∧
  292. zMaxMulGe 2 4 ∧
  293. (∀ {τ : ℕ} (P : SLP τ), P.mulCount ≤ 3 → P.evalPoly ≠ 0 → intRootCount P.evalPoly ≤ 8) ∧
  294. zMaxMulGe 3 8 ∧
  295. (∀ {τ : ℕ} (P : SLP τ), P.mulCount ≤ 4 → P.evalPoly ≠ 0 → intRootCount P.evalPoly ≤ 16) ∧
  296. zMaxMulGe 4 16 :=
  297. ⟨bounded_mult_exact_sharpness.1, bounded_mult_exact_sharpness.2.1,
  298. bounded_mult_exact_sharpness.2.2.1, bounded_mult_exact_sharpness.2.2.2.1,
  299. bounded_mult_exact_sharpness.2.2.2.2.1, bounded_mult_exact_sharpness.2.2.2.2.2.1,
  300. bounded_mult_exact_sharpness.2.2.2.2.2.2.1, bounded_mult_exact_sharpness.2.2.2.2.2.2.2,
  301. fun P hm hne => tau_four_mul_intRootCount_le_sixteen P hm hne, tau_four_mul_sharp⟩
  302. end Research.PvsNP.Tau
  303. end