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.AlgebraIsomorphismNeighborhood |
| 2 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.IsIso |
| 4 | |
| 5 | /-! # Affine Isomorphism Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.AffineIsomorphismNeighborhood |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual affine scheme base-change projections that are isomorphisms |
| 12 | at a local spectrum extend to principal open neighborhoods. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | variable {R A : Type u} [CommRing R] [CommRing A] [Algebra R A] |
| 18 | |
| 19 | theorem affineAlgebra_baseChange_isIso_iff |
| 20 | (B : Type u) [CommRing B] [Algebra R B] : |
| 21 | IsIso (pullback.fst (Spec.map (CommRingCat.ofHom (algebraMap R B))) |
| 22 | (Spec.map (CommRingCat.ofHom (algebraMap R A)))) ↔ |
| 23 | Function.Bijective (algebraMap B (B ⊗[R] A)) := by |
| 24 | rw [← isIso_comp_left_iff (pullbackSpecIso R B A).inv, |
| 25 | pullbackSpecIso_inv_fst', isIso_SpecMap_iff] |
| 26 | rfl |
| 27 | |
| 28 | theorem exists_principalOpen_affine_isomorphism [IsNoetherianRing R] [Module.Finite R A] |
| 29 | (p : PrimeSpectrum R) |
| 30 | (hp : IsIso (pullback.fst |
| 31 | (Spec.map (CommRingCat.ofHom (algebraMap R (Localization.AtPrime p.asIdeal)))) |
| 32 | (Spec.map (CommRingCat.ofHom (algebraMap R A))))) : |
| 33 | ∃ r ∉ p.asIdeal, IsIso (pullback.fst |
| 34 | (Spec.map (CommRingCat.ofHom (algebraMap R (Localization.Away r)))) |
| 35 | (Spec.map (CommRingCat.ofHom (algebraMap R A)))) := by |
| 36 | obtain ⟨r, hr, h⟩ := AlgebraIsomorphismNeighborhood.exists_principalOpen_algebra_isomorphism (A := A) p |
| 37 | ((affineAlgebra_baseChange_isIso_iff (R := R) (A := A) (Localization.AtPrime p.asIdeal)).mp hp) |
| 38 | exact ⟨r, hr, (affineAlgebra_baseChange_isIso_iff (R := R) (A := A) (Localization.Away r)).mpr h⟩ |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.AffineIsomorphismNeighborhood |