module public import Quintic85.Families @[expose] public section /-! # Theorem 1.1 of Yu–Zhu: `X_t` contains exactly 85 lines For `t ∉ {0, 1}` the set of lines on `X_t` is the finite set `lineFinset t` of `1 + 64 + 16 + 4 = 85` two-dimensional subspaces: * `L₁ = V(x₃, x₄)`; * the 64 lines skew to `L₁` (`skewLine x`, `x ∈ skewTriples t`); * the 16 lines through the vertices of the planes `x₄ = μx₃`, `μ⁴ = tμ` (`planeSpan μ c`); * the 4 lines in the plane `x₃ = 0` (`infSpan c`). -/ namespace Quintic85 open Polynomial Submodule Quintic85.Cert open scoped Classical variable {K : Type*} [Field K] [CharZero K] [IsAlgClosed K] /-- The pairs `(μ, c)` of the 16 lines through the vertices of the planes `x₄ = μ x₃`. -/ noncomputable def planePairs (t : K) : Finset (K × K) := (polyB t).roots.toFinset.biUnion fun mu => (polyq mu).roots.toFinset.image fun c => (mu, c) /-- The 85 lines on `X_t` (`t ≠ 0, 1`). -/ noncomputable def lineFinset (t : K) : Finset (Submodule K (Fin 4 → K)) := insert L1 (((skewTriples t).image skewLine ∪ (planePairs t).image fun p => planeSpan p.1 p.2) ∪ (polyInf : K[X]).roots.toFinset.image infSpan) omit [IsAlgClosed K] in theorem mem_planePairs {t : K} (ht1 : t ≠ 1) {p : K × K} : p ∈ planePairs t ↔ p.1 ^ 4 - t * p.1 = 0 ∧ (1 - p.1) * p.2 ^ 4 - 6 * (1 + p.1) * p.2 ^ 2 - 3 * (1 - p.1) = 0 := by obtain ⟨mu, c⟩ := p simp only [planePairs, Finset.mem_biUnion, Finset.mem_image, Prod.mk.injEq] constructor · rintro ⟨mu', hmu', c', hc', rfl, rfl⟩ have hB : mu' ^ 4 - t * mu' = 0 := by rwa [mem_roots_toFinset_iff (polyB_ne_zero t), eval_polyB] at hmu' refine ⟨hB, ?_⟩ rwa [mem_roots_toFinset_iff (polyq_ne_zero (one_sub_ne_zero_of_rootB ht1 hB)), eval_polyq] at hc' · rintro ⟨hB, hq⟩ refine ⟨mu, ?_, c, ?_, rfl, rfl⟩ · rwa [mem_roots_toFinset_iff (polyB_ne_zero t), eval_polyB] · rwa [mem_roots_toFinset_iff (polyq_ne_zero (one_sub_ne_zero_of_rootB ht1 hB)), eval_polyq] omit [IsAlgClosed K] in theorem mem_infRoots {c : K} : c ∈ (polyInf : K[X]).roots.toFinset ↔ c ^ 4 + 6 * c ^ 2 - 3 = 0 := by rw [mem_roots_toFinset_iff polyInf_ne_zero, eval_polyInf] /-! ### Cardinalities -/ theorem card_skewTriples {t : K} (ht0 : t ≠ 0) (ht1 : t ≠ 1) : (skewTriples t).card = 64 := by rw [skewTriples, Finset.card_biUnion] · rw [Finset.sum_congr rfl (g := fun _ => 16), Finset.sum_const, card_roots_polyR] · rfl intro r hr have hR : r ^ 4 - 6 * r ^ 2 - 3 = 0 := by rwa [mem_roots_toFinset_iff polyR_ne_zero, eval_polyR] at hr have hr0 : r ≠ 0 := by rintro rfl; norm_num at hR rw [Finset.card_biUnion] · rw [Finset.sum_congr rfl (g := fun _ => 4), Finset.sum_const, card_roots_polyQ ht0 ht1 hR] · rfl intro u hu have hQ : r ^ 2 * u ^ 4 + (3 + r ^ 2) * u ^ 3 - t * (9 - r ^ 2) * u - t * (6 - r ^ 2) = 0 := by rwa [mem_roots_toFinset_iff (polyQ_ne_zero hr0), eval_polyQ] at hu have hD := D_ne_zero ht0 hR hQ have hlam : lamVal r u ≠ 0 := by rw [lamVal] exact div_ne_zero (by norm_num) (mul_ne_zero (by norm_num) hD) rw [Finset.card_image_of_injective _ (fun a b h => by simpa using h), card_roots_polyL hlam] · intro u _ u' _ hne simp only [Function.onFun] rw [Finset.disjoint_left] intro x hx hx' simp only [Finset.mem_image] at hx hx' obtain ⟨l, _, rfl⟩ := hx obtain ⟨l', _, h⟩ := hx' simp only [Prod.mk.injEq] at h exact hne h.2.1.symm · intro r _ r' _ hne simp only [Function.onFun] rw [Finset.disjoint_left] intro x hx hx' simp only [Finset.mem_biUnion, Finset.mem_image] at hx hx' obtain ⟨u, _, l, _, rfl⟩ := hx obtain ⟨u', _, l', _, h⟩ := hx' simp only [Prod.mk.injEq] at h exact hne h.1.symm theorem card_planePairs {t : K} (ht0 : t ≠ 0) (ht1 : t ≠ 1) : (planePairs t).card = 16 := by rw [planePairs, Finset.card_biUnion] · rw [Finset.sum_congr rfl (g := fun _ => 4), Finset.sum_const, card_roots_polyB ht0] · rfl intro mu hmu have hB : mu ^ 4 - t * mu = 0 := by rwa [mem_roots_toFinset_iff (polyB_ne_zero t), eval_polyB] at hmu rw [Finset.card_image_of_injective _ (fun a b h => by simpa using h), card_roots_polyq ht1 hB] · intro mu _ mu' _ hne simp only [Function.onFun] rw [Finset.disjoint_left] intro x hx hx' simp only [Finset.mem_image] at hx hx' obtain ⟨c, _, rfl⟩ := hx obtain ⟨c', _, h⟩ := hx' simp only [Prod.mk.injEq] at h exact hne h.1.symm omit [IsAlgClosed K] in theorem skewLine_injOn {t : K} (ht0 : t ≠ 0) : Set.InjOn skewLine (skewTriples t : Set (K × K × K)) := by rintro ⟨r, u, l⟩ hx ⟨r', u', l'⟩ hy h obtain ⟨hR, hQ, hL⟩ := mem_skewTriples.mp hx obtain ⟨hR', hQ', hL'⟩ := mem_skewTriples.mp hy simp only at hR hQ hL hR' hQ' hL' have hr : r ≠ 0 := by rintro rfl; norm_num at hR have hD := D_ne_zero ht0 hR hQ have hl : l ≠ 0 := by rintro rfl have : lamVal r u = 0 := by linear_combination -hL rw [lamVal] at this exact div_ne_zero (by norm_num) (mul_ne_zero (by norm_num) hD) this have hu : u ≠ 0 := by rintro rfl have : t * (6 - r ^ 2) = 0 := by linear_combination -hQ rcases mul_eq_zero.mp this with h0 | h0 · exact ht0 h0 · have : (3 : K) = 0 := by linear_combination -hR - r ^ 2 * h0 norm_num at this obtain ⟨h1, -, h3, h4⟩ := skewSpan_inj h simp only [skewMat] at h1 h3 h4 subst h4 have hu' : u = u' := mul_left_cancel₀ hl h3 subst hu' have hr' : r = r' := mul_left_cancel₀ (mul_ne_zero hl hu) h1 subst hr' rfl theorem card_lineFinset {t : K} (ht0 : t ≠ 0) (ht1 : t ≠ 1) : (lineFinset t).card = 85 := by rw [lineFinset, Finset.card_insert_of_notMem] · rw [Finset.card_union_of_disjoint, Finset.card_union_of_disjoint, Finset.card_image_of_injOn (skewLine_injOn ht0), card_skewTriples ht0 ht1, Finset.card_image_of_injOn (fun p _ q _ h => Prod.ext (planeSpan_inj h).1 (planeSpan_inj h).2), card_planePairs ht0 ht1, Finset.card_image_of_injOn (fun c _ c' _ h => infSpan_inj h), card_roots_polyInf] · rw [Finset.disjoint_left] intro W hW hW' simp only [Finset.mem_image] at hW hW' obtain ⟨x, _, rfl⟩ := hW obtain ⟨p, _, hp⟩ := hW' exact skewSpan_ne_planeSpan _ _ _ _ _ _ hp.symm · rw [Finset.disjoint_left] intro W hW hW' simp only [Finset.mem_union, Finset.mem_image] at hW hW' obtain ⟨c, _, rfl⟩ := hW' rcases hW with ⟨x, _, hx⟩ | ⟨p, _, hp⟩ · exact skewSpan_ne_infSpan _ _ _ _ _ hx · exact planeSpan_ne_infSpan _ _ _ hp · simp only [Finset.mem_union, Finset.mem_image, not_or, not_exists, not_and] refine ⟨⟨fun x _ hx => skewSpan_ne_L1 _ _ _ _ hx, fun p _ hp => planeSpan_ne_L1 _ _ hp⟩, fun c _ hc => infSpan_ne_L1 _ hc⟩ omit [IsAlgClosed K] in /-- The set of lines on `X_t` is `lineFinset t` (for `t ≠ 0, 1`). Only characteristic zero is used here: algebraic closure enters solely through the root counts in `card_lineFinset`. -/ theorem lines_eq {t : K} (ht0 : t ≠ 0) (ht1 : t ≠ 1) : {W : Submodule K (Fin 4 → K) | IsLineOn t W} = ↑(lineFinset t) := by ext W show IsLineOn t W ↔ W ∈ (lineFinset t : Set (Submodule K (Fin 4 → K))) rw [Finset.mem_coe, lineFinset, Finset.mem_insert, Finset.mem_union, Finset.mem_union, Finset.mem_image, Finset.mem_image, Finset.mem_image] constructor · intro hW rcases normal_form W hW.1 with h | ⟨c1, c2, d1, d2, hc, h⟩ | ⟨c1, c2, d1, d2, mu, hc, h⟩ | ⟨a11, a12, a21, a22, h⟩ · exact Or.inl h · rw [h] at hW obtain ⟨c, hc', hspan⟩ := inf_complete t hc hW.2 exact Or.inr (Or.inr ⟨c, mem_infRoots.mpr hc', by rw [h, hspan]⟩) · rw [h] at hW obtain ⟨hB, c, hq, hspan⟩ := plane_complete ht1 hc hW.2 exact Or.inr (Or.inl (Or.inr ⟨(mu, c), (mem_planePairs ht1).mpr ⟨hB, hq⟩, by rw [h, hspan]⟩)) · rw [h] at hW obtain ⟨x, hx, hspan⟩ := skew_complete ht0 hW.2 exact Or.inr (Or.inl (Or.inl ⟨x, hx, by rw [h, hspan]⟩)) · rintro (rfl | ((⟨x, hx, rfl⟩ | ⟨p, hp, rfl⟩) | ⟨c, hc, rfl⟩)) · exact L1_isLine t · exact skewLine_isLine ht0 hx · obtain ⟨hB, hq⟩ := (mem_planePairs ht1).mp hp exact planeSpan_isLine t hB hq · exact infSpan_isLine t (mem_infRoots.mp hc) /-- **Theorem 1.1** (Yu–Zhu). Over an algebraically closed field of characteristic zero, for every `t ∉ {0, 1}` the smooth quintic surface `X_t` contains exactly 85 lines. -/ theorem ncard_lines (t : K) (ht0 : t ≠ 0) (ht1 : t ≠ 1) : {W : Submodule K (Fin 4 → K) | IsLineOn t W}.ncard = 85 := by rw [lines_eq ht0 ht1, Set.ncard_coe_finset, card_lineFinset ht0 ht1] end Quintic85