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.AlgebraicGeometry.Morphisms.Immersion |
| 2 | |
| 3 | /-! # Open Over -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.OpenOver.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Open subschemes and factorization maps in a category of schemes over a base. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | def overOpen {S : Scheme.{u}} (X : Over S) (V : X.left.Opens) : Over S := |
| 16 | Over.mk (V.ι ≫ X.hom) |
| 17 | |
| 18 | def overOpenInclusion {S : Scheme.{u}} (X : Over S) (V : X.left.Opens) : |
| 19 | overOpen X V ⟶ X := Over.homMk V.ι rfl |
| 20 | |
| 21 | instance {S : Scheme.{u}} (X : Over S) (V : X.left.Opens) : |
| 22 | IsOpenImmersion (overOpenInclusion X V).left := |
| 23 | inferInstanceAs (IsOpenImmersion V.ι) |
| 24 | |
| 25 | instance {S : Scheme.{u}} (X : Over S) (V : X.left.Opens) : |
| 26 | Mono (overOpenInclusion X V) := Over.mono_of_mono_left _ |
| 27 | |
| 28 | instance {S : Scheme.{u}} (X : Over S) [IsReduced X.left] (V : X.left.Opens) : |
| 29 | IsReduced (overOpen X V).left := inferInstanceAs (IsReduced V.toScheme) |
| 30 | |
| 31 | theorem range_subset_of_overOpen_factor {S : Scheme.{u}} {X Y : Over S} |
| 32 | (f : X ⟶ Y) (V : Y.left.Opens) (k : X ⟶ overOpen Y V) |
| 33 | (h : k ≫ overOpenInclusion Y V = f) : Set.range f.left ⊆ (V : Set Y.left) := by |
| 34 | rw [← h] |
| 35 | rintro _ ⟨x, rfl⟩ |
| 36 | exact (k.left x).property |
| 37 | |
| 38 | def overOpenLift {S : Scheme.{u}} {X Y : Over S} (f : X ⟶ Y) (V : Y.left.Opens) |
| 39 | (h : Set.range f.left ⊆ (V : Set Y.left)) : X ⟶ overOpen Y V := by |
| 40 | let l : X.left ⟶ V.toScheme := IsOpenImmersion.lift V.ι f.left (by simpa using h) |
| 41 | have hl : l ≫ V.ι = f.left := IsOpenImmersion.lift_fac _ _ _ |
| 42 | exact Over.homMk l ((Category.assoc l V.ι Y.hom).symm.trans |
| 43 | ((congrArg (fun a ↦ a ≫ Y.hom) hl).trans f.w)) |
| 44 | |
| 45 | @[reassoc (attr := simp)] |
| 46 | theorem overOpenLift_inclusion {S : Scheme.{u}} {X Y : Over S} |
| 47 | (f : X ⟶ Y) (V : Y.left.Opens) (h : Set.range f.left ⊆ (V : Set Y.left)) : |
| 48 | overOpenLift f V h ≫ overOpenInclusion Y V = f := by |
| 49 | apply Over.OverMorphism.ext |
| 50 | have H := IsOpenImmersion.lift_fac V.ι f.left (by simpa using h) |
| 51 | exact H |
| 52 | |
| 53 | @[reassoc] |
| 54 | theorem overOpenLift_left_ι {S : Scheme.{u}} {X Y : Over S} |
| 55 | (f : X ⟶ Y) (V : Y.left.Opens) (h : Set.range f.left ⊆ (V : Set Y.left)) : |
| 56 | (overOpenLift f V h).left ≫ V.ι = f.left := by |
| 57 | have H := IsOpenImmersion.lift_fac V.ι f.left (by simpa using h) |
| 58 | exact H |
| 59 | |
| 60 | theorem overOpenLift_dominant {S : Scheme.{u}} {X Y : Over S} |
| 61 | (f : X ⟶ Y) [IsDominant f.left] |
| 62 | (V : Y.left.Opens) (h : Set.range f.left ⊆ (V : Set Y.left)) : |
| 63 | IsDominant (overOpenLift f V h).left := by |
| 64 | have : IsDominant ((overOpenLift f V h).left ≫ (overOpenInclusion Y V).left) := by |
| 65 | change IsDominant ((overOpenLift f V h).left ≫ V.ι) |
| 66 | rw [overOpenLift_left_ι] |
| 67 | infer_instance |
| 68 | exact IsDominant.of_comp_of_isOpenImmersion (overOpenLift f V h).left |
| 69 | (overOpenInclusion Y V).left |
| 70 | |
| 71 | def overOpenRestrict {S : Scheme.{u}} {X Y : Over S} (f : X ⟶ Y) (V : Y.left.Opens) : |
| 72 | overOpen X (f.left ⁻¹ᵁ V) ⟶ overOpen Y V := |
| 73 | Over.homMk (f.left ∣_ V) (by |
| 74 | change (f.left ∣_ V) ≫ (V.ι ≫ Y.hom) = (f.left ⁻¹ᵁ V).ι ≫ X.hom |
| 75 | rw [← Category.assoc, morphismRestrict_ι, Category.assoc, f.w]) |
| 76 | |
| 77 | @[reassoc (attr := simp)] |
| 78 | theorem overOpenRestrict_inclusion {S : Scheme.{u}} {X Y : Over S} |
| 79 | (f : X ⟶ Y) (V : Y.left.Opens) : |
| 80 | overOpenRestrict f V ≫ overOpenInclusion Y V = |
| 81 | overOpenInclusion X (f.left ⁻¹ᵁ V) ≫ f := by |
| 82 | apply Over.OverMorphism.ext |
| 83 | exact morphismRestrict_ι f.left V |
| 84 | |
| 85 | theorem overOpenInclusion_range {S : Scheme.{u}} (X : Over S) (V : X.left.Opens) : |
| 86 | Set.range (overOpenInclusion X V).left = (V : Set X.left) := V.range_ι |
| 87 | |
| 88 | theorem over_hom_ext_of_dominant |
| 89 | {S : Scheme.{u}} {W X Y : Over S} [IsReduced X.left] [IsSeparated Y.hom] |
| 90 | (d : W ⟶ X) [IsDominant d.left] (f g : X ⟶ Y) (h : d ≫ f = d ≫ g) : f = g := by |
| 91 | apply Over.OverMorphism.ext |
| 92 | exact ext_of_isDominant_of_isSeparated Y.hom (f.w.trans g.w.symm) d.left |
| 93 | (congrArg (fun k ↦ k.left) h) |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.ArithmeticGeometry.Models.SpreadingOut.OpenOver.Construction |