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.Quotients.FiniteDescent.ProductBaseAxes |
| 2 | import Mathlib.AlgebraicGeometry.Group.Abelian |
| 3 | |
| 4 | /-! # Constant Product Coordinates -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ConstantProductCoordinates.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The product of two constant families as an actual scheme over the original field. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | open CartesianMonoidalCategory MonoidalCategory |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {K : Type u} [Field K] (A B S : Over (Spec (.of K))) |
| 18 | |
| 19 | abbrev constantLeftBase : (A ⊗ S).left ⟶ S.left := (snd A S).left |
| 20 | abbrev constantRightBase : (B ⊗ S).left ⟶ S.left := (snd B S).left |
| 21 | |
| 22 | abbrev constantProductProjection : pullback (constantLeftBase A S) (constantRightBase B S) ⟶ S.left := |
| 23 | pullback.fst (constantLeftBase A S) (constantRightBase B S) ≫ constantLeftBase A S |
| 24 | |
| 25 | abbrev constantProduct : Over (Spec (.of K)) := Over.mk (constantProductProjection A B S ≫ S.hom) |
| 26 | |
| 27 | def constantProductLeft : constantProduct A B S ⟶ A ⊗ S := |
| 28 | Over.homMk (pullback.fst (constantLeftBase A S) (constantRightBase B S)) (by |
| 29 | rw [← Over.w (snd A S)] |
| 30 | exact (Category.assoc _ _ _).symm) |
| 31 | |
| 32 | def constantProductRight : constantProduct A B S ⟶ B ⊗ S := |
| 33 | Over.homMk (pullback.snd (constantLeftBase A S) (constantRightBase B S)) (by |
| 34 | rw [← Over.w (snd B S), ← Category.assoc, ← pullback.condition] |
| 35 | rfl) |
| 36 | |
| 37 | def constantProductBase : constantProduct A B S ⟶ S := |
| 38 | Over.homMk (constantProductProjection A B S) |
| 39 | |
| 40 | theorem constantProductLeft_base : constantProductLeft A B S ≫ snd A S = constantProductBase A B S := by |
| 41 | ext1 |
| 42 | rfl |
| 43 | |
| 44 | theorem constantProductRight_base : constantProductRight A B S ≫ snd B S = constantProductBase A B S := by |
| 45 | ext1 |
| 46 | exact pullback.condition.symm |
| 47 | |
| 48 | def constantFamilySection (sA : 𝟙_ (Over (Spec (.of K))) ⟶ A) : S ⟶ A ⊗ S := |
| 49 | lift (toUnit S ≫ sA) (𝟙 S) |
| 50 | |
| 51 | theorem constantFamilySection_base (sA : 𝟙_ (Over (Spec (.of K))) ⟶ A) : |
| 52 | constantFamilySection A S sA ≫ snd A S = 𝟙 S := lift_snd _ _ |
| 53 | |
| 54 | theorem constantFamilySection_factor (sA : 𝟙_ (Over (Spec (.of K))) ⟶ A) : |
| 55 | constantFamilySection A S sA ≫ fst A S = toUnit S ≫ sA := lift_fst _ _ |
| 56 | |
| 57 | def constantProductLeftAxis (sB : 𝟙_ (Over (Spec (.of K))) ⟶ B) : A ⊗ S ⟶ constantProduct A B S := |
| 58 | Over.homMk (OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProductBaseAxes.Construction.ProductBaseChangeAxes.left (constantLeftBase A S) (constantRightBase B S) |
| 59 | (constantFamilySection B S sB).left (congrArg Over.Hom.left (constantFamilySection_base B S sB))) (by |
| 60 | have h := OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProductBaseAxes.Construction.ProductBaseChangeAxes.left_over (constantLeftBase A S) (constantRightBase B S) |
| 61 | (constantFamilySection B S sB).left (congrArg Over.Hom.left (constantFamilySection_base B S sB)) |
| 62 | exact (Category.assoc _ _ _).symm.trans |
| 63 | ((congrArg (fun m : (A ⊗ S).left ⟶ S.left ↦ m ≫ S.hom) h).trans (Over.w (snd A S)))) |
| 64 | |
| 65 | def constantProductRightAxis (sA : 𝟙_ (Over (Spec (.of K))) ⟶ A) : B ⊗ S ⟶ constantProduct A B S := |
| 66 | Over.homMk (OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProductBaseAxes.Construction.ProductBaseChangeAxes.right (constantLeftBase A S) (constantRightBase B S) |
| 67 | (constantFamilySection A S sA).left (congrArg Over.Hom.left (constantFamilySection_base A S sA))) (by |
| 68 | have h := OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProductBaseAxes.Construction.ProductBaseChangeAxes.right_over (constantLeftBase A S) (constantRightBase B S) |
| 69 | (constantFamilySection A S sA).left (congrArg Over.Hom.left (constantFamilySection_base A S sA)) |
| 70 | exact (Category.assoc _ _ _).symm.trans |
| 71 | ((congrArg (fun m : (B ⊗ S).left ⟶ S.left ↦ m ≫ S.hom) h).trans (Over.w (snd B S)))) |
| 72 | |
| 73 | theorem constantProductLeftAxis_left (sB : 𝟙_ (Over (Spec (.of K))) ⟶ B) : |
| 74 | constantProductLeftAxis A B S sB ≫ constantProductLeft A B S = 𝟙 (A ⊗ S) := by |
| 75 | apply Over.OverMorphism.ext |
| 76 | exact pullback.lift_fst (f := constantLeftBase A S) (g := constantRightBase B S) _ _ _ |
| 77 | |
| 78 | theorem constantProductLeftAxis_right (sB : 𝟙_ (Over (Spec (.of K))) ⟶ B) : |
| 79 | constantProductLeftAxis A B S sB ≫ constantProductRight A B S = snd A S ≫ constantFamilySection B S sB := by |
| 80 | apply Over.OverMorphism.ext |
| 81 | exact pullback.lift_snd (f := constantLeftBase A S) (g := constantRightBase B S) _ _ _ |
| 82 | |
| 83 | theorem constantProductRightAxis_left (sA : 𝟙_ (Over (Spec (.of K))) ⟶ A) : |
| 84 | constantProductRightAxis A B S sA ≫ constantProductLeft A B S = snd B S ≫ constantFamilySection A S sA := by |
| 85 | apply Over.OverMorphism.ext |
| 86 | exact pullback.lift_fst (f := constantLeftBase A S) (g := constantRightBase B S) _ _ _ |
| 87 | |
| 88 | theorem constantProductRightAxis_right (sA : 𝟙_ (Over (Spec (.of K))) ⟶ A) : |
| 89 | constantProductRightAxis A B S sA ≫ constantProductRight A B S = 𝟙 (B ⊗ S) := by |
| 90 | apply Over.OverMorphism.ext |
| 91 | exact pullback.lift_snd (f := constantLeftBase A S) (g := constantRightBase B S) _ _ _ |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ConstantProductCoordinates.Construction |