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.IntersectionTheory.ProjectionFormula.BirationalStalk |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Scheme |
| 3 | |
| 4 | /-! # Birational Local Section -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalLocalSection |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Above a valuation-ring point, the actual inverse stalk isomorphism |
| 11 | constructs a local section of a birational scheme map. Separatedness will |
| 12 | compare these sections through their common generic restriction. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y] |
| 21 | (f : X ⟶ Y) (hη : f (genericPoint X) = genericPoint Y) |
| 22 | [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] (y : Y) (x : X) (hx : f x = y) |
| 23 | |
| 24 | def pointStalkMap : Y.presheaf.stalk y ⟶ X.presheaf.stalk x := |
| 25 | (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).hom ≫ f.stalkMap x |
| 26 | |
| 27 | include hη in |
| 28 | theorem pointStalkMap_isIso [ValuationRing (Y.presheaf.stalk y)] : |
| 29 | IsIso (pointStalkMap f y x hx) := by |
| 30 | let : ValuationRing (Y.presheaf.stalk (f x)) := by rw [hx]; infer_instance |
| 31 | let := BirationalStalk.stalkMap_isIso_of_valuation f hη x |
| 32 | unfold pointStalkMap |
| 33 | infer_instance |
| 34 | |
| 35 | omit [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] in |
| 36 | theorem pointStalkMap_functionField : |
| 37 | pointStalkMap f y x hx ≫ CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField) = |
| 38 | CommRingCat.ofHom (algebraMap (Y.presheaf.stalk y) Y.functionField) ≫ |
| 39 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη := by |
| 40 | have hc : f.stalkMap x ≫ CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField) = |
| 41 | CommRingCat.ofHom (algebraMap (Y.presheaf.stalk (f x)) Y.functionField) ≫ |
| 42 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη := by |
| 43 | ext a |
| 44 | exact (Divisor.DivisorRestriction.genericFieldMap_stalk f hη x a).symm |
| 45 | rw [pointStalkMap, Category.assoc, hc, ← Category.assoc] |
| 46 | congr 1 |
| 47 | change (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).hom ≫ |
| 48 | Y.presheaf.stalkSpecializes ((genericPoint_spec Y).specializes trivial) = |
| 49 | Y.presheaf.stalkSpecializes ((genericPoint_spec Y).specializes trivial) |
| 50 | rw [TopCat.Presheaf.stalkCongr_hom, TopCat.Presheaf.stalkSpecializes_comp] |
| 51 | |
| 52 | def localSection [ValuationRing (Y.presheaf.stalk y)] : Spec (Y.presheaf.stalk y) ⟶ X := |
| 53 | letI := pointStalkMap_isIso f hη y x hx |
| 54 | Spec.map (asIso (pointStalkMap f y x hx)).inv ≫ X.fromSpecStalk x |
| 55 | |
| 56 | theorem localSection_comp [ValuationRing (Y.presheaf.stalk y)] : |
| 57 | localSection f hη y x hx ≫ f = Y.fromSpecStalk y := by |
| 58 | let := pointStalkMap_isIso f hη y x hx |
| 59 | have he : f.stalkMap x ≫ (asIso (pointStalkMap f y x hx)).inv = |
| 60 | (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).inv := by |
| 61 | apply (cancel_epi (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).hom).mp |
| 62 | rw [← Category.assoc] |
| 63 | change pointStalkMap f y x hx ≫ (asIso (pointStalkMap f y x hx)).inv = _ |
| 64 | simp |
| 65 | rw [localSection, Category.assoc, ← Scheme.SpecMap_stalkMap_fromSpecStalk, |
| 66 | ← Spec.map_comp_assoc, he, TopCat.Presheaf.stalkCongr_inv, |
| 67 | Scheme.SpecMap_stalkSpecializes_fromSpecStalk] |
| 68 | |
| 69 | theorem localSection_closedPoint [ValuationRing (Y.presheaf.stalk y)] : |
| 70 | localSection f hη y x hx (IsLocalRing.closedPoint (Y.presheaf.stalk y)) = x := by |
| 71 | let := pointStalkMap_isIso f hη y x hx |
| 72 | rw [localSection, Scheme.Hom.comp_apply, Spec_closedPoint, |
| 73 | Scheme.fromSpecStalk_closedPoint] |
| 74 | |
| 75 | def genericApproachMap : Spec X.functionField ⟶ Spec (Y.presheaf.stalk y) := |
| 76 | Spec.map (CommRingCat.ofHom (algebraMap (Y.presheaf.stalk y) Y.functionField) ≫ |
| 77 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη) |
| 78 | |
| 79 | omit [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] in |
| 80 | instance genericApproachMap_isDominant : IsDominant (genericApproachMap f hη y) := by |
| 81 | refine ⟨?_⟩ |
| 82 | change DenseRange (PrimeSpectrum.comap |
| 83 | ((Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.comp (algebraMap (Y.presheaf.stalk y) Y.functionField))) |
| 84 | have hi : Function.Injective ((Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.comp |
| 85 | (algebraMap (Y.presheaf.stalk y) Y.functionField)) := |
| 86 | (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.injective.comp |
| 87 | (IsFractionRing.injective (Y.presheaf.stalk y) Y.functionField) |
| 88 | rw [PrimeSpectrum.denseRange_comap_iff_ker_le_nilRadical, |
| 89 | (RingHom.injective_iff_ker_eq_bot _).mp hi] |
| 90 | exact bot_le |
| 91 | |
| 92 | theorem genericApproach_localSection [ValuationRing (Y.presheaf.stalk y)] : |
| 93 | genericApproachMap f hη y ≫ localSection f hη y x hx = Normalization.Scheme.genericMap X := by |
| 94 | let := pointStalkMap_isIso f hη y x hx |
| 95 | rw [genericApproachMap, localSection, ← Spec.map_comp_assoc, |
| 96 | ← pointStalkMap_functionField f hη y x hx, ← Category.assoc] |
| 97 | change Spec.map ((asIso (pointStalkMap f y x hx)).inv ≫ |
| 98 | (asIso (pointStalkMap f y x hx)).hom ≫ |
| 99 | CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField)) ≫ _ = _ |
| 100 | rw [Iso.inv_hom_id_assoc] |
| 101 | change Spec.map (X.presheaf.stalkSpecializes ((genericPoint_spec X).specializes trivial)) ≫ |
| 102 | X.fromSpecStalk x = _ |
| 103 | rw [Scheme.SpecMap_stalkSpecializes_fromSpecStalk] |
| 104 | rfl |
| 105 | |
| 106 | include hη in |
| 107 | theorem valuationFiber_unique [IsSeparated f] [ValuationRing (Y.presheaf.stalk y)] |
| 108 | (x₁ x₂ : X) (h₁ : f x₁ = y) (h₂ : f x₂ = y) : x₁ = x₂ := by |
| 109 | have hs : localSection f hη y x₁ h₁ = localSection f hη y x₂ h₂ := |
| 110 | ext_of_isDominant_of_isSeparated f |
| 111 | ((localSection_comp f hη y x₁ h₁).trans (localSection_comp f hη y x₂ h₂).symm) |
| 112 | (genericApproachMap f hη y) |
| 113 | ((genericApproach_localSection f hη y x₁ h₁).trans |
| 114 | (genericApproach_localSection f hη y x₂ h₂).symm) |
| 115 | have h := congrArg (fun s : Spec (Y.presheaf.stalk y) ⟶ X => |
| 116 | s (IsLocalRing.closedPoint (Y.presheaf.stalk y))) hs |
| 117 | simpa only [localSection_closedPoint] using h |
| 118 | |
| 119 | include hη in |
| 120 | theorem proper_valuationFiber_unique [IsProper f] [ValuationRing (Y.presheaf.stalk y)] : |
| 121 | ∃! x : X, f x = y := by |
| 122 | let : IsDominant f := by |
| 123 | refine ⟨?_⟩ |
| 124 | rw [denseRange_iff_closure_range] |
| 125 | apply Set.eq_univ_of_univ_subset |
| 126 | rw [← genericPoint_spec Y] |
| 127 | apply closure_mono |
| 128 | exact Set.singleton_subset_iff.mpr ⟨genericPoint X, hη⟩ |
| 129 | let : Surjective f := surjective_of_isDominant_of_isClosed_range f |
| 130 | (f.isClosedMap.isClosed_range) |
| 131 | obtain ⟨a, ha⟩ := f.surjective y |
| 132 | exact ⟨a, ha, fun b hb => valuationFiber_unique f hη y b a hb ha⟩ |
| 133 | |
| 134 | end |
| 135 | |
| 136 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalLocalSection |