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