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.AbelianModuli.ReferenceFamily.EtaleSplittingAt |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 3 | |
| 4 | /-! # Constant Scheme Degree -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.ConstantSchemeDegree |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The finite-flat degree of a constant finite scheme is its number of labels. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 13 | |
| 14 | variable (F : Type) [Field F] (I : Type) [Finite I] |
| 15 | |
| 16 | def constantAffineLabelsIso : OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme (Spec (.of F)) I ≅ |
| 17 | OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleSplittingAt.EtaleSplitting.affineOver F (I → F) := by |
| 18 | let := Fintype.ofFinite I |
| 19 | let e : (∐ fun _ : I => Spec (.of F)) ≅ Spec (.of (I → F)) := |
| 20 | asIso (sigmaSpec (fun _ : I => CommRingCat.of F)) |
| 21 | refine Over.isoMk e ?_ |
| 22 | apply Sigma.hom_ext |
| 23 | intro i |
| 24 | change Sigma.ι _ i ≫ sigmaSpec (fun _ : I => CommRingCat.of F) ≫ |
| 25 | Spec.map (CommRingCat.ofHom (algebraMap F (I → F))) = |
| 26 | Sigma.ι _ i ≫ Sigma.desc (fun _ : I => 𝟙 (Spec (.of F))) |
| 27 | rw [ι_sigmaSpec_assoc, Sigma.ι_comp_desc, ← Spec.map_comp] |
| 28 | have h : CommRingCat.ofHom (algebraMap F (I → F)) ≫ |
| 29 | CommRingCat.ofHom (Pi.evalRingHom (fun _ : I => F) i) = 𝟙 _ := by |
| 30 | ext r |
| 31 | rfl |
| 32 | rw [h, Spec.map_id] |
| 33 | |
| 34 | theorem constantScheme_finrank (z : Spec (.of F)) : |
| 35 | (OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme (Spec (.of F)) I).hom.finrank z = Nat.card I := by |
| 36 | let := Fintype.ofFinite I |
| 37 | let e := constantAffineLabelsIso F I |
| 38 | let : IsIso e.inv.left := inferInstanceAs (IsIso (((Over.forget (Spec (.of F))).mapIso e).inv)) |
| 39 | let : Flat (OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme (Spec (.of F)) I).hom := |
| 40 | (Etale.iff_flat_and_formallyUnramified.mp inferInstance).1 |
| 41 | calc |
| 42 | _ = (e.inv.left ≫ (OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme (Spec (.of F)) I).hom).finrank z := by |
| 43 | rw [Scheme.Hom.finrank_comp_left_of_isIso] |
| 44 | _ = (OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleSplittingAt.EtaleSplitting.affineOver F (I → F)).hom.finrank z := |
| 45 | congrArg (fun f => Scheme.Hom.finrank f z) e.inv.w |
| 46 | _ = Nat.card I := by |
| 47 | change (Spec.map (CommRingCat.ofHom (algebraMap F (I → F)))).finrank z = _ |
| 48 | refine (Scheme.Hom.finrank_SpecMap_algebraMap F (I → F) z).trans ?_ |
| 49 | rw [Module.rankAtStalk_eq_finrank_of_free] |
| 50 | change Module.finrank F (I → F) = Nat.card I |
| 51 | simp only [Module.finrank_pi_fintype, Module.finrank_self, Finset.sum_const, |
| 52 | Finset.card_univ, smul_eq_mul, mul_one, Nat.card_eq_fintype_card] |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.RepresentationTheory.Theta.Geometric.ConstantSchemeDegree |