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.Cycles.Functoriality.SupportFields |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ImmersionComplexPoints |
| 3 | |
| 4 | /-! # Residue Degree -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Cycles.Functoriality.ResidueDegree.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | /-- Inserting an immersion after a morphism does not change residue degree. -/ |
| 15 | theorem residueDegree_post_immersion {A B C : Scheme.{u}} |
| 16 | (f : A ⟶ B) (i : B ⟶ C) [SurjectiveOnStalks i] (x : A) : |
| 17 | (f ≫ i).residueDegree x = f.residueDegree x := by |
| 18 | let : Algebra (C.residueField (i (f x))) (A.residueField x) := |
| 19 | ((f ≫ i).residueFieldMap x).hom.toAlgebra |
| 20 | let : Algebra (B.residueField (f x)) (A.residueField x) := |
| 21 | (f.residueFieldMap x).hom.toAlgebra |
| 22 | apply Algebra.finrank_eq_of_equiv_equiv |
| 23 | (Foundations.Scheme.ImmersionComplexPoints.residueFieldIsoOfSurjectiveOnStalks i (f x)).commRingCatIsoToRingEquiv |
| 24 | (RingEquiv.refl (A.residueField x)) |
| 25 | exact congrArg CommRingCat.Hom.hom (Scheme.residueFieldMap_comp f i x).symm |
| 26 | |
| 27 | /-- Inserting an immersion before a morphism identifies the source residue |
| 28 | fields and therefore leaves the degree unchanged. -/ |
| 29 | theorem residueDegree_pre_immersion {A B C : Scheme.{u}} |
| 30 | (i : A ⟶ B) (f : B ⟶ C) [SurjectiveOnStalks i] (x : A) : |
| 31 | (i ≫ f).residueDegree x = f.residueDegree (i x) := by |
| 32 | let : Algebra (C.residueField (f (i x))) (B.residueField (i x)) := |
| 33 | (f.residueFieldMap (i x)).hom.toAlgebra |
| 34 | let : Algebra (C.residueField (f (i x))) (A.residueField x) := |
| 35 | ((i ≫ f).residueFieldMap x).hom.toAlgebra |
| 36 | symm |
| 37 | apply Algebra.finrank_eq_of_equiv_equiv |
| 38 | (RingEquiv.refl (C.residueField (f (i x)))) |
| 39 | (Foundations.Scheme.ImmersionComplexPoints.residueFieldIsoOfSurjectiveOnStalks i x).commRingCatIsoToRingEquiv |
| 40 | exact congrArg CommRingCat.Hom.hom (Scheme.residueFieldMap_comp i f x) |
| 41 | |
| 42 | theorem supportImageMap_residueDegree {X Y : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} |
| 43 | (f : X.toOver ⟶ Y.toOver) (hf : IsProper f.left) |
| 44 | {p : ℕ} (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport X p) : |
| 45 | (SupportMap.Construction.supportImageMap f hf Z).residueDegree (genericPoint Z.scheme) = |
| 46 | f.left.residueDegree Z.genericPoint := by |
| 47 | have h := congrArg |
| 48 | (fun k : Z.scheme ⟶ Y.carrier => k.residueDegree (genericPoint Z.scheme)) |
| 49 | (SupportMap.Construction.supportImageMap_inclusion f hf Z) |
| 50 | rw [residueDegree_post_immersion, residueDegree_pre_immersion, |
| 51 | Z.inclusion_genericPoint] at h |
| 52 | exact h |
| 53 | |
| 54 | /-- At an integral scheme's generic point, quotienting its function-field |
| 55 | stalk by the maximal ideal is a canonical field isomorphism. -/ |
| 56 | def functionFieldResidueIso (S : Scheme.{u}) [IsIntegral S] : |
| 57 | S.functionField ≅ S.residueField (genericPoint S) := |
| 58 | (RingEquiv.ofBijective (S.residue (genericPoint S)).hom |
| 59 | ⟨(show S.functionField →+* S.residueField (genericPoint S) from |
| 60 | (S.residue (genericPoint S)).hom).injective, |
| 61 | S.residue_surjective (genericPoint S)⟩).toCommRingCatIso |
| 62 | |
| 63 | theorem functionFieldResidueIso_hom (S : Scheme.{u}) [IsIntegral S] : |
| 64 | (functionFieldResidueIso S).hom = S.residue (genericPoint S) := rfl |
| 65 | |
| 66 | /-- Naturality of residue maps identifies generic-field pullback with |
| 67 | the residue-field pullback of the same morphism. -/ |
| 68 | theorem genericFieldMap_residue_square {S T : Scheme.{u}} |
| 69 | [IsIntegral S] [IsIntegral T] (i : S ⟶ T) |
| 70 | (hη : i (genericPoint S) = genericPoint T) : |
| 71 | (functionFieldResidueIso T).hom ≫ (T.residueFieldCongr hη.symm).hom ≫ |
| 72 | i.residueFieldMap (genericPoint S) = |
| 73 | FunctionFields.Construction.genericFieldMap i hη ≫ (functionFieldResidueIso S).hom := by |
| 74 | change T.residue (genericPoint T) ≫ (T.residueFieldCongr hη.symm).hom ≫ |
| 75 | i.residueFieldMap (genericPoint S) = |
| 76 | (T.presheaf.stalkCongr (Inseparable.of_eq hη.symm)).hom ≫ |
| 77 | i.stalkMap (genericPoint S) ≫ S.residue (genericPoint S) |
| 78 | rw [← Category.assoc, Scheme.residue_residueFieldCongr, |
| 79 | Category.assoc, Scheme.residue_residueFieldMap] |
| 80 | |
| 81 | theorem genericFieldMap_finrank_eq_residueDegree {S T : Scheme.{u}} |
| 82 | [IsIntegral S] [IsIntegral T] (i : S ⟶ T) |
| 83 | (hη : i (genericPoint S) = genericPoint T) : |
| 84 | letI := (FunctionFields.Construction.genericFieldMap i hη).hom.toAlgebra |
| 85 | Module.finrank T.functionField S.functionField = i.residueDegree (genericPoint S) := by |
| 86 | let := (FunctionFields.Construction.genericFieldMap i hη).hom.toAlgebra |
| 87 | let := (i.residueFieldMap (genericPoint S)).hom.toAlgebra |
| 88 | apply Algebra.finrank_eq_of_equiv_equiv |
| 89 | ((functionFieldResidueIso T) ≪≫ T.residueFieldCongr hη.symm).commRingCatIsoToRingEquiv |
| 90 | (functionFieldResidueIso S).commRingCatIsoToRingEquiv |
| 91 | exact congrArg CommRingCat.Hom.hom (genericFieldMap_residue_square i hη) |
| 92 | |
| 93 | theorem supportFunctionField_finrank_eq {X Y : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} |
| 94 | (f : X.toOver ⟶ Y.toOver) (hf : IsProper f.left) |
| 95 | {p : ℕ} (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport X p) : |
| 96 | letI := (SupportFields.Construction.supportFunctionFieldMap f hf Z).hom.toAlgebra |
| 97 | Module.finrank (CycleClass.Geometric.GenericPoint.reducedSupportScheme (UnitCap.imageSupport f Z)).functionField |
| 98 | Z.scheme.functionField = f.left.residueDegree Z.genericPoint := by |
| 99 | exact (genericFieldMap_finrank_eq_residueDegree (SupportMap.Construction.supportImageMap f hf Z) |
| 100 | (SupportMap.Construction.supportImageMap_genericPoint f hf Z)).trans (supportImageMap_residueDegree f hf Z) |
| 101 | |
| 102 | theorem residueDegree_pos_of_dimension_eq {X Y : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} |
| 103 | (f : X.toOver ⟶ Y.toOver) (hf : IsProper f.left) |
| 104 | {p : ℕ} (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport X p) |
| 105 | (hdim : Foundations.Scheme.SupportDimension.supportTranscendenceDimension (UnitCap.imageSupport f Z) Y.structureMap = |
| 106 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z.1 X.structureMap) : |
| 107 | 0 < f.left.residueDegree Z.genericPoint := by |
| 108 | let := (SupportFields.Construction.supportFunctionFieldMap f hf Z).hom.toAlgebra |
| 109 | let := SupportFields.Construction.supportFunctionField_finite f hf Z hdim |
| 110 | rw [← supportFunctionField_finrank_eq f hf Z] |
| 111 | exact Module.finrank_pos |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicGeometry.Cycles.Functoriality.ResidueDegree.Construction |