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.OrdinaryLocus.Openness.BaseChange |
| 2 | import Mathlib.AlgebraicGeometry.Group.Smooth |
| 3 | |
| 4 | /-! # Flat Translations -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FlatTranslations.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Transporting flatness by group translations in the Openness development. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | open MonoidalCategory CartesianMonoidalCategory |
| 14 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 15 | |
| 16 | /-- A commuting pair of automorphisms transports a source open on which |
| 17 | a morphism is flat. -/ |
| 18 | theorem flat_preimage_of_commuting_isos |
| 19 | {X Y : Scheme} (f : X ⟶ Y) (α : X ≅ X) (β : Y ≅ Y) |
| 20 | (hcomm : α.hom ≫ f = f ≫ β.hom) |
| 21 | (U : X.Opens) [Flat (U.ι ≫ f)] : |
| 22 | Flat ((α.hom ⁻¹ᵁ U).ι ≫ f) := by |
| 23 | have hflat : Flat ((α.hom ∣_ U) ≫ (U.ι ≫ f)) := inferInstance |
| 24 | have heq : (α.hom ∣_ U) ≫ (U.ι ≫ f) = |
| 25 | ((α.hom ⁻¹ᵁ U).ι ≫ f) ≫ β.hom := by |
| 26 | rw [← Category.assoc, morphismRestrict_ι, Category.assoc, hcomm, Category.assoc] |
| 27 | rw [heq] at hflat |
| 28 | have : Flat ((((α.hom ⁻¹ᵁ U).ι ≫ f) ≫ β.hom) ≫ β.inv) := inferInstance |
| 29 | simpa only [Category.assoc, Iso.hom_inv_id, Category.comp_id] using this |
| 30 | |
| 31 | /-- If commuting source/target automorphisms act transitively on closed |
| 32 | source points, flatness on one nonempty source open implies global flatness. -/ |
| 33 | theorem flat_of_transitive_automorphisms |
| 34 | {X Y : Scheme} [JacobsonSpace X] (f : X ⟶ Y) |
| 35 | (htrans : ∀ (x y : X), IsClosed {x} → IsClosed {y} → |
| 36 | ∃ (α : X ≅ X) (β : Y ≅ Y), α.hom x = y ∧ α.hom ≫ f = f ≫ β.hom) |
| 37 | (U : X.Opens) (hU : (U : Set X).Nonempty) [Flat (U.ι ≫ f)] : |
| 38 | Flat f := by |
| 39 | have : IsZariskiLocalAtSource @AlgebraicGeometry.Flat := |
| 40 | HasRingHomProperty.instIsZariskiLocalAtSource (Q := @RingHom.Flat) |
| 41 | let I := {V : X.Opens // Flat (V.ι ≫ f)} |
| 42 | let V : I → X.Opens := Subtype.val |
| 43 | have htop : iSup V = ⊤ := by |
| 44 | by_contra hne |
| 45 | have hex : ∃ x : X, x ∉ iSup V := by |
| 46 | by_contra! h |
| 47 | apply hne |
| 48 | exact le_antisymm le_top (fun x _ => h x) |
| 49 | obtain ⟨x₀, hx₀⟩ := hex |
| 50 | obtain ⟨x, hx, hxc⟩ := nonempty_inter_closedPoints |
| 51 | (Z := ((iSup V : X.Opens) : Set X)ᶜ) ⟨x₀, hx₀⟩ |
| 52 | (iSup V).isOpen.isClosed_compl.isLocallyClosed |
| 53 | obtain ⟨y, hy, hyc⟩ := nonempty_inter_closedPoints hU U.isOpen.isLocallyClosed |
| 54 | obtain ⟨α, β, hxy, hcomm⟩ := htrans x y hxc hyc |
| 55 | let W := α.hom ⁻¹ᵁ U |
| 56 | have hW : Flat (W.ι ≫ f) := flat_preimage_of_commuting_isos f α β hcomm U |
| 57 | have hxW : x ∈ W := by |
| 58 | change α.hom x ∈ U |
| 59 | rwa [hxy] |
| 60 | exact hx ((le_iSup V ⟨W, hW⟩) hxW) |
| 61 | exact IsZariskiLocalAtSource.of_iSup_eq_top |
| 62 | (P := @AlgebraicGeometry.Flat) (f := f) V htop (fun i => i.prop) |
| 63 | |
| 64 | /-- Multiplication by n intertwines translation by b with translation by b^n. -/ |
| 65 | theorem multiplication_translation |
| 66 | {S : Scheme} (A : Over S) [GrpObj A] [IsCommMonObj A] |
| 67 | (n : ℕ) (b : 𝟙_ (Over S) ⟶ A) : |
| 68 | (GrpObj.mulRight b).hom ≫ Multiplication.Construction.multiplicationMap A n = |
| 69 | Multiplication.Construction.multiplicationMap A n ≫ (GrpObj.mulRight (b ^ n)).hom := by |
| 70 | simp [GrpObj.mulRight, Multiplication.Construction.multiplicationMap, ← Hom.mul_def, |
| 71 | MonObj.comp_pow, MonObj.comp_mul, mul_pow] |
| 72 | |
| 73 | /-- Group translations give commuting automorphisms carrying any closed |
| 74 | source point of multiplication to any other closed source point. -/ |
| 75 | theorem multiplication_transitive_automorphisms |
| 76 | {K : Type*} [Field K] [IsAlgClosed K] |
| 77 | (A : Over (Spec (.of K))) [GrpObj A] [IsCommMonObj A] |
| 78 | [LocallyOfFiniteType A.hom] (n : ℕ) |
| 79 | (x y : A.left) (hx : IsClosed {x}) (hy : IsClosed {y}) : |
| 80 | ∃ (α : A.left ≅ A.left) (β : A.left ≅ A.left), |
| 81 | α.hom x = y ∧ |
| 82 | α.hom ≫ (Multiplication.Construction.multiplicationMap A n).left = (Multiplication.Construction.multiplicationMap A n).left ≫ β.hom := by |
| 83 | let x' : 𝟙_ (Over (Spec (.of K))) ⟶ A := |
| 84 | Over.homMk (pointOfClosedPoint A.hom x hx) (pointOfClosedPoint_comp A.hom x hx) |
| 85 | let y' : 𝟙_ (Over (Spec (.of K))) ⟶ A := |
| 86 | Over.homMk (pointOfClosedPoint A.hom y hy) (pointOfClosedPoint_comp A.hom y hy) |
| 87 | let b := x'⁻¹ * y' |
| 88 | let α := (Over.forget (Spec (.of K))).mapIso (GrpObj.mulRight b) |
| 89 | let β := (Over.forget (Spec (.of K))).mapIso (GrpObj.mulRight (b ^ n)) |
| 90 | have hxy : x' ≫ (GrpObj.mulRight b).hom = y' := by |
| 91 | change x' ≫ (𝟙 A * (toUnit A ≫ b)) = y' |
| 92 | rw [MonObj.comp_mul, Category.comp_id, ← Category.assoc, |
| 93 | comp_toUnit, toUnit_unit, Category.id_comp] |
| 94 | exact mul_inv_cancel_left x' y' |
| 95 | refine ⟨α, β, ?_, ?_⟩ |
| 96 | · have h : x'.left ≫ α.hom = y'.left := congrArg Over.Hom.left hxy |
| 97 | have heval := |
| 98 | congrArg (fun (z : Spec (.of K) ⟶ A.left) => z (IsLocalRing.closedPoint K)) h |
| 99 | change α.hom (x'.left (IsLocalRing.closedPoint K)) = |
| 100 | y'.left (IsLocalRing.closedPoint K) at heval |
| 101 | have hx' : x'.left (IsLocalRing.closedPoint K) = x := |
| 102 | pointOfClosedPoint_apply A.hom x hx _ |
| 103 | have hy' : y'.left (IsLocalRing.closedPoint K) = y := |
| 104 | pointOfClosedPoint_apply A.hom y hy _ |
| 105 | rw [hx', hy'] at heval |
| 106 | exact heval |
| 107 | · exact congrArg Over.Hom.left (multiplication_translation A n b) |
| 108 | |
| 109 | /-- For multiplication on an algebraic group over an algebraically closed |
| 110 | field, one nonempty flat source open suffices for flatness everywhere. -/ |
| 111 | theorem flat_multiplication_of_nonempty_flat_open |
| 112 | {K : Type*} [Field K] [IsAlgClosed K] |
| 113 | (A : Over (Spec (.of K))) [GrpObj A] [IsCommMonObj A] |
| 114 | [LocallyOfFiniteType A.hom] (n : ℕ) |
| 115 | (U : A.left.Opens) (hU : (U : Set A.left).Nonempty) |
| 116 | [Flat (U.ι ≫ (Multiplication.Construction.multiplicationMap A n).left)] : |
| 117 | Flat (Multiplication.Construction.multiplicationMap A n).left := by |
| 118 | have : JacobsonSpace A.left := LocallyOfFiniteType.jacobsonSpace A.hom |
| 119 | exact flat_of_transitive_automorphisms (Multiplication.Construction.multiplicationMap A n).left |
| 120 | (multiplication_transitive_automorphisms A n) U hU |
| 121 | |
| 122 | end |
| 123 | |
| 124 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FlatTranslations.Construction |