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.Geometric.MapFaithful |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms |
| 3 | import Mathlib.RingTheory.Flat.Basic |
| 4 | import Mathlib.RingTheory.Flat.Localization |
| 5 | import Mathlib.RingTheory.Localization.FractionRing |
| 6 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 7 | import Mathlib.LinearAlgebra.FiniteDimensional.Defs |
| 8 | |
| 9 | /-! # Geometric Embedding -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.GeometricEmbedding |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Actual endomorphisms, and their rationalizations, inject into the |
| 16 | endomorphisms after geometric base change. -/ |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 22 | open scoped _root_.CategoryTheory.Obj |
| 23 | |
| 24 | namespace Construction |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | variable (K : Type u) [Field K] |
| 29 | (A : Over (Spec (CommRingCat.of K))) [GrpObj A] [IsCommMonObj A] |
| 30 | |
| 31 | def algebraicEndGeometricBaseChange : Endomorphisms.Construction.AlgebraicEnd A →+* Endomorphisms.Construction.AlgebraicEnd (Geometric.Frobenius.Construction.geometricFiberOver K A) where |
| 32 | toFun f := Additive.ofMul (Grp.ofHom |
| 33 | ((Over.pullback (Geometric.Frobenius.Construction.algebraicClosureBase K)).map f.toMul.hom.hom)) |
| 34 | map_one' := by |
| 35 | apply Grp.hom_ext |
| 36 | exact (Over.pullback (Geometric.Frobenius.Construction.algebraicClosureBase K)).map_id A |
| 37 | map_mul' f g := by |
| 38 | apply Grp.hom_ext |
| 39 | exact (Over.pullback (Geometric.Frobenius.Construction.algebraicClosureBase K)).map_comp g.toMul.hom.hom f.toMul.hom.hom |
| 40 | map_zero' := by |
| 41 | apply Grp.hom_ext |
| 42 | exact (Over.pullback (Geometric.Frobenius.Construction.algebraicClosureBase K)).map_one |
| 43 | map_add' f g := by |
| 44 | apply Grp.hom_ext |
| 45 | exact (Over.pullback (Geometric.Frobenius.Construction.algebraicClosureBase K)).map_mul f.toMul.hom.hom g.toMul.hom.hom |
| 46 | |
| 47 | theorem algebraicEndGeometricBaseChange_injective : |
| 48 | Function.Injective (algebraicEndGeometricBaseChange K A) := by |
| 49 | intro f g h |
| 50 | have he := congrArg (fun t : Endomorphisms.Construction.AlgebraicEnd (Geometric.Frobenius.Construction.geometricFiberOver K A) => t.toMul.hom.hom.left) h |
| 51 | have hfg := Geometric.MapFaithful.Construction.geometricFiberMap_injective K he |
| 52 | apply Additive.toMul.injective |
| 53 | apply Grp.hom_ext |
| 54 | exact hfg |
| 55 | |
| 56 | def rationalAlgebraicEndGeometricEmbedding : |
| 57 | Endomorphisms.Construction.RationalAlgebraicEnd A →ₗ[ℚ] Endomorphisms.Construction.RationalAlgebraicEnd (Geometric.Frobenius.Construction.geometricFiberOver K A) := by |
| 58 | let : Ring (Endomorphisms.Construction.AlgebraicEnd (Geometric.Frobenius.Construction.geometricFiberOver K A)) := Endomorphisms.Construction.algebraicEndRing _ |
| 59 | exact (algebraicEndGeometricBaseChange K A).toIntAlgHom.toLinearMap.baseChange ℚ |
| 60 | |
| 61 | theorem rationalAlgebraicEndGeometricEmbedding_injective : |
| 62 | Function.Injective (rationalAlgebraicEndGeometricEmbedding K A) := by |
| 63 | let : Ring (Endomorphisms.Construction.AlgebraicEnd (Geometric.Frobenius.Construction.geometricFiberOver K A)) := Endomorphisms.Construction.algebraicEndRing _ |
| 64 | have : Module.Flat ℤ ℚ := IsLocalization.flat ℚ (nonZeroDivisors ℤ) |
| 65 | unfold rationalAlgebraicEndGeometricEmbedding |
| 66 | rw [LinearMap.baseChange_eq_ltensor] |
| 67 | exact Module.Flat.lTensor_preserves_injective_linearMap _ |
| 68 | (algebraicEndGeometricBaseChange_injective K A) |
| 69 | |
| 70 | theorem rationalAlgebraicEnd_finiteDimensional_of_geometric |
| 71 | [FiniteDimensional ℚ (Endomorphisms.Construction.RationalAlgebraicEnd (Geometric.Frobenius.Construction.geometricFiberOver K A))] : |
| 72 | FiniteDimensional ℚ (Endomorphisms.Construction.RationalAlgebraicEnd A) := |
| 73 | FiniteDimensional.of_injective (rationalAlgebraicEndGeometricEmbedding K A) |
| 74 | (rationalAlgebraicEndGeometricEmbedding_injective K A) |
| 75 | |
| 76 | end Construction |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.GeometricEmbedding |