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.AbelianScheme.CartierDuality.AffineSheafIso |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.GroupRepresentatives |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.FiniteLocallyFreeCoordinates |
| 4 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.FiniteHopfPresentation |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 6 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 7 | |
| 8 | /-! # Rank -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.Rank |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # CartierDuality: actual Cartier duality preserves finite-flat rank over fields |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | open OAI.AlgebraicGeometry.Picard.Homomorphisms.FiniteHopfPresentation.Construction |
| 20 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 21 | |
| 22 | attribute [local instance] Over.cartesianMonoidalCategory |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace Construction.Schemes |
| 27 | |
| 28 | /-- An isomorphism over the base preserves the actual finite-flat rank. -/ |
| 29 | theorem overIso_finrank {S : Scheme.{u}} {X Y : Over S} (e : X ≅ Y) [IsFinite Y.hom] [Flat Y.hom] (s : S) : |
| 30 | X.hom.finrank s = Y.hom.finrank s := by |
| 31 | have : IsIso e.hom.left := inferInstanceAs (IsIso ((Over.forget S).map e.hom)) |
| 32 | rw [← e.hom.w, Scheme.Hom.finrank_comp_left_of_isIso] |
| 33 | |
| 34 | /-- The scheme rank of a finite algebra over a field is its ordinary vector-space dimension. -/ |
| 35 | theorem spec_finrank_field (k R : Type u) [Field k] [CommRing R] [Algebra k R] [Module.Finite k R] |
| 36 | (s : Spec (.of k)) : |
| 37 | (Spec.map (CommRingCat.ofHom (algebraMap k R))).finrank s = Module.finrank k R := by |
| 38 | have h := Scheme.Hom.finrank_SpecMap_algebraMap k R (show PrimeSpectrum k from s) |
| 39 | rw [Module.rankAtStalk_eq_finrank_of_free] at h |
| 40 | exact h |
| 41 | |
| 42 | variable (k : Type u) [Field k] (G : Grp (Over (Spec (.of k)))) [IsCommMonObj G.X] |
| 43 | [IsFinite G.X.hom] [Flat G.X.hom] |
| 44 | (C : GroupRepresentatives.Construction.Schemes.CharacterGroupRepresentation (Spec (.of k)) G) |
| 45 | |
| 46 | /-- The actual Cartier representative has the same scheme-theoretic order as its original group. -/ |
| 47 | theorem characterRepresentative_finrank (s : Spec (.of k)) : |
| 48 | C.dual.X.hom.finrank s = G.X.hom.finrank s := by |
| 49 | obtain ⟨R, hR, hc, ⟨e⟩⟩ := Picard.Homomorphisms.FiniteHopfPresentation.Construction.finite_commutative_hopfPresentation k G |
| 50 | have : Module.Finite k R := hR |
| 51 | have : Coalgebra.IsCocomm k R := hc |
| 52 | let Y : Over (Spec (.of k)) := (Spec (.of (DualAlgebra.Construction.DualCoordinate k R))).asOver (Spec (.of k)) |
| 53 | have hY : IsFinite Y.hom ∧ Flat Y.hom ∧ LocallyOfFinitePresentation Y.hom := |
| 54 | (FiniteLocallyFreeCoordinates.Construction.finiteLocallyFree_spec_iff k (DualAlgebra.Construction.DualCoordinate k R)).mpr ⟨inferInstance, inferInstance⟩ |
| 55 | have : IsFinite Y.hom := hY.1 |
| 56 | have : Flat Y.hom := hY.2.1 |
| 57 | let j : CharacterFunctor.Construction.Schemes.pointSheaf (Spec (.of k)) Y ≅ CharacterSheaf.Construction.Schemes.characterSheaf (Spec (.of k)) ((hopfSpec (.of k)).obj (.op R)) := |
| 58 | @asIso _ _ _ _ (CharacterMap.Construction.affineCartierCharacterSheafMap k R) (AffineSheafIso.Construction.affineCartierCharacterSheafMap_isIso k R) |
| 59 | let d : C.dual.X ≅ Y := uliftYoneda.{u + 1}.preimageIso |
| 60 | ((sheafToPresheaf _ _).mapIso (C.sheafIso ≪≫ CharacterFunctor.Construction.Schemes.characterSheafIso e ≪≫ j.symm)) |
| 61 | let i : ((hopfSpec (.of k)).obj (.op R)).X ≅ G.X := (Grp.forget _).mapIso e |
| 62 | calc |
| 63 | C.dual.X.hom.finrank s = Y.hom.finrank s := overIso_finrank d s |
| 64 | _ = Module.finrank k (DualAlgebra.Construction.DualCoordinate k R) := spec_finrank_field k (DualAlgebra.Construction.DualCoordinate k R) s |
| 65 | _ = Module.finrank k (Module.Dual k R) := (DualAlgebra.Construction.dualCoordinateLinearEquiv k R).finrank_eq |
| 66 | _ = Module.finrank k R := Subspace.dual_finrank_eq |
| 67 | _ = (((hopfSpec (.of k)).obj (.op R)).X).hom.finrank s := (spec_finrank_field k R s).symm |
| 68 | _ = G.X.hom.finrank s := overIso_finrank i s |
| 69 | |
| 70 | end Construction.Schemes |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.Rank |