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.ProjectiveDual |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.RightExactness |
| 3 | import Mathlib.RingTheory.LocalRing.Module |
| 4 | import Mathlib.RingTheory.Spectrum.Prime.Module |
| 5 | |
| 6 | /-! # Kernel Support Is -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.KernelSupportIs.Construction.KernelSupport |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The nonzero fiber-kernel locus of a map of finite projective modules is closed. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] |
| 19 | variable {M N : Type u} [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 20 | |
| 21 | abbrev dualCokernel (d : M →ₗ[R] N) := Module.Dual R M ⧸ d.dualMap.range |
| 22 | |
| 23 | theorem tensor_cokernel (S : Type u) [CommRing S] [Algebra R S] (d : M →ₗ[R] N) : |
| 24 | Nontrivial (S ⊗[R] (N ⧸ d.range)) ↔ ¬ Function.Surjective (d.baseChange S) := by |
| 25 | let e := lTensor.equiv S (LinearMap.exact_map_mkQ_range d) d.range.mkQ_surjective |
| 26 | rw [← e.nontrivial_congr, Submodule.Quotient.nontrivial_iff, ne_eq, LinearMap.range_eq_top] |
| 27 | rfl |
| 28 | |
| 29 | private theorem surjective_square {A B C D : Type*} (f : A → B) (g : C → D) |
| 30 | (i : A → C) (j : B → D) (hi : Function.Bijective i) (hj : Function.Bijective j) |
| 31 | (h : ∀ x, j (f x) = g (i x)) : Function.Surjective f ↔ Function.Surjective g := by |
| 32 | constructor |
| 33 | · intro hf y |
| 34 | obtain ⟨z, rfl⟩ := hj.2 y |
| 35 | obtain ⟨x, rfl⟩ := hf z |
| 36 | exact ⟨i x, (h x).symm⟩ |
| 37 | · intro hg y |
| 38 | obtain ⟨z, hz⟩ := hg (j y) |
| 39 | obtain ⟨x, rfl⟩ := hi.2 z |
| 40 | exact ⟨x, hj.1 ((h x).trans hz)⟩ |
| 41 | |
| 42 | theorem dual_surjective_baseChange (S : Type u) [CommRing S] [Algebra R S] |
| 43 | [Module.Finite R M] [Module.Projective R M] |
| 44 | [Module.Finite R N] [Module.Projective R N] (d : M →ₗ[R] N) : |
| 45 | Function.Surjective (d.dualMap.baseChange S) ↔ Function.Surjective (d.baseChange S).dualMap := |
| 46 | surjective_square (d.dualMap.baseChange S) (d.baseChange S).dualMap |
| 47 | (ProjectiveDual.Construction.ProjectiveDualBaseChange.map (R := R) S N) (ProjectiveDual.Construction.ProjectiveDualBaseChange.map (R := R) S M) |
| 48 | (ProjectiveDual.Construction.ProjectiveDualBaseChange.bijective S N) (ProjectiveDual.Construction.ProjectiveDualBaseChange.bijective S M) |
| 49 | (fun x => LinearMap.congr_fun (ProjectiveDual.Construction.ProjectiveDualBaseChange.naturality S d) x) |
| 50 | |
| 51 | theorem field_kernel_iff (K : Type u) [Field K] [Algebra R K] |
| 52 | [Module.Finite R M] [Module.Projective R M] |
| 53 | [Module.Finite R N] [Module.Projective R N] (d : M →ₗ[R] N) : |
| 54 | Nontrivial (d.baseChange K).ker ↔ Nontrivial (K ⊗[R] dualCokernel d) := by |
| 55 | rw [tensor_cokernel K d.dualMap, dual_surjective_baseChange K d] |
| 56 | simp only [Submodule.nontrivial_iff_ne_bot, ne_eq, LinearMap.ker_eq_bot, |
| 57 | LinearMap.dualMap_surjective_iff] |
| 58 | |
| 59 | theorem fiber_iff_support [Module.Finite R M] [Module.Projective R M] |
| 60 | [Module.Finite R N] [Module.Projective R N] (d : M →ₗ[R] N) (p : PrimeSpectrum R) : |
| 61 | Nontrivial (d.baseChange p.asIdeal.ResidueField).ker ↔ |
| 62 | p ∈ Module.support R (dualCokernel d) := |
| 63 | (field_kernel_iff p.asIdeal.ResidueField d).trans |
| 64 | (Module.mem_support_iff_nontrivial_residueField_tensorProduct (M := dualCokernel d) p).symm |
| 65 | |
| 66 | theorem isClosed_nontrivial_kernel [Module.Finite R M] [Module.Projective R M] |
| 67 | [Module.Finite R N] [Module.Projective R N] (d : M →ₗ[R] N) : |
| 68 | IsClosed {p : PrimeSpectrum R | Nontrivial (d.baseChange p.asIdeal.ResidueField).ker} := by |
| 69 | have he : {p : PrimeSpectrum R | Nontrivial (d.baseChange p.asIdeal.ResidueField).ker} = |
| 70 | Module.support R (dualCokernel d) := Set.ext (fiber_iff_support d) |
| 71 | rw [he] |
| 72 | exact Module.isClosed_support (R := R) (M := dualCokernel d) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.KernelSupportIs.Construction.KernelSupport |