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.Crystalline.Cohomology.FunctionsSeparation |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.CrystallinePrincipal.IntersectionMaps |
| 3 | |
| 4 | /-! # Functions Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.FunctionsGluing.CrystallineFunctionsGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Gluing actual ambient functions on native principal covers |
| 12 | |
| 13 | Native compatibility on principal intersections is exactly compatibility |
| 14 | of fractions in the standard affine ring gluing theorem. Thus a unit-ideal |
| 15 | principal cover glues actual crystalline ambient functions uniquely. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [CharP k p] |
| 23 | (X : Over (Spec (CommRingCat.of k))) (Q : Site.Object p k X) |
| 24 | |
| 25 | local notation "QR" => Q.thickening.ring |
| 26 | local notation "Values" => OAI.AlgebraicGeometry.Crystalline.Cohomology.FunctionsSeparation.CrystallineFunctionsSeparation.values p k X |
| 27 | |
| 28 | theorem principal_isSheafFor (s : Set QR) (hs : Ideal.span s = ⊤) : |
| 29 | Presieve.IsSheafFor Values (CrystallinePrincipal.Covers.CrystallinePrincipalCovers.presieve p k X Q s Subtype.val) := by |
| 30 | rw [CrystallinePrincipal.Covers.CrystallinePrincipalCovers.presieve, Presieve.isSheafFor_arrows_iff] |
| 31 | intro z hz |
| 32 | have hcompat : ∀ a b : s, |
| 33 | IsLocalization.Away.awayToAwayRight (S := Localization.Away a.val) (P := Localization.Away (a.val * b.val)) a.val b.val (z a) = |
| 34 | IsLocalization.Away.awayToAwayLeft (S := Localization.Away b.val) (P := Localization.Away (a.val * b.val)) b.val a.val (z b) := by |
| 35 | intro a b |
| 36 | have h := hz a b (CrystallinePrincipal.Opens.CrystallinePrincipalOpens.object p k X Q (a.val * b.val)) |
| 37 | (CrystallinePrincipal.IntersectionMaps.CrystallinePrincipalIntersectionMaps.left p k X Q a.val b.val) |
| 38 | (CrystallinePrincipal.IntersectionMaps.CrystallinePrincipalIntersectionMaps.right p k X Q a.val b.val) |
| 39 | (CrystallinePrincipal.IntersectionMaps.CrystallinePrincipalIntersectionMaps.condition p k X Q a.val b.val) |
| 40 | exact (RingHom.congr_fun (CrystallinePrincipal.IntersectionMaps.CrystallinePrincipalIntersectionMaps.left_ambient p k X Q a.val b.val) (z a)).symm.trans |
| 41 | (h.trans (RingHom.congr_fun (CrystallinePrincipal.IntersectionMaps.CrystallinePrincipalIntersectionMaps.right_ambient p k X Q a.val b.val) (z b))) |
| 42 | change ∃! v : QR, ∀ a : s, algebraMap QR (Localization.Away a.val) v = z a |
| 43 | exact Localization.existsUnique_algebraMap_eq_of_span_eq_top s hs z hcompat |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.FunctionsGluing.CrystallineFunctionsGluing |