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.FormalGeometry.Completion.Finite.GenericFlatness |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.FlatTranslation |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.SchemeSmooth |
| 4 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 5 | |
| 6 | /-! # Group Hom Flat -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.GroupHomFlat.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A finite surjective homomorphism of geometric algebraic groups is flat over a smooth target. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open MonoidalCategory CartesianMonoidalCategory MonObj |
| 16 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {S : Scheme.{u}} {A B : Over S} [GrpObj A] [GrpObj B] |
| 24 | |
| 25 | /-- An actual group homomorphism intertwines translation with translation by the image point. -/ |
| 26 | theorem groupHom_translation (f : A ⟶ B) [IsMonHom f] (b : 𝟙_ (Over S) ⟶ A) : |
| 27 | (GrpObj.mulRight b).hom ≫ f = f ≫ (GrpObj.mulRight (b ≫ f)).hom := by |
| 28 | change (𝟙 A * (toUnit A ≫ b)) ≫ f = f ≫ (𝟙 B * (toUnit B ≫ (b ≫ f))) |
| 29 | rw [MonObj.mul_comp, Category.id_comp, MonObj.comp_mul, Category.comp_id] |
| 30 | simp only [← Category.assoc, comp_toUnit] |
| 31 | |
| 32 | variable {K : Type u} [Field K] [IsAlgClosed K] |
| 33 | {A B : Over (Spec (CommRingCat.of K))} [GrpObj A] [GrpObj B] |
| 34 | [LocallyOfFiniteType A.hom] |
| 35 | |
| 36 | /-- Translation gives commuting automorphisms carrying any closed source point to another. -/ |
| 37 | theorem groupHom_transitive_automorphisms (f : A ⟶ B) [IsMonHom f] |
| 38 | (x y : A.left) (hx : IsClosed {x}) (hy : IsClosed {y}) : |
| 39 | ∃ (α : A.left ≅ A.left) (β : B.left ≅ B.left), |
| 40 | α.hom x = y ∧ α.hom ≫ f.left = f.left ≫ β.hom := by |
| 41 | let x' : 𝟙_ (Over (Spec (CommRingCat.of K))) ⟶ A := |
| 42 | Over.homMk (pointOfClosedPoint A.hom x hx) (pointOfClosedPoint_comp A.hom x hx) |
| 43 | let y' : 𝟙_ (Over (Spec (CommRingCat.of K))) ⟶ A := |
| 44 | Over.homMk (pointOfClosedPoint A.hom y hy) (pointOfClosedPoint_comp A.hom y hy) |
| 45 | let b := x'⁻¹ * y' |
| 46 | let α := (Over.forget _).mapIso (GrpObj.mulRight b) |
| 47 | let β := (Over.forget _).mapIso (GrpObj.mulRight (b ≫ f)) |
| 48 | have hxy : x' ≫ (GrpObj.mulRight b).hom = y' := by |
| 49 | change x' ≫ (𝟙 A * (toUnit A ≫ b)) = y' |
| 50 | rw [MonObj.comp_mul, Category.comp_id, ← Category.assoc, |
| 51 | comp_toUnit, toUnit_unit, Category.id_comp] |
| 52 | exact mul_inv_cancel_left x' y' |
| 53 | refine ⟨α, β, ?_, congrArg Over.Hom.left (groupHom_translation f b)⟩ |
| 54 | have h : x'.left ≫ α.hom = y'.left := congrArg Over.Hom.left hxy |
| 55 | have he := congrArg (fun z : Spec (CommRingCat.of K) ⟶ A.left => |
| 56 | z (IsLocalRing.closedPoint K)) h |
| 57 | change α.hom (x'.left (IsLocalRing.closedPoint K)) = y'.left (IsLocalRing.closedPoint K) at he |
| 58 | have hx' : x'.left (IsLocalRing.closedPoint K) = x := pointOfClosedPoint_apply A.hom x hx _ |
| 59 | have hy' : y'.left (IsLocalRing.closedPoint K) = y := pointOfClosedPoint_apply A.hom y hy _ |
| 60 | rw [hx', hy'] at he |
| 61 | exact he |
| 62 | |
| 63 | /-- Generic freeness and group translations prove flatness of the actual finite surjective map. -/ |
| 64 | theorem finite_surjective_groupHom_flat [Smooth B.hom] |
| 65 | (f : A ⟶ B) [IsMonHom f] [IsFinite f.left] [Surjective f.left] : Flat f.left := by |
| 66 | have : JacobsonSpace A.left := LocallyOfFiniteType.jacobsonSpace A.hom |
| 67 | have : IsReduced B.left := Quotients.FiniteDescent.SchemeSmooth.Construction.SchemeSmoothReduced.reduced_of_smooth_field B.hom |
| 68 | have : Nonempty B.left := ⟨(η[B]).left (IsLocalRing.closedPoint K)⟩ |
| 69 | have : IsLocallyNoetherian B.left := LocallyOfFiniteType.isLocallyNoetherian B.hom |
| 70 | obtain ⟨U, hU, hflat⟩ := GenericFlatness.Construction.exists_nonempty_flat_source_open_of_reduced f.left |
| 71 | have : Flat (U.ι ≫ f.left) := hflat |
| 72 | exact FlatTranslation.Construction.flat_of_transitive_automorphisms f.left (groupHom_transitive_automorphisms f) U hU |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.GroupHomFlat.Construction |