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.RepresentationTheory.Theta.Geometric.ConstantSchemeDegree |
| 2 | import Mathlib.AlgebraicGeometry.Group.Affine |
| 3 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 4 | |
| 5 | /-! # Affine Product Rank -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.AffineProductRank |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The rank of an actual affine product over a field is computed |
| 12 | through its native tensor-product coordinate algebra. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open _root_.CategoryTheory.MonoidalCategory |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | variable (k : Type) [Field k] |
| 19 | |
| 20 | abbrev affine (A : Type) [CommRing A] [Algebra k A] := |
| 21 | (algSpec (.of k)).obj (.op (CommAlgCat.of k A)) |
| 22 | |
| 23 | theorem affine_finite (A : Type) [CommRing A] [Algebra k A] [Module.Finite k A] : |
| 24 | IsFinite (affine k A).hom := by |
| 25 | change IsFinite (Spec.map (CommRingCat.ofHom (algebraMap k A))) |
| 26 | rw [IsFinite.SpecMap_iff] |
| 27 | exact RingHom.finite_algebraMap.mpr inferInstance |
| 28 | |
| 29 | theorem affine_flat (A : Type) [CommRing A] [Algebra k A] : |
| 30 | Flat (affine k A).hom := by |
| 31 | change Flat (Spec.map (CommRingCat.ofHom (algebraMap k A))) |
| 32 | rw [Flat.SpecMap_iff] |
| 33 | exact RingHom.flat_algebraMap_iff.mpr inferInstance |
| 34 | |
| 35 | theorem affine_rank (A : Type) [CommRing A] [Algebra k A] [Module.Finite k A] |
| 36 | (z : Spec (.of k)) : (affine k A).hom.finrank z = Module.finrank k A := |
| 37 | (Scheme.Hom.finrank_SpecMap_algebraMap k A z).trans |
| 38 | (congrFun (Module.rankAtStalk_eq_finrank_of_free (R := k) (M := A)) z) |
| 39 | |
| 40 | theorem affine_product_rank (A B : Type) [CommRing A] [CommRing B] |
| 41 | [Algebra k A] [Algebra k B] [Module.Finite k A] [Module.Finite k B] |
| 42 | (z : Spec (.of k)) : |
| 43 | (affine k A ⊗ affine k B).hom.finrank z = Module.finrank k A * Module.finrank k B := by |
| 44 | let F := algSpec (CommRingCat.of k) |
| 45 | let : F.Braided := braidedAlgSpec |
| 46 | let e := Functor.Monoidal.μIso F (.op (CommAlgCat.of k A)) (.op (CommAlgCat.of k B)) |
| 47 | have : IsIso e.hom.left := (Over.forget _).map_isIso e.hom |
| 48 | have : IsFinite (affine k (A ⊗[k] B)).hom := affine_finite k _ |
| 49 | have : Flat (affine k (A ⊗[k] B)).hom := affine_flat k _ |
| 50 | calc |
| 51 | (affine k A ⊗ affine k B).hom.finrank z = (affine k (A ⊗[k] B)).hom.finrank z := by |
| 52 | rw [← e.hom.w] |
| 53 | exact congrFun (Scheme.Hom.finrank_comp_left_of_isIso e.hom.left _) z |
| 54 | _ = Module.finrank k (A ⊗[k] B) := affine_rank k _ z |
| 55 | _ = Module.finrank k A * Module.finrank k B := Module.finrank_tensorProduct |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.AffineProductRank |