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.RepresentationTheory.Theta.Geometric.SquareZero.AffineDetection |
| 2 | import OAI.RepresentationTheory.Theta.Geometric.SquareZero.Spectrum |
| 3 | import Mathlib.AlgebraicGeometry.OpenImmersion |
| 4 | |
| 5 | /-! # Scheme Detection -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Geometric.SquareZero.SchemeDetection |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual maps from an arbitrary split square-zero complex test are |
| 12 | determined by all of its ordinary dual-number linear quotients. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | variable {M : Type} [AddCommGroup M] [Module ℂ M] [Module ℂᵐᵒᵖ M] [IsCentralScalar ℂ M] |
| 17 | |
| 18 | theorem squareZero_scheme_maps_ext (X : Scheme) |
| 19 | (f g : Spec (.of (TrivSqZeroExt ℂ M)) ⟶ X) |
| 20 | (h : ∀ l : M →ₗ[ℂ] ℂ, |
| 21 | Spec.map (CommRingCat.ofHom (TrivSqZeroExt.map l).toRingHom) ≫ f = |
| 22 | Spec.map (CommRingCat.ofHom (TrivSqZeroExt.map l).toRingHom) ≫ g) : f = g := by |
| 23 | let : Subsingleton (Spec (.of (TrivSqZeroExt ℂ M))) := Spectrum.squareZero_primeSpectrum_subsingleton |
| 24 | let d : Spec (.of (DualNumber ℂ)) := |
| 25 | PrimeSpectrum.comap (TrivSqZeroExt.fstHom ℂ ℂ ℂ).toRingHom (⊥ : PrimeSpectrum ℂ) |
| 26 | let q := (Spec.map (CommRingCat.ofHom (TrivSqZeroExt.map (0 : M →ₗ[ℂ] ℂ)).toRingHom)) d |
| 27 | have hfgq : f q = g q := congrArg (fun a : Spec (.of (DualNumber ℂ)) ⟶ X => a d) (h 0) |
| 28 | obtain ⟨U, hU, hfU, _⟩ := exists_isAffineOpen_mem_and_subset |
| 29 | (show f q ∈ (⊤ : X.Opens) by trivial) |
| 30 | let : IsAffine U.toScheme := hU |
| 31 | have hRf : Set.range f ⊆ Set.range U.ι := by |
| 32 | rintro _ ⟨v, rfl⟩ |
| 33 | have hv : f v ∈ U := (congrArg f (Subsingleton.elim q v)) ▸ hfU |
| 34 | exact ⟨⟨f v, hv⟩, rfl⟩ |
| 35 | have hRg : Set.range g ⊆ Set.range U.ι := by |
| 36 | rintro _ ⟨v, rfl⟩ |
| 37 | have hv : g v ∈ U := (hfgq.trans (congrArg g (Subsingleton.elim q v))) ▸ hfU |
| 38 | exact ⟨⟨g v, hv⟩, rfl⟩ |
| 39 | let f' := IsOpenImmersion.lift U.ι f hRf |
| 40 | let g' := IsOpenImmersion.lift U.ι g hRg |
| 41 | have hf : f' ≫ U.ι = f := IsOpenImmersion.lift_fac U.ι f hRf |
| 42 | have hg : g' ≫ U.ι = g := IsOpenImmersion.lift_fac U.ι g hRg |
| 43 | have he : f' = g' := by |
| 44 | apply AffineDetection.squareZero_affine_maps_ext |
| 45 | intro l |
| 46 | apply (cancel_mono U.ι).mp |
| 47 | rw [Category.assoc, Category.assoc, hf, hg] |
| 48 | exact h l |
| 49 | exact hf.symm.trans ((congrArg (fun a => a ≫ U.ι) he).trans hg) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.RepresentationTheory.Theta.Geometric.SquareZero.SchemeDetection |