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.IsogenyQuotient.CartierRank |
| 2 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 3 | import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas |
| 4 | |
| 5 | /-! # Group Rank Iso -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Finite.GroupRankIso.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | A monomorphism of finite commutative group schemes over a field is an |
| 13 | isomorphism when the actual ranks agree. The argument retains nilpotents: |
| 14 | a finite monomorphism gives a surjection of coordinate algebras, and equal |
| 15 | dimensions make that surjection bijective. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | set_option backward.isDefEq.respectTransparency false in |
| 24 | theorem finiteGroup_mono_isIso_of_finrank_eq |
| 25 | {k : Type u} [Field k] |
| 26 | (G H : Grp (Over (Spec (.of k)))) [IsCommMonObj G.X] [IsCommMonObj H.X] |
| 27 | [IsFinite G.X.hom] [Flat G.X.hom] [IsFinite H.X.hom] [Flat H.X.hom] |
| 28 | (f : G ⟶ H) [Mono f.hom.hom] (s : Spec (.of k)) |
| 29 | (hr : G.X.hom.finrank s = H.X.hom.finrank s) : IsIso f := by |
| 30 | obtain ⟨R, hfR, hcR, ⟨eR⟩⟩ := Picard.Homomorphisms.FiniteHopfPresentation.Construction.finite_commutative_hopfPresentation k G |
| 31 | obtain ⟨T, hfT, hcT, ⟨eT⟩⟩ := Picard.Homomorphisms.FiniteHopfPresentation.Construction.finite_commutative_hopfPresentation k H |
| 32 | have : Module.Finite k R := hfR |
| 33 | have : Module.Finite k T := hfT |
| 34 | have : IsFinite ((hopfSpec (.of k)).obj (.op T)).X.hom := by |
| 35 | change IsFinite (Spec.map (CommRingCat.ofHom (algebraMap k T))) |
| 36 | exact (IsFinite.SpecMap_iff _).mpr (RingHom.finite_algebraMap.mpr hfT) |
| 37 | let v := eR.hom ≫ f ≫ eT.inv |
| 38 | have : Mono v.hom.hom := inferInstanceAs |
| 39 | (Mono (eR.hom.hom.hom ≫ f.hom.hom ≫ eT.inv.hom.hom)) |
| 40 | have : IsFinite (v.hom.hom.left ≫ ((hopfSpec (.of k)).obj (.op T)).X.hom) := by |
| 41 | rw [v.hom.hom.w] |
| 42 | change IsFinite (Spec.map (CommRingCat.ofHom (algebraMap k R))) |
| 43 | exact (IsFinite.SpecMap_iff _).mpr (RingHom.finite_algebraMap.mpr hfR) |
| 44 | have : IsFinite v.hom.hom.left := IsFinite.of_comp _ ((hopfSpec (.of k)).obj (.op T)).X.hom |
| 45 | have : IsClosedImmersion v.hom.hom.left := |
| 46 | (IsClosedImmersion.iff_isProper_and_mono _).mpr ⟨inferInstance, inferInstance⟩ |
| 47 | let a : T ⟶ R := ((hopfSpec.fullyFaithful (R := .of k)).preimage v).unop |
| 48 | have ha : (hopfSpec (.of k)).map a.op = v := (hopfSpec.fullyFaithful (R := .of k)).map_preimage v |
| 49 | let ar : CommRingCat.of T ⟶ CommRingCat.of R := CommRingCat.ofHom a.hom.toAlgHom.toRingHom |
| 50 | have has : Spec.map ar = v.hom.hom.left := congrArg (fun t => t.hom.hom.left) ha |
| 51 | have : IsClosedImmersion (Spec.map ar) := has.symm ▸ inferInstance |
| 52 | have hsurj : Function.Surjective a.hom := by |
| 53 | have hs := (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (.of R)).hom).surjective.comp |
| 54 | ((IsClosedImmersion.isAffine_surjective_of_isAffine (Spec.map ar)).2.comp |
| 55 | (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (.of T)).inv).surjective) |
| 56 | change Function.Surjective |
| 57 | ((Scheme.ΓSpecIso (.of T)).inv ≫ (Spec.map ar).appTop ≫ (Scheme.ΓSpecIso (.of R)).hom) at hs |
| 58 | simpa [ar] using hs |
| 59 | have hdim : Module.finrank k T = Module.finrank k R := |
| 60 | (CartierRank.Construction.groupScheme_finrank_of_hopfIso T H eT s).symm.trans |
| 61 | (hr.symm.trans (CartierRank.Construction.groupScheme_finrank_of_hopfIso R G eR s)) |
| 62 | have hinj : Function.Injective a.hom := |
| 63 | (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hdim |
| 64 | (f := a.hom.toLinearMap)).mpr hsurj |
| 65 | have : IsIso ar := (ConcreteCategory.isIso_iff_bijective ar).mpr ⟨hinj, hsurj⟩ |
| 66 | have : IsIso v.hom.hom.left := has ▸ inferInstanceAs (IsIso (Spec.map ar)) |
| 67 | have : IsIso ((Over.forget _).map v.hom.hom) := inferInstanceAs (IsIso v.hom.hom.left) |
| 68 | have : IsIso v.hom.hom := isIso_of_reflects_iso v.hom.hom (Over.forget _) |
| 69 | have : IsIso v := (Grp.mkIso' (asIso v.hom.hom)).isIso_hom |
| 70 | exact (isIso_comp_left_iff eR.hom (f ≫ eT.inv)).mp this |> |
| 71 | (isIso_comp_right_iff f eT.inv).mp |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Finite.GroupRankIso.Construction |