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.Support.GenericField |
| 2 | |
| 3 | /-! # Stalk Square -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.StalkSquare |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Generic field restriction commutes with the actual stalk maps in |
| 10 | a commutative square of schemes. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem stalkMap_congr {X Y : Scheme} {u v : X ⟶ Y} (h : u = v) (x : X) : |
| 17 | eqToHom (congrArg (fun y => Y.presheaf.stalk y) (congrArg (fun f : X ⟶ Y => f x) h).symm) ≫ |
| 18 | u.stalkMap x = v.stalkMap x := by |
| 19 | subst v |
| 20 | simp only [eqToHom_refl, Category.id_comp] |
| 21 | |
| 22 | theorem square {S T X Y : Scheme} [IsIntegral S] [IsIntegral T] |
| 23 | (i : S ⟶ X) (j : T ⟶ Y) (f : X ⟶ Y) (h : S ⟶ T) |
| 24 | (he : h ≫ j = i ≫ f) (hη : h (genericPoint S) = genericPoint T) : |
| 25 | let hp : j (genericPoint T) = f (i (genericPoint S)) := |
| 26 | (congrArg j hη.symm).trans (congrArg (fun r : S ⟶ Y => r (genericPoint S)) he) |
| 27 | eqToHom (congrArg (fun y => Y.presheaf.stalk y) hp.symm) ≫ |
| 28 | j.stalkMap (genericPoint T) ≫ Cycles.Functoriality.FunctionFields.Construction.genericFieldMap h hη = |
| 29 | f.stalkMap (i (genericPoint S)) ≫ i.stalkMap (genericPoint S) := by |
| 30 | dsimp only |
| 31 | rw [Cycles.Functoriality.FunctionFields.Construction.genericFieldMap, Support.GenericField.stalkCongr_eqToHom T hη.symm] |
| 32 | rw [← Category.assoc (j.stalkMap (genericPoint T))] |
| 33 | rw [← Support.GenericField.stalkMap_congr j hη.symm] |
| 34 | rw [Category.assoc, ← Scheme.Hom.stalkMap_comp] |
| 35 | rw [← Category.assoc, eqToHom_trans] |
| 36 | exact (stalkMap_congr he (genericPoint S)).trans (Scheme.Hom.stalkMap_comp i f (genericPoint S)) |
| 37 | |
| 38 | theorem at_source_point {S T X Y : Scheme} [IsIntegral S] [IsIntegral T] |
| 39 | (i : S ⟶ X) (j : T ⟶ Y) (f : X ⟶ Y) (h : S ⟶ T) |
| 40 | (he : h ≫ j = i ≫ f) (hη : h (genericPoint S) = genericPoint T) |
| 41 | (x : X) (hx : i (genericPoint S) = x) (hp : j (genericPoint T) = f x) : |
| 42 | eqToHom (congrArg (fun y => Y.presheaf.stalk y) hp.symm) ≫ |
| 43 | j.stalkMap (genericPoint T) ≫ Cycles.Functoriality.FunctionFields.Construction.genericFieldMap h hη = |
| 44 | f.stalkMap x ≫ eqToHom (congrArg (fun z => X.presheaf.stalk z) hx.symm) ≫ |
| 45 | i.stalkMap (genericPoint S) := by |
| 46 | subst x |
| 47 | simpa only [eqToHom_refl, Category.id_comp] using square i j f h he hη |
| 48 | |
| 49 | theorem support {T X Y : Scheme} [IsIntegral T] |
| 50 | (W : TopologicalSpace.IrreducibleCloseds X) (j : T ⟶ Y) (f : X ⟶ Y) |
| 51 | (h : CycleClass.Geometric.GenericPoint.reducedSupportScheme W ⟶ T) |
| 52 | (he : h ≫ j = CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ f) |
| 53 | (hη : h (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W)) = genericPoint T) |
| 54 | (hx : CycleClass.Thom.IntersectionGeometry.supportPoint W ∈ (W : Set X)) (hp : j (genericPoint T) = f (CycleClass.Thom.IntersectionGeometry.supportPoint W)) : |
| 55 | eqToHom (congrArg (fun y => Y.presheaf.stalk y) hp.symm) ≫ |
| 56 | j.stalkMap (genericPoint T) ≫ Cycles.Functoriality.FunctionFields.Construction.genericFieldMap h hη = |
| 57 | f.stalkMap (CycleClass.Thom.IntersectionGeometry.supportPoint W) ≫ Support.LocalFraction.Restriction.toFunctionField X W (CycleClass.Thom.IntersectionGeometry.supportPoint W) hx := by |
| 58 | rw [Support.GenericField.toFunctionField_generic] |
| 59 | exact at_source_point (CycleClass.Geometric.GenericPoint.reducedSupportι W) j f h he hη (CycleClass.Thom.IntersectionGeometry.supportPoint W) |
| 60 | (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq W) hp |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.StalkSquare |