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.AbelianModuli.HilbertConstruction.Ample.AffinePullback |
| 2 | import Mathlib.RingTheory.Nilpotent.Lemmas |
| 3 | |
| 4 | /-! # Nilpotent Fiber Ampleness -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.NilpotentFiberAmpleness |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Ampleness on a closed nilpotent field reduction gives ampleness on |
| 11 | all field fibers, and a projective presentation for a proper flat family. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {R k : Type u} [CommRing R] [CommRing k] |
| 17 | (ρ : R →+* k) (hρ : Function.Surjective ρ) |
| 18 | (hker : ∀ a ∈ RingHom.ker ρ, IsNilpotent a) |
| 19 | |
| 20 | include hρ hker in |
| 21 | theorem field_factor {K : Type u} [Field K] (b : Spec (.of K) ⟶ Spec (.of R)) : |
| 22 | ∃ c : Spec (.of K) ⟶ Spec (.of k), c ≫ Spec.map (CommRingCat.ofHom ρ) = b := by |
| 23 | obtain ⟨φ, rfl⟩ := Spec.map_surjective b |
| 24 | have h : RingHom.ker ρ ≤ RingHom.ker φ.hom := by |
| 25 | intro a ha |
| 26 | exact (hker a ha).map φ.hom |>.eq_zero |
| 27 | let ψ := ρ.liftOfSurjective hρ ⟨φ.hom, h⟩ |
| 28 | refine ⟨Spec.map (CommRingCat.ofHom ψ), ?_⟩ |
| 29 | rw [← Spec.map_comp] |
| 30 | exact congrArg (fun f : R →+* K => Spec.map (CommRingCat.ofHom f)) |
| 31 | (ρ.liftOfSurjective_comp hρ ⟨φ.hom, h⟩) |
| 32 | |
| 33 | include hρ hker in |
| 34 | theorem reduction_surjective : Surjective (Spec.map (CommRingCat.ofHom ρ)) := by |
| 35 | constructor |
| 36 | change Function.Surjective (PrimeSpectrum.comap ρ) |
| 37 | rw [← Set.range_eq_univ, range_comap_of_surjective _ _ hρ] |
| 38 | apply Set.eq_univ_of_forall |
| 39 | intro x a ha |
| 40 | exact (nilpotent_iff_mem_prime.mp (hker a ha)) x.asIdeal x.isPrime |
| 41 | |
| 42 | variable {X Y : Scheme.{u}} (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of k)) |
| 43 | (i : Y ⟶ X) (hp : IsPullback i g f (Spec.map (CommRingCat.ofHom ρ))) |
| 44 | (L : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (hL : (L.pullback i).IsAmple) |
| 45 | |
| 46 | include hρ hker hp hL in |
| 47 | theorem field_ample {K : Type u} [Field K] (b : Spec (.of K) ⟶ Spec (.of R)) : |
| 48 | (L.pullback (pullback.fst f b)).IsAmple := by |
| 49 | obtain ⟨c, hc⟩ := field_factor ρ hρ hker b |
| 50 | have hs := (IsPullback.of_hasPullback g c).paste_horiz hp |
| 51 | rw [hc] at hs |
| 52 | let e := hs.isoPullback |
| 53 | let : IsAffineHom c := inferInstance |
| 54 | let : IsAffineHom (pullback.fst g c) := |
| 55 | isAffineHom_isStableUnderBaseChange.of_isPullback (IsPullback.of_hasPullback g c).flip inferInstance |
| 56 | have ha := hL.pullback_of_isAffineHom (pullback.fst g c) |
| 57 | have hb := ha.pullback_of_isAffineHom e.inv |
| 58 | apply hb.of_iso |
| 59 | exact (Scheme.Modules.pullbackComp e.inv (pullback.fst g c)).app (L.pullback i).sheaf ≪≫ |
| 60 | (Scheme.Modules.pullbackComp (e.inv ≫ pullback.fst g c) i).app L.sheaf ≪≫ |
| 61 | (Scheme.Modules.pullbackCongr (by |
| 62 | rw [Category.assoc] |
| 63 | exact hs.isoPullback_inv_fst)).app L.sheaf |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.NumberTheory.PadicHodge.IntegralComparison.NilpotentFiberAmpleness |