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.UnitEndIso |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ModuleIsoNeighborhood |
| 3 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorRestriction |
| 4 | |
| 5 | /-! # Line Bundle Iso -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundleIso.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Invertibility on a field-valued fiber detects local invertibility of a line-bundle morphism. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem lineBundle_morphism_image_mem_isoLocus |
| 18 | {k : Type u} [Field k] {X : Scheme.{u}} {M N : X.Modules} |
| 19 | (hM : LineBundle.Construction.IsLineBundle M) (hN : LineBundle.Construction.IsLineBundle N) (q : M ⟶ N) |
| 20 | (p : Spec (.of k) ⟶ X) [IsIso ((Scheme.Modules.pullback p).map q)] (t : Spec (.of k)) : |
| 21 | p t ∈ ModuleIso.Construction.moduleIsoLocus q := by |
| 22 | obtain ⟨U₁, ht₁, ⟨e₁⟩⟩ := hM (p t) |
| 23 | obtain ⟨U₂, ht₂, ⟨e₂⟩⟩ := hN (p t) |
| 24 | let U := U₁ ⊓ U₂ |
| 25 | have htU : p t ∈ U := ⟨ht₁, ht₂⟩ |
| 26 | let eM := TensorRestriction.Construction.restrictLineBundleTrivialization (show U ≤ U₁ from inf_le_left) e₁ |
| 27 | let eN := TensorRestriction.Construction.restrictLineBundleTrivialization (show U ≤ U₂ from inf_le_right) e₂ |
| 28 | have hrange : Set.range p ⊆ Set.range U.ι := by |
| 29 | rintro x ⟨v, rfl⟩ |
| 30 | have hv : p v ∈ U := by simpa only [Subsingleton.elim v t] using htU |
| 31 | exact ⟨⟨p v, hv⟩, rfl⟩ |
| 32 | let r : Spec (.of k) ⟶ U.toScheme := IsOpenImmersion.lift U.ι p hrange |
| 33 | have hr : r ≫ U.ι = p := IsOpenImmersion.lift_fac U.ι p hrange |
| 34 | have hcomp : IsIso ((Scheme.Modules.pullback (r ≫ U.ι)).map q) := |
| 35 | ModuleIso.Construction.isIso_map_of_naturalIso (Scheme.Modules.pullbackCongr hr.symm) q |
| 36 | have hdouble : IsIso ((Scheme.Modules.pullback U.ι ⋙ Scheme.Modules.pullback r).map q) := |
| 37 | ModuleIso.Construction.isIso_map_of_naturalIso (Scheme.Modules.pullbackComp r U.ι).symm q |
| 38 | have hqU : IsIso ((Scheme.Modules.pullback r).map ((Scheme.Modules.pullback U.ι).map q)) := hdouble |
| 39 | let qU : End (LineBundle.Construction.structureSheafModule U.toScheme) := eM.inv ≫ (Scheme.Modules.pullback U.ι).map q ≫ eN.hom |
| 40 | have hqU' : IsIso ((Scheme.Modules.pullback r).map qU) := by |
| 41 | dsimp only [qU] |
| 42 | rw [Functor.map_comp, Functor.map_comp] |
| 43 | infer_instance |
| 44 | have hxU : r t ∈ ModuleIso.Construction.moduleIsoLocus qU := (ModuleIso.Construction.mem_moduleIsoLocus_iff qU (r t)).mpr |
| 45 | ⟨U.toScheme.basicOpen (ModuleSections.Construction.structureSheafEndRingEquiv U.toScheme qU), |
| 46 | UnitEndIso.Construction.mem_basicOpen_of_isIso_pullback_unitEnd r qU t, UnitEndIso.Construction.isIso_pullback_unitEnd_basicOpen U.toScheme qU⟩ |
| 47 | have hx := ModuleIsoNeighborhood.Construction.image_mem_moduleIsoLocus U.ι q (r t) |
| 48 | (ModuleIsoNeighborhood.Construction.mem_moduleIsoLocus_of_conjugate ((Scheme.Modules.pullback U.ι).map q) eM.symm eN (r t) hxU) |
| 49 | exact (congrArg (fun y : X ↦ y ∈ ModuleIso.Construction.moduleIsoLocus q) |
| 50 | (congrArg (fun a : Spec (.of k) ⟶ X ↦ a t) hr)).mp hx |
| 51 | |
| 52 | theorem lineBundle_morphism_mem_isoLocus_iff |
| 53 | {X : Scheme.{u}} {M N : X.Modules} (hM : LineBundle.Construction.IsLineBundle M) (hN : LineBundle.Construction.IsLineBundle N) |
| 54 | (q : M ⟶ N) (x : X) : |
| 55 | x ∈ ModuleIso.Construction.moduleIsoLocus q ↔ IsIso ((Scheme.Modules.pullback (X.fromSpecResidueField x)).map q) := by |
| 56 | constructor |
| 57 | · intro hx |
| 58 | obtain ⟨U, hxU, hU⟩ := (ModuleIso.Construction.mem_moduleIsoLocus_iff q x).mp hx |
| 59 | have hrange : Set.range (X.fromSpecResidueField x) ⊆ Set.range U.ι := by |
| 60 | rintro y ⟨v, rfl⟩ |
| 61 | exact ⟨⟨x, hxU⟩, (X.fromSpecResidueField_apply x v).symm⟩ |
| 62 | let r := IsOpenImmersion.lift U.ι (X.fromSpecResidueField x) hrange |
| 63 | have hcomp := @ModuleIso.Construction.isIso_pullbackMap_comp X U.toScheme (Spec (X.residueField x)) U.ι r M N q hU |
| 64 | exact ModuleIso.Construction.isIso_map_of_naturalIso |
| 65 | (Scheme.Modules.pullbackCongr (IsOpenImmersion.lift_fac U.ι (X.fromSpecResidueField x) hrange)) q |
| 66 | · intro hq |
| 67 | have hx := @lineBundle_morphism_image_mem_isoLocus (X.residueField x) _ X M N hM hN q |
| 68 | (X.fromSpecResidueField x) hq (IsLocalRing.closedPoint (X.residueField x)) |
| 69 | exact (congrArg (fun y : X ↦ y ∈ ModuleIso.Construction.moduleIsoLocus q) |
| 70 | (X.fromSpecResidueField_apply x (IsLocalRing.closedPoint (X.residueField x)))).mp hx |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundleIso.Construction |