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.ReferenceFamily.FlatModuleRankOpen |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.CoefficientPoints |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Immersion |
| 4 | |
| 5 | /-! # Flat Rank Locus -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.FlatRankLocus |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The clopen rank locus of a finite projective module over the global |
| 12 | functions of an affine scheme classifies all test schemes using their |
| 13 | actual scheme-point coefficient homomorphisms. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | theorem exists_affine_flat_module_rank_locus (X : Scheme.{0}) [IsAffine X] |
| 19 | (V : Type) [AddCommGroup V] [Module Γ(X, ⊤) V] |
| 20 | [Module.Flat Γ(X, ⊤) V] [Module.FinitePresentation Γ(X, ⊤) V] (r : ℕ) : |
| 21 | ∃ (Z : Scheme.{0}) (j : Z ⟶ X), IsOpenImmersion j ∧ IsClosedImmersion j ∧ |
| 22 | ∀ (T : Scheme.{0}) (f : T ⟶ X), |
| 23 | (∀ (k : Type) [Field k] [IsAlgClosed k] (p : Spec (.of k) ⟶ T), |
| 24 | letI : Algebra Γ(X, ⊤) k := (HilbertScheme.Presentations.PointCoefficients.schemePointCoefficientMap (p ≫ f)).toAlgebra |
| 25 | Module.finrank k (k ⊗[Γ(X, ⊤)] V) = r) ↔ |
| 26 | ∃! q : T ⟶ Z, q ≫ j = f := by |
| 27 | let U := FlatModuleRankOpen.flatModuleRankOpen (R := Γ(X, ⊤)) V r |
| 28 | let : IsClosedImmersion U.ι := IsClosedImmersion.of_isPreimmersion U.ι (by |
| 29 | rw [Scheme.Opens.range_ι] |
| 30 | exact FlatModuleRankOpen.flatModuleRankOpen_isClosed V r) |
| 31 | let j : U.toScheme ⟶ X := U.ι ≫ inv X.toSpecΓ |
| 32 | refine ⟨U.toScheme, j, inferInstance, inferInstance, ?_⟩ |
| 33 | intro T f |
| 34 | have hpred : |
| 35 | (∀ (k : Type) [Field k] [IsAlgClosed k] (p : Spec (.of k) ⟶ T), |
| 36 | letI : Algebra Γ(X, ⊤) k := (HilbertScheme.Presentations.PointCoefficients.schemePointCoefficientMap (p ≫ f)).toAlgebra |
| 37 | Module.finrank k (k ⊗[Γ(X, ⊤)] V) = r) ↔ |
| 38 | (∀ (k : Type) [Field k] [IsAlgClosed k] (p : Spec (.of k) ⟶ T), |
| 39 | letI : Algebra Γ(X, ⊤) k := (Spec.preimage (p ≫ (f ≫ X.toSpecΓ))).hom.toAlgebra |
| 40 | Module.finrank k (k ⊗[Γ(X, ⊤)] V) = r) := by |
| 41 | constructor |
| 42 | · intro h k hk ha p |
| 43 | rw [← Category.assoc, CoefficientPoints.schemePointCoefficientMap_preimage] |
| 44 | exact h k p |
| 45 | · intro h k hk ha p |
| 46 | have hp := h k p |
| 47 | rw [← Category.assoc, CoefficientPoints.schemePointCoefficientMap_preimage] at hp |
| 48 | exact hp |
| 49 | refine hpred.trans ((FlatModuleRankOpen.flatModuleRankOpen_classifies V r (f ≫ X.toSpecΓ)).trans ?_) |
| 50 | have hlift (q : T ⟶ U.toScheme) : q ≫ U.ι = f ≫ X.toSpecΓ ↔ q ≫ j = f := by |
| 51 | constructor |
| 52 | · intro h |
| 53 | change q ≫ U.ι ≫ inv X.toSpecΓ = f |
| 54 | rw [← Category.assoc, h, Category.assoc, IsIso.hom_inv_id, Category.comp_id] |
| 55 | · intro h |
| 56 | have he := congrArg (fun a : T ⟶ X => a ≫ X.toSpecΓ) h |
| 57 | change (q ≫ U.ι ≫ inv X.toSpecΓ) ≫ X.toSpecΓ = f ≫ X.toSpecΓ at he |
| 58 | simpa only [Category.assoc, IsIso.inv_hom_id, Category.comp_id] using he |
| 59 | exact existsUnique_congr hlift |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.FlatRankLocus |