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 Mathlib.RingTheory.Norm.Basic |
| 2 | import Mathlib.LinearAlgebra.Charpoly.BaseChange |
| 3 | import Mathlib.RingTheory.Spectrum.Prime.RingHom |
| 4 | import Mathlib.RingTheory.Spectrum.Prime.Topology |
| 5 | |
| 6 | /-! # Norm Open Is -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.NormOpenIs.Construction.NormOpen |
| 9 | |
| 10 | /-! |
| 11 | # The open defined by a finite-free norm |
| 12 | |
| 13 | The norm of an element does not vanish at a prime exactly when the element |
| 14 | does not vanish at any prime above it. This identifies the complement of a |
| 15 | finite image of a principal closed set with a principal open. |
| 16 | -/ |
| 17 | |
| 18 | open TensorProduct |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | variable {R : Type u} {A : Type v} [CommRing R] [CommRing A] [Algebra R A] |
| 23 | |
| 24 | theorem isUnit_norm_iff [Module.Free R A] [Module.Finite R A] (a : A) : |
| 25 | IsUnit (Algebra.norm R a) ↔ IsUnit a := by |
| 26 | rw [Algebra.norm_apply, ← LinearMap.isUnit_iff_isUnit_det, Algebra.lmul_isUnit_iff] |
| 27 | |
| 28 | theorem norm_baseChange [Module.Free R A] [Module.Finite R A] |
| 29 | (S : Type*) [CommRing S] [Algebra R S] (a : A) : |
| 30 | Algebra.norm S (1 ⊗ₜ[R] a : S ⊗[R] A) = algebraMap R S (Algebra.norm R a) := by |
| 31 | rw [Algebra.norm_apply, ← Algebra.baseChange_lmul, LinearMap.det_baseChange, |
| 32 | Algebra.norm_apply] |
| 33 | |
| 34 | /-- An element is a unit in a residue-field fiber precisely when it avoids |
| 35 | all the primes of the original algebra lying over that point. -/ |
| 36 | theorem isUnit_fiber_iff (p : PrimeSpectrum R) (a : A) : |
| 37 | IsUnit (1 ⊗ₜ[R] a : p.asIdeal.ResidueField ⊗[R] A) ↔ |
| 38 | ∀ q : PrimeSpectrum A, PrimeSpectrum.comap (algebraMap R A) q = p → a ∉ q.asIdeal := by |
| 39 | constructor |
| 40 | · intro h q hq |
| 41 | subst p |
| 42 | let F : (q.asIdeal.comap (algebraMap R A)).ResidueField ⊗[R] A →ₐ[R] |
| 43 | q.asIdeal.ResidueField := |
| 44 | Algebra.TensorProduct.lift (Ideal.ResidueField.mapₐ _ _ (Algebra.ofId _ _) rfl) |
| 45 | (IsScalarTower.toAlgHom _ _ _) (fun _ _ => Commute.all ..) |
| 46 | have hu : IsUnit (algebraMap A q.asIdeal.ResidueField a) := by |
| 47 | have hF := h.map F |
| 48 | change IsUnit (F (1 ⊗ₜ[R] a)) at hF |
| 49 | rw [Algebra.TensorProduct.lift_tmul, map_one, one_mul] at hF |
| 50 | exact hF |
| 51 | intro ha |
| 52 | exact hu.ne_zero (Ideal.algebraMap_residueField_eq_zero.mpr ha) |
| 53 | · intro h |
| 54 | by_contra hn |
| 55 | obtain ⟨m, hm, ha⟩ := exists_max_ideal_of_mem_nonunits hn |
| 56 | let q : PrimeSpectrum A := |
| 57 | PrimeSpectrum.comap Algebra.TensorProduct.includeRight.toRingHom ⟨m, hm.isPrime⟩ |
| 58 | have hq : PrimeSpectrum.comap (algebraMap R A) q = p := by |
| 59 | dsimp only [q] |
| 60 | rw [← PrimeSpectrum.comap_comp_apply, |
| 61 | ← Algebra.TensorProduct.includeLeftRingHom_comp_algebraMap, |
| 62 | PrimeSpectrum.comap_comp_apply] |
| 63 | apply Set.mem_singleton_iff.mp |
| 64 | rw [← PrimeSpectrum.residueField_comap p] |
| 65 | exact Set.mem_range_self _ |
| 66 | exact h q hq ha |
| 67 | |
| 68 | /-- Norm nonvanishing means nonvanishing at every point of the fiber. -/ |
| 69 | theorem norm_notMem_iff [Module.Free R A] [Module.Finite R A] |
| 70 | (p : PrimeSpectrum R) (a : A) : |
| 71 | Algebra.norm R a ∉ p.asIdeal ↔ |
| 72 | ∀ q : PrimeSpectrum A, PrimeSpectrum.comap (algebraMap R A) q = p → a ∉ q.asIdeal := by |
| 73 | rw [← isUnit_fiber_iff, ← isUnit_norm_iff (R := p.asIdeal.ResidueField), |
| 74 | norm_baseChange, isUnit_iff_ne_zero] |
| 75 | exact not_congr Ideal.algebraMap_residueField_eq_zero.symm |
| 76 | |
| 77 | theorem basicOpen_norm [Module.Free R A] [Module.Finite R A] (a : A) : |
| 78 | (PrimeSpectrum.basicOpen (Algebra.norm R a) : Set (PrimeSpectrum R)) = |
| 79 | (PrimeSpectrum.comap (algebraMap R A) '' PrimeSpectrum.zeroLocus {a})ᶜ := by |
| 80 | ext p |
| 81 | change Algebra.norm R a ∉ p.asIdeal ↔ _ |
| 82 | rw [norm_notMem_iff] |
| 83 | simp only [Set.mem_compl_iff, Set.mem_image, PrimeSpectrum.mem_zeroLocus, |
| 84 | Set.singleton_subset_iff, SetLike.mem_coe, not_exists, not_and] |
| 85 | exact ⟨fun h q ha hq => h q hq ha, fun h q hq ha => h q ha hq⟩ |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.NormOpenIs.Construction.NormOpen |