module public import Quintic85.Defs public import Mathlib.Tactic.LinearCombination public import Mathlib.FieldTheory.IsAlgClosed.Basic @[expose] public section /-! # Lemma 3.1 of Yu–Zhu: `X_t` is smooth if and only if `t ∉ {0, 1}` We first compute `F_t` and its four partial derivatives at a vector `x`, then follow the paper's case analysis. Writing `x = (a, b, c, d)`: * if `c = d = 0`, the last two partials force `a = b = 0`; * if `a = b = 0`, the last two partials force `c = d = 0` unless `t = 0`; * if `ab = 0` but not both vanish, one of the first two partials gives `c = d` and then `F_t(x) = c⁵(1 - t)`, so `t = 1`; * if `ab ≠ 0`, the first two partials give `a⁴ = -3b⁴` and `c² + cd + d² = 0`, and Euler's identity `a ∂₁F + b ∂₂F = 4 (F - cd(d³ - tc³))` forces `d³ = tc³ = c³`, so `t = 1`. Conversely `(0 : 0 : 1 : 0)` is singular on `X_0`, and `(∜3 : 0 : 1 : 1)` is singular on `X_1`. -/ namespace Quintic85 open MvPolynomial variable {K : Type*} [Field K] theorem eval_F (t : K) (x : Fin 4 → K) : eval x (F t) = (x 2 - x 3) * (x 0 ^ 4 - 3 * x 1 ^ 4) - 6 * (x 2 + x 3) * x 0 ^ 2 * x 1 ^ 2 + x 2 * x 3 * (x 3 ^ 3 - t * x 2 ^ 3) := by simp [F] /-- Partial derivatives kill numerals. -/ @[simp] theorem pderiv_ofNat (i : Fin 4) (n : ℕ) [n.AtLeastTwo] : pderiv i (no_index (OfNat.ofNat n : MvPolynomial (Fin 4) K)) = 0 := by rw [← map_ofNat C n] exact pderiv_C /-- The four partial derivatives of `F_t`, evaluated at `x`. -/ theorem eval_pderiv_F (t : K) (x : Fin 4 → K) : eval x (pderiv 0 (F t)) = 4 * x 0 ^ 3 * (x 2 - x 3) - 12 * (x 2 + x 3) * x 0 * x 1 ^ 2 ∧ eval x (pderiv 1 (F t)) = -12 * x 1 ^ 3 * (x 2 - x 3) - 12 * (x 2 + x 3) * x 0 ^ 2 * x 1 ∧ eval x (pderiv 2 (F t)) = (x 0 ^ 4 - 3 * x 1 ^ 4) - 6 * x 0 ^ 2 * x 1 ^ 2 + x 3 ^ 4 - 4 * t * x 2 ^ 3 * x 3 ∧ eval x (pderiv 3 (F t)) = -(x 0 ^ 4 - 3 * x 1 ^ 4) - 6 * x 0 ^ 2 * x 1 ^ 2 + 4 * x 2 * x 3 ^ 3 - t * x 2 ^ 4 := by refine ⟨?_, ?_, ?_, ?_⟩ <;> · simp [F, Derivation.leibniz, Derivation.leibniz_pow, pderiv_X] ring theorem isSmooth_of_ne [CharZero K] {t : K} (ht0 : t ≠ 0) (ht1 : t ≠ 1) : IsSmooth t := by intro x hx hF by_contra hcon push Not at hcon obtain ⟨e0, e1, e2, e3⟩ := eval_pderiv_F t x have d0 := hcon 0 have d1 := hcon 1 have d2 := hcon 2 have d3 := hcon 3 rw [e0] at d0 rw [e1] at d1 rw [e2] at d2 rw [e3] at d3 rw [eval_F] at hF -- name the coordinates generalize ha : x 0 = a at d0 d1 d2 d3 hF generalize hb : x 1 = b at d0 d1 d2 d3 hF generalize hc : x 2 = c at d0 d1 d2 d3 hF generalize hd : x 3 = d at d0 d1 d2 d3 hF -- (A) `c = d = 0` forces `a = b = 0`. have hA : c = 0 → d = 0 → a = 0 ∧ b = 0 := by intro hc0 hd0 subst hc0 hd0 have hab : a ^ 2 * b ^ 2 = 0 := by linear_combination (-1 / 12 : K) * d2 - (1 / 12 : K) * d3 rcases mul_eq_zero.mp hab with h | h · have ha0 : a = 0 := pow_eq_zero_iff (n := 2) (by norm_num) |>.mp h subst ha0 have : b ^ 4 = 0 := by linear_combination (-1 / 3 : K) * d2 exact ⟨rfl, pow_eq_zero_iff (n := 4) (by norm_num) |>.mp this⟩ · have hb0 : b = 0 := pow_eq_zero_iff (n := 2) (by norm_num) |>.mp h subst hb0 have : a ^ 4 = 0 := by linear_combination d2 exact ⟨pow_eq_zero_iff (n := 4) (by norm_num) |>.mp this, rfl⟩ -- (B) `a = b = 0` forces `c = d = 0` (here `t ≠ 0` is used). have hB : a = 0 → b = 0 → c = 0 ∧ d = 0 := by intro ha0 hb0 subst ha0 hb0 have hd4 : 15 * d ^ 4 = 0 := by -- `d⁴ = 4 t c³ d` and `t c⁴ = 4 c d³` give `c·(15 d⁴) = 0`; and if `c = 0` then `d⁴ = 0`. by_cases hc0 : c = 0 · subst hc0 linear_combination 15 * d2 · have : c * (15 * d ^ 4) = 0 := by linear_combination (4 : K) * d * d3 - c * d2 exact (mul_eq_zero.mp this).resolve_left hc0 have hd0 : d = 0 := by have : d ^ 4 = 0 := by have h15 : (15 : K) ≠ 0 := by norm_num exact (mul_eq_zero.mp hd4).resolve_left h15 exact pow_eq_zero_iff (n := 4) (by norm_num) |>.mp this subst hd0 have : t * c ^ 4 = 0 := by linear_combination -d3 have hc4 : c ^ 4 = 0 := (mul_eq_zero.mp this).resolve_left ht0 exact ⟨pow_eq_zero_iff (n := 4) (by norm_num) |>.mp hc4, rfl⟩ -- (C) `(a,b) ≠ 0` and `(c,d) ≠ 0` cannot both hold (here `t ≠ 1` is used). have hC : ¬ (a = 0 ∧ b = 0) → ¬ (c = 0 ∧ d = 0) → False := by intro hab hcd -- If `c = d`, then `F(x) = c⁵(1 - t)` forces `c = 0 = d`. have key : c = d → a * b = 0 → False := by intro hcd' hab0 subst hcd' have h1 : c ^ 5 * (1 - t) = 0 := by linear_combination hF + 12 * c * a * b * hab0 have h1t : (1 - t) ≠ 0 := sub_ne_zero.mpr (Ne.symm ht1) have : c ^ 5 = 0 := (mul_eq_zero.mp h1).resolve_right h1t exact hcd ⟨pow_eq_zero_iff (n := 5) (by norm_num) |>.mp this, pow_eq_zero_iff (n := 5) (by norm_num) |>.mp this⟩ by_cases ha0 : a = 0 · have hb0 : b ≠ 0 := fun hb0 => hab ⟨ha0, hb0⟩ subst ha0 refine key ?_ (by ring) have : b ^ 3 * (c - d) = 0 := by linear_combination (-1 / 12 : K) * d1 have := (mul_eq_zero.mp this).resolve_left (pow_ne_zero 3 hb0) exact sub_eq_zero.mp this by_cases hb0 : b = 0 · subst hb0 refine key ?_ (by ring) have : a ^ 3 * (c - d) = 0 := by linear_combination (1 / 4 : K) * d0 have := (mul_eq_zero.mp this).resolve_left (pow_ne_zero 3 ha0) exact sub_eq_zero.mp this -- now `a ≠ 0` and `b ≠ 0` have p0 : a ^ 2 * (c - d) - 3 * (c + d) * b ^ 2 = 0 := by have : a * (a ^ 2 * (c - d) - 3 * (c + d) * b ^ 2) = 0 := by linear_combination (1 / 4 : K) * d0 exact (mul_eq_zero.mp this).resolve_left ha0 have p1 : b ^ 2 * (c - d) + (c + d) * a ^ 2 = 0 := by have : b * (b ^ 2 * (c - d) + (c + d) * a ^ 2) = 0 := by linear_combination (-1 / 12 : K) * d1 exact (mul_eq_zero.mp this).resolve_left hb0 -- `c² + cd + d² = 0` have hq : c ^ 2 + c * d + d ^ 2 = 0 := by have : a ^ 2 * (4 * (c ^ 2 + c * d + d ^ 2)) = 0 := by linear_combination (c - d) * p0 + 3 * (c + d) * p1 have h4 := (mul_eq_zero.mp this).resolve_left (pow_ne_zero 2 ha0) have h4' : (4 : K) ≠ 0 := by norm_num exact (mul_eq_zero.mp h4).resolve_left h4' -- Euler: `c d (d³ - t c³) = 0` have heu : c * d * (d ^ 3 - t * c ^ 3) = 0 := by linear_combination hF - (1 / 4 : K) * a * d0 - (1 / 4 : K) * b * d1 have hc0 : c ≠ 0 := by intro hc0; subst hc0 have : d ^ 2 = 0 := by linear_combination hq exact hcd ⟨rfl, pow_eq_zero_iff (n := 2) (by norm_num) |>.mp this⟩ have hd0 : d ≠ 0 := by intro hd0; subst hd0 have : c ^ 2 = 0 := by linear_combination hq exact hc0 (pow_eq_zero_iff (n := 2) (by norm_num) |>.mp this) have h3 : d ^ 3 - t * c ^ 3 = 0 := (mul_eq_zero.mp heu).resolve_left (mul_ne_zero hc0 hd0) have hcube : d ^ 3 - c ^ 3 = 0 := by linear_combination (d - c) * hq have : c ^ 3 * (1 - t) = 0 := by linear_combination h3 - hcube have h1t : (1 - t) ≠ 0 := sub_ne_zero.mpr (Ne.symm ht1) exact pow_ne_zero 3 hc0 ((mul_eq_zero.mp this).resolve_right h1t) -- conclude: `x = 0`, contradicting `hx` apply hx by_cases hcd : c = 0 ∧ d = 0 · obtain ⟨hc0, hd0⟩ := hcd obtain ⟨ha0, hb0⟩ := hA hc0 hd0 funext i fin_cases i <;> simp_all · by_cases hab : a = 0 ∧ b = 0 · exact absurd (hB hab.1 hab.2) hcd · exact (hC hab hcd).elim /-- `(0 : 0 : 1 : 0)` is a singular point of `X_0`. -/ theorem not_isSmooth_zero : ¬ IsSmooth (0 : K) := by intro h obtain ⟨i, hi⟩ := h ![0, 0, 1, 0] (by simp [funext_iff, Fin.forall_fin_succ]) (by simp [eval_F]) obtain ⟨e0, e1, e2, e3⟩ := eval_pderiv_F (0 : K) ![0, 0, 1, 0] fin_cases i <;> simp_all /-- `(y : 0 : 1 : 1)` with `y⁴ = 3` is a singular point of `X_1`. -/ theorem not_isSmooth_one [IsAlgClosed K] : ¬ IsSmooth (1 : K) := by intro h obtain ⟨y, hy⟩ := IsAlgClosed.exists_pow_nat_eq (3 : K) (by norm_num : 0 < 4) obtain ⟨i, hi⟩ := h ![y, 0, 1, 1] (by simp [funext_iff, Fin.forall_fin_succ]) (by simp [eval_F]) obtain ⟨e0, e1, e2, e3⟩ := eval_pderiv_F (1 : K) ![y, 0, 1, 1] fin_cases i · simp_all · simp_all · apply hi show eval ![y, 0, 1, 1] (pderiv 2 (F (1 : K))) = 0 rw [e2]; simp; linear_combination hy · apply hi show eval ![y, 0, 1, 1] (pderiv 3 (F (1 : K))) = 0 rw [e3]; simp; linear_combination -hy /-- **Lemma 3.1** (Yu–Zhu). Over an algebraically closed field of characteristic zero, the surface `X_t` is smooth if and only if `t ∉ {0, 1}`. -/ theorem isSmooth_iff [CharZero K] [IsAlgClosed K] (t : K) : IsSmooth t ↔ t ≠ 0 ∧ t ≠ 1 := by constructor · intro h refine ⟨fun h0 => ?_, fun h1 => ?_⟩ · subst h0; exact not_isSmooth_zero h · subst h1; exact not_isSmooth_one h · rintro ⟨h0, h1⟩ exact isSmooth_of_ne h0 h1 end Quintic85