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.EtaleDetection |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.UniversallyOpen |
| 3 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 4 | |
| 5 | /-! # Agreement Locus -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.AgreementLocus.Construction |
| 8 | |
| 9 | /-! |
| 10 | The block condition on a finite etale universal subgroup is represented |
| 11 | by a clopen locus in the parameter scheme. This supplies finite etaleness |
| 12 | of the restriction, not merely representability by an open subscheme. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | section EqualityLocus |
| 20 | |
| 21 | variable {S : Scheme.{u}} {X H Y : Over S} |
| 22 | |
| 23 | /-- A morphism equalizes two maps to an etale target precisely when its |
| 24 | image lies in their scheme-theoretic equalizer. -/ |
| 25 | theorem equalizes_iff_range_subset |
| 26 | [Etale Y.hom] (f g : H ⟶ Y) (w : X ⟶ H) : |
| 27 | w ≫ f = w ≫ g ↔ |
| 28 | Set.range w.left ⊆ Set.range (equalizer.ι f g).left := by |
| 29 | have : IsOpenImmersion (equalizer.ι f g).left := EtaleDetection.Construction.equalizer_openImmersion f g |
| 30 | constructor |
| 31 | · intro h |
| 32 | rintro _ ⟨x, rfl⟩ |
| 33 | refine ⟨(equalizer.lift w h).left x, ?_⟩ |
| 34 | change ((equalizer.lift w h).left ≫ (equalizer.ι f g).left) x = w.left x |
| 35 | rw [← Over.comp_left, equalizer.lift_ι] |
| 36 | · intro h |
| 37 | let l := IsOpenImmersion.lift (equalizer.ι f g).left w.left h |
| 38 | have hl : l ≫ (equalizer.ι f g).left = w.left := IsOpenImmersion.lift_fac _ _ h |
| 39 | apply Over.OverMorphism.ext |
| 40 | change w.left ≫ f.left = w.left ≫ g.left |
| 41 | rw [← hl, Category.assoc, Category.assoc] |
| 42 | exact congrArg (fun a => l ≫ a.left) (equalizer.condition f g) |
| 43 | |
| 44 | end EqualityLocus |
| 45 | |
| 46 | variable {S : Scheme.{u}} {P H Y : Over S} |
| 47 | |
| 48 | /-- Parameters at which the two maps agree on the whole finite fiber. -/ |
| 49 | def agreementSet (p : H ⟶ P) (f g : H ⟶ Y) : Set P.left := |
| 50 | (p.left '' (Set.range (equalizer.ι f g).left)ᶜ)ᶜ |
| 51 | |
| 52 | theorem agreementSet_isClopen |
| 53 | (p : H ⟶ P) [IsFinite p.left] [Etale p.left] |
| 54 | [Etale Y.hom] [IsSeparated Y.hom] (f g : H ⟶ Y) : |
| 55 | IsClopen (agreementSet p f g) := by |
| 56 | have : IsOpenImmersion (equalizer.ι f g).left := EtaleDetection.Construction.equalizer_openImmersion f g |
| 57 | have hopen : IsOpen (Set.range (equalizer.ι f g).left) := |
| 58 | (equalizer.ι f g).left.isOpenEmbedding.isOpen_range |
| 59 | have hclosed : IsClosed (Set.range (equalizer.ι f g).left) := |
| 60 | (equalizer.ι f g).left.isClosedEmbedding.isClosed_range |
| 61 | constructor |
| 62 | · exact (p.left.isOpenMap _ hclosed.isOpen_compl).isClosed_compl |
| 63 | · exact (p.left.isClosedMap _ hopen.isClosed_compl).isOpen_compl |
| 64 | |
| 65 | /-- The relative pullback has the expected image on underlying points. -/ |
| 66 | theorem range_relative_pullback_fst |
| 67 | {T : Over S} (p : H ⟶ P) (b : T ⟶ P) : |
| 68 | Set.range (pullback.fst p b).left = p.left ⁻¹' Set.range b.left := by |
| 69 | have h := ((IsPullback.of_hasPullback p b).map (Over.forget S)).flip |
| 70 | have hr := Scheme.image_preimage_eq_of_isPullback h (Set.univ : Set T.left) |
| 71 | change (pullback.fst p b).left '' ((pullback.snd p b).left ⁻¹' Set.univ) = |
| 72 | p.left ⁻¹' (b.left '' Set.univ) at hr |
| 73 | simpa only [Set.preimage_univ, Set.image_univ] using hr |
| 74 | |
| 75 | /-- The agreement locus has the required universal property under |
| 76 | arbitrary base change, including nonreduced parameter schemes. -/ |
| 77 | theorem factors_through_agreement_iff |
| 78 | [Etale Y.hom] (p : H ⟶ P) (f g : H ⟶ Y) |
| 79 | {T : Over S} (b : T ⟶ P) : |
| 80 | Set.range b.left ⊆ agreementSet p f g ↔ |
| 81 | pullback.fst p b ≫ f = pullback.fst p b ≫ g := by |
| 82 | rw [equalizes_iff_range_subset, range_relative_pullback_fst] |
| 83 | constructor |
| 84 | · intro hb h hh |
| 85 | obtain ⟨t, ht⟩ := hh |
| 86 | by_contra hbad |
| 87 | have hgood := hb ⟨t, rfl⟩ |
| 88 | exact hgood ⟨h, hbad, ht.symm⟩ |
| 89 | · intro hh y hy hbad |
| 90 | obtain ⟨h, hbad, hp⟩ := hbad |
| 91 | apply hbad |
| 92 | apply hh |
| 93 | change p.left h ∈ Set.range b.left |
| 94 | rw [hp] |
| 95 | exact hy |
| 96 | |
| 97 | /-- The block equation cuts out a finite etale open subscheme of the |
| 98 | parameter scheme. Thus the subgroup restriction retains finiteness. -/ |
| 99 | theorem finite_etale_agreement_locus |
| 100 | (p : H ⟶ P) [IsFinite p.left] [Etale p.left] |
| 101 | [Etale Y.hom] [IsSeparated Y.hom] (f g : H ⟶ Y) : |
| 102 | ∃ U : P.left.Opens, |
| 103 | IsFinite U.ι ∧ Etale U.ι ∧ |
| 104 | ∀ (T : Over S) (b : T ⟶ P), |
| 105 | (∀ t : T.left, b.left t ∈ U) ↔ |
| 106 | pullback.fst p b ≫ f = pullback.fst p b ≫ g := by |
| 107 | have hclopen := agreementSet_isClopen p f g |
| 108 | let U : P.left.Opens := ⟨agreementSet p f g, hclopen.2⟩ |
| 109 | have hclosed : IsClosed (Set.range U.ι) := by |
| 110 | rw [Scheme.Opens.range_ι] |
| 111 | exact hclopen.1 |
| 112 | have : IsClosedImmersion U.ι := IsClosedImmersion.of_isPreimmersion U.ι hclosed |
| 113 | refine ⟨U, inferInstance, inferInstance, ?_⟩ |
| 114 | intro T b |
| 115 | change (∀ t : T.left, b.left t ∈ agreementSet p f g) ↔ _ |
| 116 | simpa only [Set.range_subset_iff] using factors_through_agreement_iff p f g b |
| 117 | |
| 118 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.AgreementLocus.Construction |