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.ArithmeticGeometry.OrdinaryLocus.Openness.FieldPointCount |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.GenericFiberAlgebra |
| 3 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.GenericPointCount |
| 4 | import Mathlib.AlgebraicGeometry.FunctionField |
| 5 | |
| 6 | /-! # Affine Generic Point Count -/ |
| 7 | |
| 8 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineGenericPointCount.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The generic geometric point count of a finite map of affine integral schemes. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem geometricPointCard_spec_generic |
| 20 | (R B : Type u) [CommRing R] [IsDomain R] [CommRing B] [IsDomain B] |
| 21 | [Algebra R B] [FaithfulSMul R B] [Module.Finite R B] : |
| 22 | let K := (⊥ : Ideal R).ResidueField |
| 23 | letI := (GenericFiberAlgebra.Construction.isField_genericFiberAlgebra R B K).toField |
| 24 | Nat.card (DefinitionsTorsion.geometricPoint (Spec (.of R)) (⊥ : PrimeSpectrum R) ⟶ |
| 25 | Over.mk (Spec.map (CommRingCat.ofHom (algebraMap R B)))) = |
| 26 | Field.finSepDegree K (K ⊗[R] B) := by |
| 27 | let K := (⊥ : Ideal R).ResidueField |
| 28 | let : Field (K ⊗[R] B) := (GenericFiberAlgebra.Construction.isField_genericFiberAlgebra R B K).toField |
| 29 | let p : Spec (.of R) := (⊥ : PrimeSpectrum R) |
| 30 | let C := AlgebraicClosure ((Spec (.of R)).residueField p) |
| 31 | let e := Scheme.Spec.residueFieldIso (.of R) p |
| 32 | let : Algebra K C := |
| 33 | ((algebraMap ((Spec (.of R)).residueField p) C).comp e.inv.hom).toAlgebra |
| 34 | let : Algebra R C := ((algebraMap K C).comp (algebraMap R K)).toAlgebra |
| 35 | have : IsScalarTower R K C := IsScalarTower.of_algebraMap_eq' rfl |
| 36 | have ht : Spec.map (CommRingCat.ofHom (algebraMap R C)) = |
| 37 | (DefinitionsTorsion.geometricPoint (Spec (.of R)) p).hom := by |
| 38 | change Spec.map ((CommRingCat.ofHom (algebraMap R K) ≫ e.inv) ≫ |
| 39 | CommRingCat.ofHom (algebraMap ((Spec (.of R)).residueField p) C)) = _ |
| 40 | have hinner : Spec.map (CommRingCat.ofHom (algebraMap R K) ≫ e.inv) = |
| 41 | (Spec (.of R)).fromSpecResidueField p := |
| 42 | (Spec.map_comp _ _).trans |
| 43 | (Scheme.Spec.map_residueFieldIso_inv_eq_fromSpecResidueField (.of R) p) |
| 44 | exact (Spec.map_comp _ _).trans (congrArg (fun f => |
| 45 | Spec.map (CommRingCat.ofHom (algebraMap ((Spec (.of R)).residueField p) C)) ≫ f) |
| 46 | hinner) |
| 47 | have he := AffinePointCard.Construction.specPointsEquivAlgHom R B C |
| 48 | rw [ht] at he |
| 49 | exact (Nat.card_congr (he.trans (AlgHom.liftEquiv R K B C))).trans |
| 50 | (Field.finSepDegree_eq_of_isAlgClosed K (K ⊗[R] B) C).symm |
| 51 | |
| 52 | /-- Every geometric fiber of a finite flat affine map has at most the |
| 53 | separable degree of its generic fiber. -/ |
| 54 | theorem geometricPointCard_spec_le_generic_degree |
| 55 | (R B : Type u) [CommRing R] [IsDomain R] [CommRing B] [IsDomain B] |
| 56 | [Algebra R B] [FaithfulSMul R B] [Module.Finite R B] [Module.Flat R B] |
| 57 | [Algebra.FinitePresentation R B] (s : Spec (.of R)) : |
| 58 | let K := (⊥ : Ideal R).ResidueField |
| 59 | letI := (GenericFiberAlgebra.Construction.isField_genericFiberAlgebra R B K).toField |
| 60 | Nat.card (DefinitionsTorsion.geometricPoint (Spec (.of R)) s ⟶ |
| 61 | Over.mk (Spec.map (CommRingCat.ofHom (algebraMap R B)))) ≤ |
| 62 | Field.finSepDegree K (K ⊗[R] B) := by |
| 63 | let f : Spec (.of B) ⟶ Spec (.of R) := Spec.map (CommRingCat.ofHom (algebraMap R B)) |
| 64 | have : IsFinite f := (IsFinite.SpecMap_iff _).mpr (by |
| 65 | change (algebraMap R B).Finite |
| 66 | exact RingHom.finite_algebraMap.mpr inferInstance) |
| 67 | have : Flat f := Flat.SpecMap_iff.mpr (by |
| 68 | change (algebraMap R B).Flat |
| 69 | exact RingHom.flat_algebraMap_iff.mpr inferInstance) |
| 70 | have : LocallyOfFinitePresentation f := |
| 71 | (HasRingHomProperty.Spec_iff (P := @LocallyOfFinitePresentation)).mpr (by |
| 72 | change (algebraMap R B).FinitePresentation |
| 73 | exact RingHom.finitePresentation_algebraMap.mpr inferInstance) |
| 74 | have h := @GenericPointCount.Construction.geometricPointCard_le_generic (Spec (.of R)) inferInstance |
| 75 | (Over.mk f) ‹IsFinite f› ‹Flat f› ‹LocallyOfFinitePresentation f› s |
| 76 | rw [genericPoint_eq_bot_of_affine] at h |
| 77 | exact h.trans_eq (geometricPointCard_spec_generic R B) |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineGenericPointCount.Construction |