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.HilbertScheme.Presentations.Principal.AffineIsomorphismNeighborhood |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.PullbackIsomorphismTransport |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 4 | |
| 5 | /-! # Affine Base Isomorphism Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.AffineBaseIsomorphismNeighborhood |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite morphism over a noetherian affine base that is an |
| 12 | isomorphism over a local spectrum is so over a principal neighborhood. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 18 | variable {X : Scheme.{u}} (f : X ⟶ Spec (.of R)) [IsFinite f] |
| 19 | |
| 20 | theorem exists_principalOpen_finite_morphism_isomorphism (p : PrimeSpectrum R) |
| 21 | (hp : IsIso (pullback.fst |
| 22 | (Spec.map (CommRingCat.ofHom (algebraMap R (Localization.AtPrime p.asIdeal)))) f)) : |
| 23 | ∃ r ∉ p.asIdeal, IsIso (pullback.fst |
| 24 | (Spec.map (CommRingCat.ofHom (algebraMap R (Localization.Away r)))) f) := by |
| 25 | let : IsAffine X := isAffine_of_isAffineHom f |
| 26 | let A : Type u := Γ(X, ⊤) |
| 27 | let e : Spec (.of A) ≅ X := X.isoSpec.symm |
| 28 | let φ : R →+* A := (Spec.preimage (e.hom ≫ f)).hom |
| 29 | let : Algebra R A := φ.toAlgebra |
| 30 | have he : Spec.map (CommRingCat.ofHom (algebraMap R A)) = e.hom ≫ f := |
| 31 | Spec.map_preimage (e.hom ≫ f) |
| 32 | have hf : IsFinite (Spec.map (CommRingCat.ofHom (algebraMap R A))) := by |
| 33 | rw [he] |
| 34 | infer_instance |
| 35 | let : Module.Finite R A := (IsFinite.SpecMap_iff _).mp hf |
| 36 | have hp' : IsIso (pullback.fst |
| 37 | (Spec.map (CommRingCat.ofHom (algebraMap R (Localization.AtPrime p.asIdeal)))) |
| 38 | (Spec.map (CommRingCat.ofHom (algebraMap R A)))) := by |
| 39 | rw [he, PullbackIsomorphismTransport.isIso_pullback_fst_comp_right_iff] |
| 40 | exact hp |
| 41 | obtain ⟨r, hr, h⟩ := Principal.AffineIsomorphismNeighborhood.exists_principalOpen_affine_isomorphism (A := A) p hp' |
| 42 | rw [he, PullbackIsomorphismTransport.isIso_pullback_fst_comp_right_iff] at h |
| 43 | exact ⟨r, hr, h⟩ |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.AffineBaseIsomorphismNeighborhood |