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.ArithmeticGeometry.Models.SpreadingOut.GenericPrimitive |
| 2 | import Mathlib.Algebra.Module.Torsion.Basic |
| 3 | import Mathlib.RingTheory.Flat.Basic |
| 4 | |
| 5 | /-! # Common Denominator -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.CommonDenominator.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite integral algebra and its primitive subalgebra agree after |
| 12 | inverting one nonzero element of the base. -/ |
| 13 | |
| 14 | open scoped TensorProduct nonZeroDivisors |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem finite_submodule_common_denominator |
| 19 | (R M : Type u) [CommRing R] [IsDomain R] [AddCommGroup M] [Module R M] |
| 20 | [Module.Finite R M] (N : Submodule R M) |
| 21 | (h : ∀ m : M, ∃ r : R, r ≠ 0 ∧ r • m ∈ N) : |
| 22 | ∃ r : R, r ≠ 0 ∧ ∀ m : M, r • m ∈ N := by |
| 23 | have hQ : Module.IsTorsion R (M ⧸ N) := by |
| 24 | intro q |
| 25 | obtain ⟨m, rfl⟩ := N.mkQ_surjective q |
| 26 | obtain ⟨r, hr, hm⟩ := h m |
| 27 | refine ⟨⟨r, mem_nonZeroDivisors_of_ne_zero hr⟩, ?_⟩ |
| 28 | change r • N.mkQ m = 0 |
| 29 | rw [← map_smul] |
| 30 | exact (Submodule.Quotient.mk_eq_zero N).mpr hm |
| 31 | obtain ⟨r, hr, hr0⟩ := Submodule.annihilator_top_inter_nonZeroDivisors hQ |
| 32 | refine ⟨r, mem_nonZeroDivisors_iff_ne_zero.mp hr0, fun m ↦ ?_⟩ |
| 33 | have H := (Submodule.mem_annihilator.mp hr) (N.mkQ m) Submodule.mem_top |
| 34 | rw [← map_smul] at H |
| 35 | exact (Submodule.Quotient.mk_eq_zero N).mp H |
| 36 | |
| 37 | theorem primitive_subalgebra_common_denominator |
| 38 | (P A F E : Type u) [CommRing P] [IsDomain P] [CommRing A] |
| 39 | [Field F] [CommRing E] [Algebra P A] [Algebra P F] [IsFractionRing P F] |
| 40 | [Algebra F E] [Algebra P E] [IsScalarTower P F E] |
| 41 | [Module.Finite P A] (f : A →ₐ[P] E) (hf : Function.Injective f) |
| 42 | (a : A) (hgen : Algebra.adjoin F ({f a} : Set E) = ⊤) : |
| 43 | ∃ d : P, d ≠ 0 ∧ ∀ x : A, d • x ∈ Algebra.adjoin P ({a} : Set A) := by |
| 44 | apply finite_submodule_common_denominator P A (Algebra.adjoin P {a}).toSubmodule |
| 45 | intro x |
| 46 | have hx : f x ∈ Algebra.adjoin F ({f a} : Set E) := by rw [hgen]; trivial |
| 47 | obtain ⟨s, hs⟩ := multiple_mem_adjoin_of_mem_localization_adjoin P⁰ F {f a} (f x) hx |
| 48 | refine ⟨s, nonZeroDivisors.coe_ne_zero s, ?_⟩ |
| 49 | rw [← f.map_adjoin_singleton a] at hs |
| 50 | obtain ⟨y, hy, he⟩ := hs |
| 51 | have hxy : y = (s : P) • x := hf (by |
| 52 | rw [map_smul] |
| 53 | exact he) |
| 54 | exact hxy ▸ hy |
| 55 | |
| 56 | theorem finite_domain_primitive_common_denominator |
| 57 | (P A F : Type u) [CommRing P] [IsDomain P] [CommRing A] [IsDomain A] |
| 58 | [Field F] [CharZero F] [Algebra P A] [FaithfulSMul P A] |
| 59 | [Algebra P F] [IsFractionRing P F] [Module.Finite P A] : |
| 60 | ∃ (a : A) (d : P), d ≠ 0 ∧ ∀ x : A, d • x ∈ Algebra.adjoin P ({a} : Set A) := by |
| 61 | obtain ⟨a, ha⟩ := GenericPrimitive.Construction.finite_domain_generic_fiber_has_algebra_generator P A F |
| 62 | let f : A →ₐ[P] F ⊗[P] A := Algebra.TensorProduct.includeRight |
| 63 | have hf : Function.Injective f := by |
| 64 | apply (injective_iff_map_eq_zero f).mpr |
| 65 | intro x hx |
| 66 | obtain ⟨s, hs⟩ := (IsLocalizedModule.eq_zero_iff P⁰ (TensorProduct.mk P F A 1)).mp hx |
| 67 | have hs0 : algebraMap P A (s : P) ≠ 0 := by |
| 68 | simpa only [map_zero] using |
| 69 | (FaithfulSMul.algebraMap_injective P A).ne (nonZeroDivisors.coe_ne_zero s) |
| 70 | exact (mul_eq_zero.mp (show algebraMap P A (s : P) * x = 0 by |
| 71 | simpa only [Submonoid.smul_def, Algebra.smul_def] using hs)).resolve_left hs0 |
| 72 | obtain ⟨d, hd, hdx⟩ := primitive_subalgebra_common_denominator P A F (F ⊗[P] A) f hf a ha |
| 73 | exact ⟨a, d, hd, hdx⟩ |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.ArithmeticGeometry.Models.SpreadingOut.CommonDenominator.Construction |