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.FormalGeometry.Completion.EtaleCoordinateCharacters |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.PointAlgebraHom |
| 3 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.FiniteHopfPresentation |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 6 | |
| 7 | /-! # Etale Group Point Count -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.EtaleGroupPointCount |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The number of geometric points of an actual finite etale |
| 14 | commutative group is its structural degree. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 19 | open _root_.CategoryTheory.MonoidalCategory |
| 20 | |
| 21 | namespace Construction |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | theorem etale_card_algHom_eq_finrank (K R : Type u) |
| 26 | [Field K] [IsAlgClosed K] [CommRing R] [Algebra K R] |
| 27 | [Module.Finite K R] [Algebra.Etale K R] : |
| 28 | Nat.card (R →ₐ[K] K) = Module.finrank K R := by |
| 29 | have : Finite (R →ₐ[K] K) := (linearIndependent_algHom_toLinearMap K R K).finite |
| 30 | let := Fintype.ofFinite (R →ₐ[K] K) |
| 31 | apply Nat.le_antisymm |
| 32 | · simpa only [Nat.card_eq_fintype_card, Subspace.dual_finrank_eq] using |
| 33 | (linearIndependent_algHom_toLinearMap K R K).fintype_card_le_finrank |
| 34 | · exact EtaleCoordinateCharacters.Construction.etale_finrank_le_card_algHom K R |
| 35 | |
| 36 | theorem finiteEtaleGroup_card_points_eq_finrank {K : Type u} [Field K] [IsAlgClosed K] |
| 37 | (G : Grp (Over (Spec (.of K)))) [IsCommMonObj G.X] |
| 38 | [IsFinite G.X.hom] [Etale G.X.hom] (x : Spec (.of K)) : |
| 39 | Nat.card (𝟙_ (Over (Spec (.of K))) ⟶ G.X) = G.X.hom.finrank x := by |
| 40 | obtain ⟨R, hR, _, ⟨e⟩⟩ := Picard.Homomorphisms.FiniteHopfPresentation.Construction.finite_commutative_hopfPresentation K G |
| 41 | have : Module.Finite K R := hR |
| 42 | let i : ((hopfSpec (.of K)).obj (.op R)).X ≅ G.X := (Grp.forget _).mapIso e |
| 43 | have : IsIso i.hom.left := inferInstanceAs (IsIso ((Over.forget _).map i.hom)) |
| 44 | have het : Etale (((hopfSpec (.of K)).obj (.op R)).X).hom := by |
| 45 | rw [← i.hom.w] |
| 46 | infer_instance |
| 47 | have : Algebra.Etale K R := RingHom.etale_algebraMap.mp |
| 48 | ((HasRingHomProperty.Spec_iff (P := @Etale)).mp het) |
| 49 | have hp : Nat.card (R →ₐ[K] K) = Nat.card (𝟙_ (Over (Spec (.of K))) ⟶ G.X) := |
| 50 | Nat.card_congr ((Affine.PointAlgebraHom.Construction.affineFieldPointsEquivAlgHom K R).symm.trans (Iso.homCongr (Iso.refl _) i)) |
| 51 | calc |
| 52 | Nat.card (𝟙_ (Over (Spec (.of K))) ⟶ G.X) = Module.finrank K R := |
| 53 | hp.symm.trans (etale_card_algHom_eq_finrank K R) |
| 54 | _ = (((hopfSpec (.of K)).obj (.op R)).X).hom.finrank x := by |
| 55 | change _ = (Spec.map (CommRingCat.ofHom (algebraMap K R))).finrank x |
| 56 | rw [Scheme.Hom.finrank_SpecMap_algebraMap, Module.rankAtStalk_eq_finrank_of_free] |
| 57 | rfl |
| 58 | _ = G.X.hom.finrank x := by |
| 59 | rw [← i.hom.w, Scheme.Hom.finrank_comp_left_of_isIso] |
| 60 | |
| 61 | end Construction |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.EtaleGroupPointCount |