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.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm |
| 2 | import OAI.AlgebraicGeometry.Cycles.Functoriality.FunctionFields |
| 3 | |
| 4 | /-! # Divisor Restriction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.DivisorRestriction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Principal divisors of arbitrary rational functions commute with open |
| 11 | restriction. The comparison uses the actual stalk maps, including negative |
| 12 | orders, and is needed to pass the finite affine norm formula to scheme charts. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y] |
| 23 | |
| 24 | theorem genericFieldMap_stalk (i : X ⟶ Y) |
| 25 | (hη : i (genericPoint X) = genericPoint Y) (x : X) |
| 26 | (a : Y.presheaf.stalk (i x)) : |
| 27 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap i hη (algebraMap (Y.presheaf.stalk (i x)) Y.functionField a) = |
| 28 | algebraMap (X.presheaf.stalk x) X.functionField (i.stalkMap x a) := by |
| 29 | have h : CommRingCat.ofHom (algebraMap (Y.presheaf.stalk (i x)) Y.functionField) ≫ |
| 30 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap i hη = i.stalkMap x ≫ |
| 31 | CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField) := by |
| 32 | change Y.presheaf.stalkSpecializes ((genericPoint_spec Y).specializes trivial) ≫ |
| 33 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap i hη = i.stalkMap x ≫ |
| 34 | X.presheaf.stalkSpecializes ((genericPoint_spec X).specializes trivial) |
| 35 | rw [Cycles.Functoriality.FunctionFields.Construction.genericFieldMap, TopCat.Presheaf.stalkCongr_hom, |
| 36 | ← Category.assoc, TopCat.Presheaf.stalkSpecializes_comp] |
| 37 | exact i.stalkSpecializes_stalkMap (genericPoint X) x |
| 38 | ((genericPoint_spec X).specializes trivial) |
| 39 | exact congrArg (fun k : Y.presheaf.stalk (i x) ⟶ X.functionField => k a) h |
| 40 | |
| 41 | variable (i : X ⟶ Y) [IsOpenImmersion i] |
| 42 | |
| 43 | def openFieldMap : Y.functionField ⟶ X.functionField := |
| 44 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap i (genericPoint_eq_of_isOpenImmersion i) |
| 45 | |
| 46 | instance : IsIso (openFieldMap i) := by |
| 47 | unfold openFieldMap Cycles.Functoriality.FunctionFields.Construction.genericFieldMap |
| 48 | infer_instance |
| 49 | |
| 50 | def openFieldIso : Y.functionField ≅ X.functionField := asIso (openFieldMap i) |
| 51 | |
| 52 | theorem openFieldMap_stalk (x : X) (a : Y.presheaf.stalk (i x)) : |
| 53 | openFieldMap i (algebraMap (Y.presheaf.stalk (i x)) Y.functionField a) = |
| 54 | algebraMap (X.presheaf.stalk x) X.functionField (i.stalkMap x a) := |
| 55 | genericFieldMap_stalk i (genericPoint_eq_of_isOpenImmersion i) x a |
| 56 | |
| 57 | variable [IsLocallyNoetherian X] [IsLocallyNoetherian Y] |
| 58 | |
| 59 | /-- Every integer order, including a pole, is preserved on an open chart. -/ |
| 60 | theorem ord_openImmersion (f : Y.functionField) (x : X) : |
| 61 | X.ord (openFieldMap i f) x = Y.ord f (i x) := by |
| 62 | have hc : coheight (i x) = coheight x := coheight_eq_of_isOpenImmersion i |
| 63 | by_cases hx : coheight x = 1 |
| 64 | · let : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hx.le |
| 65 | let : Ring.KrullDimLE 1 (Y.presheaf.stalk (i x)) := |
| 66 | krullDimLE_of_coheight_le (hc.trans hx).le |
| 67 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hx, |
| 68 | Scheme.ord_eq_ordHom_of_coheight_eq_one (hc.trans hx)] |
| 69 | exact congrArg WithZero.log (OrderQuotientTransport.ordFrac_equiv |
| 70 | (asIso (i.stalkMap x)).commRingCatIsoToRingEquiv |
| 71 | (openFieldIso i).commRingCatIsoToRingEquiv (openFieldMap_stalk i x) f) |
| 72 | · rw [Scheme.ord_eq_zero_of_coheight_neq_one hx, |
| 73 | Scheme.ord_eq_zero_of_coheight_neq_one (fun h => hx (hc.symm.trans h))] |
| 74 | |
| 75 | variable [AlgebraicGeometry.IsNoetherian X] [AlgebraicGeometry.IsNoetherian Y] |
| 76 | |
| 77 | omit [IsLocallyNoetherian X] [IsLocallyNoetherian Y] in |
| 78 | theorem principalDivisor_openImmersion (f : Y.functionField) : |
| 79 | Finsupp.comapDomain i (Divisors.LineBundles.Ord.BundleCycles.principalDivisor Y f) i.isOpenEmbedding.injective.injOn = |
| 80 | Divisors.LineBundles.Ord.BundleCycles.principalDivisor X (openFieldMap i f) := by |
| 81 | ext x |
| 82 | exact (ord_openImmersion i f x).symm |
| 83 | |
| 84 | omit [IsLocallyNoetherian X] [IsLocallyNoetherian Y] in |
| 85 | theorem rationalPrincipalDivisor_openImmersion (f : Y.functionField) : |
| 86 | Finsupp.comapDomain i (Affine.DivisorNorm.rationalPrincipalDivisor Y f) i.isOpenEmbedding.injective.injOn = |
| 87 | Affine.DivisorNorm.rationalPrincipalDivisor X (openFieldMap i f) := by |
| 88 | ext x |
| 89 | exact congrArg (fun n : ℤ => (n : ℚ)) (ord_openImmersion i f x).symm |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.DivisorRestriction |