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 Mathlib |
| 2 | |
| 3 | /-! # Descent -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Descent.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Geometric descent tools for the scalar comparison in CentralAction. Equal |
| 10 | scheme-theoretic kernels give actual quotient isomorphisms. Complementary |
| 11 | endomorphisms of a finite etale surjection are finite etale surjections. |
| 12 | No statement about finite order of a correspondence is an assumption. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open _root_.CategoryTheory.MonoidalCategory |
| 16 | open scoped _root_.CategoryTheory.MonObj |
| 17 | |
| 18 | section Quotients |
| 19 | |
| 20 | universe u v |
| 21 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] |
| 22 | {A B Z : C} [GrpObj A] [GrpObj B] [GrpObj Z] |
| 23 | |
| 24 | theorem kernel_inclusion_coequalizes |
| 25 | (f : A ⟶ B) [IsMonHom f] (g : A ⟶ Z) [IsMonHom g] |
| 26 | (hker : ∀ (T : C) (x : T ⟶ A), x ≫ f = 1 → x ≫ g = 1) |
| 27 | {T : C} (x y : T ⟶ A) (hxy : x ≫ f = y ≫ f) : |
| 28 | x ≫ g = y ≫ g := by |
| 29 | have hk : (x / y) ≫ f = 1 := by rw [GrpObj.div_comp, hxy, div_self'] |
| 30 | have hd := hker T (x / y) hk |
| 31 | rwa [GrpObj.div_comp, div_eq_one] at hd |
| 32 | |
| 33 | /-- Canonical isomorphism between two effective group quotients with |
| 34 | the same kernel on all test objects, including nonreduced tests. -/ |
| 35 | def equalKernelQuotientIso |
| 36 | (f : A ⟶ B) [IsMonHom f] [EffectiveEpi f] |
| 37 | (g : A ⟶ Z) [IsMonHom g] [EffectiveEpi g] |
| 38 | (hker : ∀ (T : C) (x : T ⟶ A), x ≫ f = 1 ↔ x ≫ g = 1) : B ≅ Z where |
| 39 | hom := EffectiveEpi.desc f g (kernel_inclusion_coequalizes f g (fun T x => (hker T x).mp)) |
| 40 | inv := EffectiveEpi.desc g f (kernel_inclusion_coequalizes g f (fun T x => (hker T x).mpr)) |
| 41 | hom_inv_id := by |
| 42 | apply (cancel_epi f).mp |
| 43 | rw [← Category.assoc, EffectiveEpi.fac, EffectiveEpi.fac, Category.comp_id] |
| 44 | inv_hom_id := by |
| 45 | apply (cancel_epi g).mp |
| 46 | rw [← Category.assoc, EffectiveEpi.fac, EffectiveEpi.fac, Category.comp_id] |
| 47 | |
| 48 | theorem equalKernelQuotientIso_fac |
| 49 | (f : A ⟶ B) [IsMonHom f] [EffectiveEpi f] |
| 50 | (g : A ⟶ Z) [IsMonHom g] [EffectiveEpi g] |
| 51 | (hker : ∀ (T : C) (x : T ⟶ A), x ≫ f = 1 ↔ x ≫ g = 1) : |
| 52 | f ≫ (equalKernelQuotientIso f g hker).hom = g := |
| 53 | EffectiveEpi.fac f g (kernel_inclusion_coequalizes f g (fun T x => (hker T x).mp)) |
| 54 | |
| 55 | end Quotients |
| 56 | |
| 57 | /-- The usual cancellation properties of finite and etale morphisms |
| 58 | construct the needed scalar-isogeny geometry from a complementary scalar. -/ |
| 59 | theorem finite_etale_surjective_of_complements |
| 60 | {X : Scheme} (f g p : X ⟶ X) |
| 61 | (hfg : f ≫ g = p) (hgf : g ≫ f = p) |
| 62 | [IsSeparated f] [IsSeparated g] [IsFinite p] [Etale p] [Surjective p] : |
| 63 | IsFinite f ∧ Etale f ∧ Surjective f := by |
| 64 | have hfgFinite : IsFinite (f ≫ g) := hfg ▸ inferInstance |
| 65 | have hgfFinite : IsFinite (g ≫ f) := hgf ▸ inferInstance |
| 66 | have hfFinite : IsFinite f := IsFinite.of_comp f g |
| 67 | have hgFinite : IsFinite g := IsFinite.of_comp g f |
| 68 | have hfgEtale : Etale (f ≫ g) := hfg ▸ inferInstance |
| 69 | have hgfEtale : Etale (g ≫ f) := hgf ▸ inferInstance |
| 70 | have hgUnramified : FormallyUnramified g := FormallyUnramified.of_comp g f |
| 71 | have hfEtale : Etale f := Etale.of_comp f g |
| 72 | refine ⟨hfFinite, hfEtale, ⟨?_⟩⟩ |
| 73 | intro x |
| 74 | obtain ⟨y, hy⟩ := p.surjective x |
| 75 | refine ⟨g y, ?_⟩ |
| 76 | change (g ≫ f) y = x |
| 77 | rw [hgf] |
| 78 | exact hy |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Descent.Construction |