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.ArithmeticGeometry.Descent.CMVariety.EmbeddedGroupCoefficients |
| 2 | import Mathlib.AlgebraicGeometry.Group.Smooth |
| 3 | |
| 4 | /-! # Open Group Generation -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.OpenGroupGeneration.Abelian |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A nonempty open in an irreducible smooth group over an algebraically |
| 11 | closed field generates the whole group by products of two points. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 15 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 16 | |
| 17 | def fieldPointLiftToOpen {K : Type} [Field K] {V G : Over (Spec (.of K))} |
| 18 | (i : V ⟶ G) [IsOpenImmersion i.left] (p : 𝟙_ (Over (Spec (.of K))) ⟶ G) |
| 19 | (hp : p.left (IsLocalRing.closedPoint K) ∈ Set.range i.left) : |
| 20 | 𝟙_ (Over (Spec (.of K))) ⟶ V := by |
| 21 | have hr : Set.range p.left ⊆ Set.range i.left := by |
| 22 | rintro _ ⟨x, rfl⟩ |
| 23 | have hx : x = IsLocalRing.closedPoint K := @Subsingleton.elim (PrimeSpectrum K) _ x _ |
| 24 | rwa [hx] |
| 25 | let q := IsOpenImmersion.lift i.left p.left hr |
| 26 | exact Over.homMk q (by |
| 27 | rw [← i.w, ← Category.assoc, IsOpenImmersion.lift_fac] |
| 28 | exact p.w) |
| 29 | |
| 30 | theorem fieldPointLiftToOpen_comp {K : Type} [Field K] {V G : Over (Spec (.of K))} |
| 31 | (i : V ⟶ G) [IsOpenImmersion i.left] (p : 𝟙_ (Over (Spec (.of K))) ⟶ G) |
| 32 | (hp : p.left (IsLocalRing.closedPoint K) ∈ Set.range i.left) : |
| 33 | fieldPointLiftToOpen i p hp ≫ i = p := by |
| 34 | apply Over.OverMorphism.ext |
| 35 | exact IsOpenImmersion.lift_fac _ _ _ |
| 36 | |
| 37 | theorem open_group_product_surjective |
| 38 | {K : Type} [Field K] [IsAlgClosed K] {V G : Over (Spec (.of K))} |
| 39 | [GrpObj G] [Smooth G.hom] [IrreducibleSpace G.left] [Nonempty V.left] |
| 40 | (i : V ⟶ G) [IsOpenImmersion i.left] : Surjective (EmbeddedGroupCoefficients.Abelian.groupOpenProduct i).left := by |
| 41 | have : JacobsonSpace G.left := LocallyOfFiniteType.jacobsonSpace G.hom |
| 42 | have : Smooth (EmbeddedGroupCoefficients.Abelian.groupOpenProduct i).left := EmbeddedGroupCoefficients.Abelian.groupOpenProduct_smooth i |
| 43 | have hclosed : ∀ z : G.left, IsClosed {z} → z ∈ Set.range (EmbeddedGroupCoefficients.Abelian.groupOpenProduct i).left := by |
| 44 | intro z hz |
| 45 | let z' : 𝟙_ (Over (Spec (.of K))) ⟶ G := |
| 46 | Over.homMk (pointOfClosedPoint G.hom z hz) (pointOfClosedPoint_comp G.hom z hz) |
| 47 | let e : G ≅ G := asIso (GrpObj.inv (X := G)) ≪≫ GrpObj.mulRight z' |
| 48 | have : IsIso e.hom.left := ((Over.forget (Spec (.of K))).mapIso e).isIso_hom |
| 49 | let U := Set.range i.left |
| 50 | have hU : IsOpen U := i.left.isOpenEmbedding.isOpen_range |
| 51 | have hUne : U.Nonempty := Set.range_nonempty i.left |
| 52 | have hpre : (e.hom.left ⁻¹' U).Nonempty := by |
| 53 | obtain ⟨w, hw⟩ := hUne |
| 54 | obtain ⟨v, hv⟩ := e.hom.left.surjective w |
| 55 | exact ⟨v, by change e.hom.left v ∈ U; rwa [hv]⟩ |
| 56 | have hinter := nonempty_preirreducible_inter hU (hU.preimage e.hom.left.continuous) hUne hpre |
| 57 | obtain ⟨b, ⟨hbU, hbeU⟩, hbc⟩ := nonempty_inter_closedPoints hinter |
| 58 | (hU.inter (hU.preimage e.hom.left.continuous)).isLocallyClosed |
| 59 | let b' : 𝟙_ (Over (Spec (.of K))) ⟶ G := |
| 60 | Over.homMk (pointOfClosedPoint G.hom b hbc) (pointOfClosedPoint_comp G.hom b hbc) |
| 61 | have hb' : b'.left (IsLocalRing.closedPoint K) = b := pointOfClosedPoint_apply G.hom b hbc _ |
| 62 | have hbLift : b'.left (IsLocalRing.closedPoint K) ∈ Set.range i.left := hb'.symm ▸ hbU |
| 63 | have hcLift : (b' ≫ e.hom).left (IsLocalRing.closedPoint K) ∈ Set.range i.left := by |
| 64 | change e.hom.left (b'.left (IsLocalRing.closedPoint K)) ∈ U |
| 65 | rwa [hb'] |
| 66 | let a := fieldPointLiftToOpen i b' hbLift |
| 67 | let c := fieldPointLiftToOpen i (b' ≫ e.hom) hcLift |
| 68 | have ha : a ≫ i = b' := fieldPointLiftToOpen_comp i b' hbLift |
| 69 | have hc : c ≫ i = b' ≫ e.hom := fieldPointLiftToOpen_comp i (b' ≫ e.hom) hcLift |
| 70 | have hp : lift a c ≫ EmbeddedGroupCoefficients.Abelian.groupOpenProduct i = z' := by |
| 71 | rw [EmbeddedGroupCoefficients.Abelian.groupOpenProduct_points, ha, hc] |
| 72 | simp [e, GrpObj.mulRight, ← Hom.mul_def, MonObj.comp_mul, ← Hom.inv_def] |
| 73 | refine ⟨(lift a c).left (IsLocalRing.closedPoint K), ?_⟩ |
| 74 | have h := congrArg (fun p : 𝟙_ (Over (Spec (.of K))) ⟶ G => |
| 75 | p.left (IsLocalRing.closedPoint K)) hp |
| 76 | exact h.trans (pointOfClosedPoint_apply G.hom z hz _) |
| 77 | constructor |
| 78 | intro x |
| 79 | by_contra hx |
| 80 | obtain ⟨z, hz, hzc⟩ := nonempty_inter_closedPoints |
| 81 | (Z := (Set.range (EmbeddedGroupCoefficients.Abelian.groupOpenProduct i).left)ᶜ) ⟨x, hx⟩ |
| 82 | (EmbeddedGroupCoefficients.Abelian.groupOpenProduct i).left.isOpenMap.isOpen_range.isClosed_compl.isLocallyClosed |
| 83 | exact hz (hclosed z hzc) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.ArithmeticGeometry.Descent.CMVariety.OpenGroupGeneration.Abelian |