πŸ›οΈ Atlasβœ’οΈFormalizations.AlgebraicGeometry.SegrePersistence.PluckerLower view on GitHub β†—18 theorems
/-Copyright (c) 2026 Carles MarΓ­n. All rights reserved.Released under Apache 2.0 license as described in the file LICENSE.Authors: Carles MarΓ­n, Claude (AI assistant)-/module -- encaje: cota inferior del Teorema 2 (qp(P^{m-1} Γ— P^3) β‰₯ ⌈4m/3βŒ‰) de la nota qp_bsr, en coordenadas.public import Mathlib.LinearAlgebra.Matrix.Rankpublic import Mathlib.LinearAlgebra.FiniteDimensional.Lemmaspublic import Mathlib.LinearAlgebra.Dimension.RankNullitypublic import Mathlib.Basic.Real.Basicpublic import Mathlib.Tactic.FinCasespublic import Mathlib.Tactic.Ring /-!# The PlΓΌcker quadric behind `qp(β„™^{m-1} Γ— β„™Β³) β‰₯ ⌈4m/3βŒ‰` This file formalizes the lower bound in Theorem 2 ofC. MarΓ­n, *Quadratic persistence of Segre varieties and a linear gap between biquadratic SOS rankand Zarankiewicz bounds* (2026), for points in general position, in coordinates. Let `A = ℝ^m` (`Fin m β†’ ℝ`), `B = ℝ⁴` (`Fin 4 β†’ ℝ`), and let `a i ∈ A`, `b i ∈ B`, `i : Fin k`.Tensors in `A βŠ— B` are matrices `Matrix (Fin m) (Fin 4) ℝ`, the simple tensor `a βŠ— b` being`Matrix.vecMulVec a b`. Linear maps `A β†’ B` are matrices `Matrix (Fin 4) (Fin m) ℝ`.Vectors of `β‹€Β²B` are written by their `2 Γ— 2` minors `U p q` (`wedge u v p q = u p v q - u q v p`),and `pl` is the PlΓΌcker form on `⋀²ℝ⁴`. ## Main results * `SegrePersistence.PluckerLower.exists_M`: if `3k < 4m` and all `b i β‰  0`, there is `M β‰  0` with  `M a_i ∈ ⟨b_i⟩` for all `i` (dimension count, rank-nullity).* `SegrePersistence.PluckerLower.M_rank_eq_four`: if any `≀ m` of the `a i` and any `≀ 4` of the  `b i` are linearly independent and `m < k`, every such `M β‰  0` has rank `4`.  `M_rank_eq_four'` is the same with "any `m`" / "any `4`" (exactly) and `4 ≀ k`.* `SegrePersistence.PluckerLower.Qform`: the bilinear form `Q(z, z') = pl(L z, L z')` with  `L(a βŠ— b) = M a ∧ b`; `Q_symm`, `Q_simple` (it vanishes on simple tensors), `Q_radical`  (each `a_i βŠ— b_i` is in its radical) and `Q_ne_zero` (it is nonzero when `rank M = 4`).* `SegrePersistence.PluckerLower.lower_bound`: for `m < k`, `3k < 4m` and points in general  position, there is a nonzero symmetric bilinear form on `A βŠ— B`, vanishing on all simple tensors,  with every `a_i βŠ— b_i` in its radical. ## What is not covered That general points compute `qp` (BSSV, Lemma 3.3), the passage from general points to all pointsby closure, and the identification of the space of such forms with `π’Ÿ β‰… β‹€Β²A* βŠ— β‹€Β²B*`(hence the statement `qp β‰₯ ⌈4m/3βŒ‰` itself) are not formalized here. Nor is the existence ofpoints in general position, nor the cases `m = 2, 3`.-/ @[expose] public section open Module Finset Matrix namespace SegrePersistence namespace PluckerLower variable {m k : β„•} /-! ### Step 1: existence of `M` by a dimension count -/ /-- The linear map `M ↦ (M a_i mod ⟨b_i⟩)_i`; its kernel is the space of admissible `M`. -/noncomputable def condMap (a : Fin k β†’ Fin m β†’ ℝ) (b : Fin k β†’ Fin 4 β†’ ℝ) :    Matrix (Fin 4) (Fin m) ℝ β†’β‚—[ℝ] ((i : Fin k) β†’ (Fin 4 β†’ ℝ) β§Έ (ℝ βˆ™ b i)) :=  LinearMap.pi fun i => (ℝ βˆ™ b i).mkQ βˆ˜β‚—    { toFun := fun M => M *α΅₯ a i      map_add' := fun M N => Matrix.add_mulVec M N (a i)      map_smul' := fun c M => by simp [Matrix.smul_mulVec] } lemma mem_ker_condMap {a : Fin k β†’ Fin m β†’ ℝ} {b : Fin k β†’ Fin 4 β†’ ℝ}    {M : Matrix (Fin 4) (Fin m) ℝ} :    M ∈ LinearMap.ker (condMap a b) ↔ βˆ€ i, M *α΅₯ a i ∈ ℝ βˆ™ b i := by  simp [condMap, funext_iff] lemma finrank_condMap_target {b : Fin k β†’ Fin 4 β†’ ℝ} (hb : βˆ€ i, b i β‰  0) :    finrank ℝ ((i : Fin k) β†’ (Fin 4 β†’ ℝ) β§Έ (ℝ βˆ™ b i)) = 3 * k := by  rw [Module.finrank_pi_fintype]  have h : βˆ€ i, finrank ℝ ((Fin 4 β†’ ℝ) β§Έ (ℝ βˆ™ b i)) = 3 := by    intro i    have := (ℝ βˆ™ b i).finrank_quotient_add_finrank    rw [finrank_span_singleton (hb i), Module.finrank_fin_fun] at this    omega  simp [h, mul_comm] /-- **Step 1.** If `3k < 4m` (and the `b i` are nonzero), there is a nonzero `M : A β†’ B` with`M a_i ∈ ⟨b_i⟩` for every `i`. -/theorem exists_M (a : Fin k β†’ Fin m β†’ ℝ) (b : Fin k β†’ Fin 4 β†’ ℝ) (hb : βˆ€ i, b i β‰  0)    (hk : 3 * k < 4 * m) :    βˆƒ M : Matrix (Fin 4) (Fin m) ℝ, M β‰  0 ∧ βˆ€ i, M *α΅₯ a i ∈ ℝ βˆ™ b i := by  have h1 := LinearMap.finrank_range_add_finrank_ker (condMap a b)  have h2 : finrank ℝ (LinearMap.range (condMap a b)) ≀ 3 * k :=    (Submodule.finrank_le _).trans (finrank_condMap_target hb).le  rw [Module.finrank_matrix] at h1  simp only [Fintype.card_fin, Module.finrank_self, mul_one] at h1  have hne : LinearMap.ker (condMap a b) β‰  βŠ₯ := by    intro h    rw [h, finrank_bot] at h1    omega  obtain ⟨M, hM, hM0⟩ := Submodule.exists_mem_ne_zero_of_ne_bot hne  exact ⟨M, hM0, mem_ker_condMap.1 hM⟩ /-! ### Step 2: `M` has rank four -/ /-- An independent family indexed by `t`, lying in `W`, has at most `finrank W` members. -/lemma card_le_finrank_of_linearIndepOn {V ΞΉ : Type*} [AddCommGroup V] [Module ℝ V]    [FiniteDimensional ℝ V] (v : ΞΉ β†’ V) (t : Finset ΞΉ) (ht : LinearIndepOn ℝ v (t : Set ΞΉ))    (W : Submodule ℝ V) (hW : βˆ€ i ∈ t, v i ∈ W) : t.card ≀ finrank ℝ W := by  have h := finrank_span_eq_card ht  have hle : Submodule.span ℝ (Set.range fun x : (t : Set ΞΉ) => v x) ≀ W := by    rw [Submodule.span_le]    rintro _ ⟨x, rfl⟩    exact hW x x.2  have := Submodule.finrank_mono hle  have hc : Fintype.card (t : Set ΞΉ) = t.card := by simp  omega /-- **Step 2.** If any `≀ m` of the `a i` and any `≀ 4` of the `b i` are linearly independent and`m < k`, then every nonzero `M` with `M a_i ∈ ⟨b_i⟩` for all `i` has rank `4`. -/theorem M_rank_eq_four (a : Fin k β†’ Fin m β†’ ℝ) (b : Fin k β†’ Fin 4 β†’ ℝ)    (ha : βˆ€ s : Finset (Fin k), s.card ≀ m β†’ LinearIndepOn ℝ a (s : Set (Fin k)))    (hb : βˆ€ s : Finset (Fin k), s.card ≀ 4 β†’ LinearIndepOn ℝ b (s : Set (Fin k)))    (hmk : m < k) (M : Matrix (Fin 4) (Fin m) ℝ) (hM0 : M β‰  0)    (hM : βˆ€ i, M *α΅₯ a i ∈ ℝ βˆ™ b i) : M.rank = 4 := by  set f := M.mulVecLin with hf  have hrk : M.rank = finrank ℝ (LinearMap.range f) := rfl  have hnull := LinearMap.finrank_range_add_finrank_ker f  rw [Module.finrank_fin_fun] at hnull  have hr4 : M.rank ≀ 4 := by    rw [hrk]    exact (Submodule.finrank_le _).trans (by rw [Module.finrank_fin_fun])  have hr1 : 1 ≀ M.rank := by    rw [hrk, Nat.one_le_iff_ne_zero]    intro h0    rw [Submodule.finrank_eq_zero, LinearMap.range_eq_bot] at h0    apply hM0    ext p j    have := congrArg (fun g => g (Pi.single j 1) p) h0    simpa [hf, Matrix.mulVec_single_one] using this  by_contra hne  have hr : M.rank < 4 := lt_of_le_of_ne hr4 hne  set K := (univ : Finset (Fin k)).filter (fun i => M *α΅₯ a i = 0) with hK  set J := (univ : Finset (Fin k)).filter (fun i => Β¬ M *α΅₯ a i = 0) with hJ  have hKJ : K.card + J.card = k := by    rw [hK, hJ, Finset.card_filter_add_card_filter_not, Finset.card_univ, Fintype.card_fin]  -- at most `m - r` of the `a i` lie in `ker M`  have hKc : K.card ≀ m - M.rank := by    by_contra hc    obtain ⟨t, htK, htc⟩ := Finset.exists_subset_card_eq (s := K) (n := m - M.rank + 1)      (by omega)    have := card_le_finrank_of_linearIndepOn a t (ha t (by omega)) (LinearMap.ker f)      (fun i hi => by        have := (Finset.mem_filter.1 (htK hi)).2        simpa [hf] using this)    omega  -- the other `b i` lie in `im M`, which holds at most `r` of them  have hJc : J.card ≀ M.rank := by    by_contra hc    obtain ⟨t, htJ, htc⟩ := Finset.exists_subset_card_eq (s := J) (n := M.rank + 1)      (by omega)    have := card_le_finrank_of_linearIndepOn b t (hb t (by omega)) (LinearMap.range f)      (fun i hi => by        have hi0 := (Finset.mem_filter.1 (htJ hi)).2        obtain ⟨c, hc⟩ := Submodule.mem_span_singleton.1 (hM i)        have hc0 : c β‰  0 := by          rintro rfl          simp at hc          exact hi0 hc.symm        refine ⟨c⁻¹ β€’ a i, ?_⟩        simp [hf, ← hc, smul_smul, inv_mul_cancelβ‚€ hc0])    omega  omega /-- **Step 2**, with "any `m`" and "any `4`" (exactly) as general-position hypotheses. -/theorem M_rank_eq_four' (a : Fin k β†’ Fin m β†’ ℝ) (b : Fin k β†’ Fin 4 β†’ ℝ)    (ha : βˆ€ s : Finset (Fin k), s.card = m β†’ LinearIndepOn ℝ a (s : Set (Fin k)))    (hb : βˆ€ s : Finset (Fin k), s.card = 4 β†’ LinearIndepOn ℝ b (s : Set (Fin k)))    (hmk : m < k) (h4k : 4 ≀ k) (M : Matrix (Fin 4) (Fin m) ℝ) (hM0 : M β‰  0)    (hM : βˆ€ i, M *α΅₯ a i ∈ ℝ βˆ™ b i) : M.rank = 4 := by  refine M_rank_eq_four a b (fun s hs => ?_) (fun s hs => ?_) hmk M hM0 hM  Β· obtain ⟨t, hst, htu, htc⟩ := Finset.exists_subsuperset_card_eq (Finset.subset_univ s) hs      (by rw [Finset.card_univ, Fintype.card_fin]; omega)    exact (ha t htc).mono (by exact_mod_cast hst)  Β· obtain ⟨t, hst, htu, htc⟩ := Finset.exists_subsuperset_card_eq (Finset.subset_univ s) hs      (by rw [Finset.card_univ, Fintype.card_fin]; omega)    exact (hb t htc).mono (by exact_mod_cast hst) /-! ### Step 3: the pulled-back PlΓΌcker quadric -/ /-- The `2 Γ— 2` minors of the columns `u, v`: coordinates of `u ∧ v ∈ ⋀²ℝ⁴`. -/def wedge (u v : Fin 4 β†’ ℝ) : Fin 4 β†’ Fin 4 β†’ ℝ := fun p q => u p * v q - u q * v p /-- The PlΓΌcker form on `⋀²ℝ⁴` in minor coordinates. -/def pl (U V : Fin 4 β†’ Fin 4 β†’ ℝ) : ℝ :=  U 0 1 * V 2 3 - U 0 2 * V 1 3 + U 0 3 * V 1 2 + U 1 2 * V 0 3 - U 1 3 * V 0 2 + U 2 3 * V 0 1 /-- The linear map `L : A βŠ— B β†’ β‹€Β²B`, `L(a βŠ— b) = M a ∧ b`, in coordinates. -/def L (M : Matrix (Fin 4) (Fin m) ℝ) (z : Matrix (Fin m) (Fin 4) ℝ) : Fin 4 β†’ Fin 4 β†’ ℝ :=  fun p q => βˆ‘ i, (M p i * z i q - M q i * z i p) /-- `Q(z, z') = pl(L z, L z')`. -/def Q (M : Matrix (Fin 4) (Fin m) ℝ) (z z' : Matrix (Fin m) (Fin 4) ℝ) : ℝ :=  pl (L M z) (L M z') lemma pl_symm (U V : Fin 4 β†’ Fin 4 β†’ ℝ) : pl U V = pl V U := by  unfold pl; ring lemma L_add (M : Matrix (Fin 4) (Fin m) ℝ) (z z' : Matrix (Fin m) (Fin 4) ℝ) :    L M (z + z') = L M z + L M z' := by  funext p q  simp only [L, Matrix.add_apply, Pi.add_apply, ← Finset.sum_add_distrib]  exact Finset.sum_congr rfl fun i _ => by ring lemma L_smul (M : Matrix (Fin 4) (Fin m) ℝ) (c : ℝ) (z : Matrix (Fin m) (Fin 4) ℝ) :    L M (c β€’ z) = c β€’ L M z := by  funext p q  simp only [L, Matrix.smul_apply, Pi.smul_apply, smul_eq_mul, Finset.mul_sum]  exact Finset.sum_congr rfl fun i _ => by ring /-- `Q` as a bilinear form on `A βŠ— B`. -/noncomputable def Qform (M : Matrix (Fin 4) (Fin m) ℝ) :    LinearMap.BilinForm ℝ (Matrix (Fin m) (Fin 4) ℝ) :=  LinearMap.mkβ‚‚ ℝ (Q M)    (fun z z' w => by simp only [Q, L_add, pl, Pi.add_apply]; ring)    (fun c z w => by simp only [Q, L_smul, pl, Pi.smul_apply, smul_eq_mul]; ring)    (fun z w w' => by simp only [Q, L_add, pl, Pi.add_apply]; ring)    (fun c z w => by simp only [Q, L_smul, pl, Pi.smul_apply, smul_eq_mul]; ring) @[simp] lemma Qform_apply (M : Matrix (Fin 4) (Fin m) ℝ) (z z' : Matrix (Fin m) (Fin 4) ℝ) :    Qform M z z' = Q M z z' := rfl /-- `Q` is symmetric. -/theorem Q_symm (M : Matrix (Fin 4) (Fin m) ℝ) (z z' : Matrix (Fin m) (Fin 4) ℝ) :    Q M z z' = Q M z' z :=  pl_symm _ _ /-- `L(a βŠ— b) = M a ∧ b`. -/lemma L_vecMulVec (M : Matrix (Fin 4) (Fin m) ℝ) (x : Fin m β†’ ℝ) (y : Fin 4 β†’ ℝ) :    L M (vecMulVec x y) = wedge (M *α΅₯ x) y := by  funext p q  simp only [L, wedge, vecMulVec_apply, mulVec, dotProduct, Finset.sum_mul,    ← Finset.sum_sub_distrib]  exact Finset.sum_congr rfl fun i _ => by ring /-- `pl(w, w) = 0` for decomposable `w = u ∧ v`. -/lemma pl_wedge_self (u v : Fin 4 β†’ ℝ) : pl (wedge u v) (wedge u v) = 0 := by  unfold pl wedge; ring /-- `Q` vanishes on simple tensors. -/theorem Q_simple (M : Matrix (Fin 4) (Fin m) ℝ) (x : Fin m β†’ ℝ) (y : Fin 4 β†’ ℝ) :    Q M (vecMulVec x y) (vecMulVec x y) = 0 := by  rw [Q, L_vecMulVec, pl_wedge_self] /-- If `M a ∈ ⟨b⟩` then `L(a βŠ— b) = 0`. -/lemma L_point_eq_zero (M : Matrix (Fin 4) (Fin m) ℝ) (x : Fin m β†’ ℝ) (y : Fin 4 β†’ ℝ)    (h : M *α΅₯ x ∈ ℝ βˆ™ y) : L M (vecMulVec x y) = 0 := by  obtain ⟨c, hc⟩ := Submodule.mem_span_singleton.1 h  rw [L_vecMulVec, ← hc]  funext p q  simp only [wedge, Pi.smul_apply, smul_eq_mul, Pi.zero_apply]  ring /-- Each point `a βŠ— b` with `M a ∈ ⟨b⟩` lies in the radical of `Q`. -/theorem Q_radical (M : Matrix (Fin 4) (Fin m) ℝ) (x : Fin m β†’ ℝ) (y : Fin 4 β†’ ℝ)    (h : M *α΅₯ x ∈ ℝ βˆ™ y) (z : Matrix (Fin m) (Fin 4) ℝ) :    Q M (vecMulVec x y) z = 0 := by  rw [Q, L_point_eq_zero M x y h]  simp [pl] /-- If `M` has rank `4` (is onto), `Q` is nonzero. -/theorem Q_ne_zero (M : Matrix (Fin 4) (Fin m) ℝ) (hM : M.rank = 4) :    βˆƒ z z' : Matrix (Fin m) (Fin 4) ℝ, Q M z z' β‰  0 := by  have htop : LinearMap.range M.mulVecLin = ⊀ :=    Submodule.eq_top_of_finrank_eq (by rw [Module.finrank_fin_fun]; exact hM)  have hx : βˆ€ p : Fin 4, βˆƒ x, M *α΅₯ x = Pi.single p 1 := by    intro p    obtain ⟨x, hx⟩ := LinearMap.range_eq_top.1 htop (Pi.single p 1)    exact ⟨x, by simpa using hx⟩  obtain ⟨x0, h0⟩ := hx 0  obtain ⟨x2, h2⟩ := hx 2  refine ⟨vecMulVec x0 (Pi.single 1 1), vecMulVec x2 (Pi.single 3 1), ?_⟩  rw [Q, L_vecMulVec, L_vecMulVec, h0, h2]  simp [pl, wedge] /-! ### The lower bound for points in general position -/ /-- **Lower bound of Theorem 2, for points in general position.** If `m < k`, `3k < 4m`, any `≀ m`of the `a i` and any `≀ 4` of the `b i` are linearly independent, then there is a nonzerosymmetric bilinear form on `A βŠ— B`, vanishing on every simple tensor, with every `a_i βŠ— b_i` inits radical. -/theorem lower_bound (a : Fin k β†’ Fin m β†’ ℝ) (b : Fin k β†’ Fin 4 β†’ ℝ)    (ha : βˆ€ s : Finset (Fin k), s.card ≀ m β†’ LinearIndepOn ℝ a (s : Set (Fin k)))    (hb : βˆ€ s : Finset (Fin k), s.card ≀ 4 β†’ LinearIndepOn ℝ b (s : Set (Fin k)))    (hmk : m < k) (hk : 3 * k < 4 * m) :    βˆƒ D : LinearMap.BilinForm ℝ (Matrix (Fin m) (Fin 4) ℝ), D β‰  0 ∧      (βˆ€ z z', D z z' = D z' z) ∧      (βˆ€ (x : Fin m β†’ ℝ) (y : Fin 4 β†’ ℝ), D (vecMulVec x y) (vecMulVec x y) = 0) ∧      βˆ€ i z, D (vecMulVec (a i) (b i)) z = 0 := by  have hb0 : βˆ€ i, b i β‰  0 := fun i => by    exact (hb {i} (by simp)).ne_zero (by simp)  obtain ⟨M, hM0, hM⟩ := exists_M a b hb0 hk  have hr := M_rank_eq_four a b ha hb hmk M hM0 hM  refine ⟨Qform M, ?_, fun z z' => Q_symm M z z', fun x y => Q_simple M x y,    fun i z => Q_radical M (a i) (b i) (hM i) z⟩  intro h0  obtain ⟨z, z', hz⟩ := Q_ne_zero M hr  exact hz (by simpa using congrArg (fun D => D z z') h0) end PluckerLower end SegrePersistence