Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.InvariantPolynomialOf |
| 2 | import Mathlib.LinearAlgebra.Finsupp.LinearCombination |
| 3 | import Mathlib.RingTheory.Ideal.Span |
| 4 | import Mathlib.RingTheory.Spectrum.Prime.Topology |
| 5 | |
| 6 | /-! # Determinant Cover Eq -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.DeterminantCoverEq.Construction.DeterminantCover |
| 9 | |
| 10 | /-! |
| 11 | # Determinants of spanning families cover the spectrum |
| 12 | |
| 13 | For a finite free module, the determinants of all tuples selected from a |
| 14 | spanning family generate the unit ideal. This gives the affine opens on which |
| 15 | target-valued tuples become bases in the finite-relation quotient construction. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.Module |
| 19 | open scoped BigOperators |
| 20 | |
| 21 | universe u v w z |
| 22 | |
| 23 | variable {R : Type u} {M : Type v} {ι : Type w} {κ : Type z} |
| 24 | variable [CommRing R] [AddCommGroup M] [Module R M] [Fintype ι] [DecidableEq ι] |
| 25 | |
| 26 | /-- Determinants of tuples from a spanning family generate the unit ideal. -/ |
| 27 | theorem span_determinants_eq_top (b : Basis ι R M) (v : κ → M) |
| 28 | (hv : Submodule.span R (Set.range v) = ⊤) : |
| 29 | Ideal.span (Set.range (fun x : ι → κ => b.det (fun i => v (x i)))) = ⊤ := by |
| 30 | classical |
| 31 | let I : Ideal R := Ideal.span (Set.range (fun x : ι → κ => b.det (fun i => v (x i)))) |
| 32 | have hb (i : ι) : b i ∈ Submodule.span R (Set.range v) := by rw [hv]; trivial |
| 33 | choose c hc using fun i => Finsupp.mem_span_range_iff_exists_finsupp.mp (hb i) |
| 34 | have hc' (i : ι) : ∑ k ∈ (c i).support, c i k • v k = b i := hc i |
| 35 | have hsum : b.det.toMultilinearMap |
| 36 | (fun i => ∑ k ∈ (c i).support, c i k • v k) ∈ I := by |
| 37 | rw [MultilinearMap.map_sum_finset] |
| 38 | apply Submodule.sum_mem |
| 39 | intro x _ |
| 40 | rw [MultilinearMap.map_smul_univ] |
| 41 | apply Submodule.smul_mem |
| 42 | exact Ideal.subset_span ⟨x, rfl⟩ |
| 43 | apply (Ideal.eq_top_iff_one _).mpr |
| 44 | simp only [hc'] at hsum |
| 45 | change b.det b ∈ I at hsum |
| 46 | simpa only [Basis.det_self] using hsum |
| 47 | |
| 48 | /-- At every proper ideal, some tuple from the spanning family has determinant |
| 49 | outside that ideal. -/ |
| 50 | theorem exists_determinant_notMem (b : Basis ι R M) (v : κ → M) |
| 51 | (hv : Submodule.span R (Set.range v) = ⊤) (I : Ideal R) (hI : I ≠ ⊤) : |
| 52 | ∃ x : ι → κ, b.det (fun i => v (x i)) ∉ I := by |
| 53 | by_contra! h |
| 54 | apply hI |
| 55 | apply top_le_iff.mp |
| 56 | rw [← span_determinants_eq_top b v hv] |
| 57 | exact Ideal.span_le.mpr (by rintro _ ⟨x, rfl⟩; exact h x) |
| 58 | |
| 59 | variable {A B D : Type*} [CommRing A] [CommRing B] [CommRing D] |
| 60 | variable [Algebra A B] [Algebra B D] |
| 61 | |
| 62 | /-- When target-valued elements span the relation algebra, their invariant |
| 63 | determinant denominators generate the unit ideal of the invariant ring. -/ |
| 64 | theorem exists_invariant_cover |
| 65 | (t : A →+* B) (ht : Function.Injective t) (p c : B →+* D) |
| 66 | (hp : ∀ a, p (algebraMap A B a) = algebraMap B D (t a)) |
| 67 | (hc : ∀ a, c (algebraMap A B a) = algebraMap B D (algebraMap A B a)) |
| 68 | (hct : ∀ a, c (t a) = p (t a)) |
| 69 | (b : Basis ι A B) (dp dc : Basis ι B D) |
| 70 | (hdp : ∀ i, dp i = p (b i)) (hdc : ∀ i, dc i = c (b i)) |
| 71 | (hspan : Submodule.span A (Set.range t) = ⊤) : |
| 72 | ∃ g : (ι → A) → (algebraMap A B).eqLocus t, |
| 73 | Ideal.span (Set.range g) = ⊤ ∧ |
| 74 | ∀ x, ∃ v : Aˣ, |
| 75 | (g x : A) = (v : A) * (b.det (fun i => t (x i))) ^ Fintype.card ι := by |
| 76 | classical |
| 77 | let C := (algebraMap A B).eqLocus t |
| 78 | let : Algebra C A := C.subtype.toAlgebra |
| 79 | have hint : Algebra.IsIntegral C A := |
| 80 | ⟨InvariantPolynomialOf.Construction.InvariantPolynomial.integral_over_invariants t ht p c hp hc hct b dp dc hdp hdc⟩ |
| 81 | have hi : C.subtype.IsIntegral := algebraMap_isIntegral_iff.mpr hint |
| 82 | choose g v hgv using |
| 83 | InvariantPolynomialOf.Construction.InvariantPolynomial.exists_invariant_denominator t p c hp hc hct b dp dc hdp hdc |
| 84 | refine ⟨g, ?_, fun x => ⟨v x, hgv x⟩⟩ |
| 85 | by_contra htop |
| 86 | obtain ⟨J, hJ, hle⟩ := Ideal.exists_le_maximal (Ideal.span (Set.range g)) htop |
| 87 | obtain ⟨P, hP⟩ := hi.comap_surjective Subtype.val_injective ⟨J, hJ.isPrime⟩ |
| 88 | obtain ⟨x, hx⟩ := exists_determinant_notMem b t hspan P.asIdeal P.isPrime.ne_top |
| 89 | have hgJ : g x ∈ J := hle (Ideal.subset_span ⟨x, rfl⟩) |
| 90 | have hgP : (g x : A) ∈ P.asIdeal := by |
| 91 | change g x ∈ (PrimeSpectrum.comap C.subtype P).asIdeal |
| 92 | rw [hP] |
| 93 | exact hgJ |
| 94 | rw [hgv x] at hgP |
| 95 | rcases P.isPrime.mem_or_mem hgP with hvP | hdP |
| 96 | · exact Ideal.notMem_of_isUnit P.asIdeal (v x).isUnit hvP |
| 97 | · exact hx (P.isPrime.mem_of_pow_mem _ hdP) |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.DeterminantCoverEq.Construction.DeterminantCover |