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.Local.Principal |
| 2 | import Mathlib.AlgebraicGeometry.FunctionField |
| 3 | |
| 4 | /-! # Local Fraction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.LocalFraction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Restricting an ambient germ to the function field of a reduced |
| 13 | support is compatible with sections and is independent of the chosen point. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | namespace Restriction |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal |
| 22 | |
| 23 | def toFunctionField (X : Scheme) (W : IrreducibleCloseds X) (x : X) (hx : x ∈ (W : Set X)) : |
| 24 | X.presheaf.stalk x ⟶ (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField := |
| 25 | Local.Principal.supportStalkMap X W x hx ≫ CommRingCat.ofHom (algebraMap |
| 26 | ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W x hx)) |
| 27 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) |
| 28 | |
| 29 | theorem germ_square {X Y : Scheme} [IsIntegral Y] (i : Y ⟶ X) |
| 30 | (U : X.Opens) [Nonempty (i ⁻¹ᵁ U)] (y : Y) (x : X) (h : i y = x) (hxU : x ∈ U) : |
| 31 | X.presheaf.germ U x hxU ≫ eqToHom (congrArg (fun t => X.presheaf.stalk t) h.symm) ≫ |
| 32 | i.stalkMap y ≫ CommRingCat.ofHom (algebraMap (Y.presheaf.stalk y) Y.functionField) = |
| 33 | i.app U ≫ Y.germToFunctionField (i ⁻¹ᵁ U) := by |
| 34 | subst x |
| 35 | simp only [eqToHom_refl, Category.id_comp] |
| 36 | rw [← Category.assoc, i.germ_stalkMap U y hxU, Category.assoc] |
| 37 | congr 1 |
| 38 | ext a |
| 39 | exact Y.algebraMap_germ_eq_germToFunctionField hxU a |
| 40 | |
| 41 | theorem toFunctionField_germ (X : Scheme) (W : IrreducibleCloseds X) |
| 42 | (U : X.Opens) [Nonempty ((CycleClass.Geometric.GenericPoint.reducedSupportι W) ⁻¹ᵁ U)] |
| 43 | (x : X) (hx : x ∈ (W : Set X)) (hxU : x ∈ U) (a : Γ(X, U)) : |
| 44 | toFunctionField X W x hx (X.presheaf.germ U x hxU a) = |
| 45 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).germToFunctionField ((CycleClass.Geometric.GenericPoint.reducedSupportι W) ⁻¹ᵁ U) |
| 46 | ((CycleClass.Geometric.GenericPoint.reducedSupportι W).app U a) := |
| 47 | congrArg (fun t : Γ(X, U) ⟶ (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField => t a) |
| 48 | (germ_square (CycleClass.Geometric.GenericPoint.reducedSupportι W) U (CycleClass.Thom.IntersectionGeometry.supportPreimage W x hx) x (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec W x hx) hxU) |
| 49 | |
| 50 | theorem germ_independent (X : Scheme) (W : IrreducibleCloseds X) (U : X.Opens) |
| 51 | (x : X) (hx : x ∈ (W : Set X)) (hxU : x ∈ U) |
| 52 | (z : X) (hz : z ∈ (W : Set X)) (hzU : z ∈ U) (a : Γ(X, U)) : |
| 53 | toFunctionField X W x hx (X.presheaf.germ U x hxU a) = |
| 54 | toFunctionField X W z hz (X.presheaf.germ U z hzU a) := by |
| 55 | let : Nonempty ((CycleClass.Geometric.GenericPoint.reducedSupportι W) ⁻¹ᵁ U) := |
| 56 | ⟨⟨CycleClass.Thom.IntersectionGeometry.supportPreimage W x hx, by |
| 57 | change CycleClass.Geometric.GenericPoint.reducedSupportι W (CycleClass.Thom.IntersectionGeometry.supportPreimage W x hx) ∈ U |
| 58 | rwa [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec]⟩⟩ |
| 59 | rw [toFunctionField_germ, toFunctionField_germ] |
| 60 | |
| 61 | end Restriction |
| 62 | |
| 63 | end |
| 64 | |
| 65 | /-! A unit at the generic point of a support has, near every point of |
| 66 | that support, a fraction presentation with numerator and denominator |
| 67 | both nonzero on the support. Its restricted rational function is fixed. -/ |
| 68 | |
| 69 | set_option backward.isDefEq.respectTransparency false |
| 70 | set_option backward.isDefEq.respectTransparency.types false |
| 71 | |
| 72 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 73 | |
| 74 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.LocalFraction.Restriction |
| 75 | |
| 76 | theorem exists_fraction (X : Scheme) [IsIntegral X] (W : IrreducibleCloseds X) |
| 77 | (hz : CycleClass.Thom.IntersectionGeometry.supportPoint W ∈ (W : Set X)) (x : X) (hx : x ∈ (W : Set X)) |
| 78 | (u : X.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint W)) (hu : IsUnit u) : |
| 79 | ∃ a b : X.presheaf.stalk x, |
| 80 | Local.Principal.supportStalkMap X W x hx a ≠ 0 ∧ Local.Principal.supportStalkMap X W x hx b ≠ 0 ∧ |
| 81 | algebraMap (X.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint W)) X.functionField u = |
| 82 | algebraMap (X.presheaf.stalk x) X.functionField a / |
| 83 | algebraMap (X.presheaf.stalk x) X.functionField b ∧ |
| 84 | Restriction.toFunctionField X W (CycleClass.Thom.IntersectionGeometry.supportPoint W) hz u = |
| 85 | Restriction.toFunctionField X W x hx a / Restriction.toFunctionField X W x hx b := by |
| 86 | obtain ⟨U, hU, hxU, _⟩ := exists_isAffineOpen_mem_and_subset (Opens.mem_top x) |
| 87 | let : Nonempty U := ⟨⟨x, hxU⟩⟩ |
| 88 | have hzU : CycleClass.Thom.IntersectionGeometry.supportPoint W ∈ U := |
| 89 | ((W.isIrreducible.isGenericPoint_genericPoint W.isClosed).specializes hx).mem_open U.isOpen hxU |
| 90 | let B := Γ(X, U) |
| 91 | let R := X.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint W) |
| 92 | let : Algebra B R := (X.presheaf.germ U (CycleClass.Thom.IntersectionGeometry.supportPoint W) hzU).hom.toAlgebra |
| 93 | let M := (hU.primeIdealOf ⟨CycleClass.Thom.IntersectionGeometry.supportPoint W, hzU⟩).asIdeal.primeCompl |
| 94 | let : IsLocalization M R := hU.isLocalization_stalk ⟨CycleClass.Thom.IntersectionGeometry.supportPoint W, hzU⟩ |
| 95 | obtain ⟨⟨c, d⟩, he⟩ := IsLocalization.surj M u |
| 96 | have hd : IsUnit (algebraMap B R (d : B)) := IsLocalization.map_units R d |
| 97 | have hc : IsUnit (algebraMap B R c) := he ▸ hu.mul hd |
| 98 | let a := X.presheaf.germ U x hxU c |
| 99 | let b := X.presheaf.germ U x hxU (d : B) |
| 100 | have hγ (v : B) : Restriction.toFunctionField X W x hx (X.presheaf.germ U x hxU v) = |
| 101 | Restriction.toFunctionField X W (CycleClass.Thom.IntersectionGeometry.supportPoint W) hz (algebraMap B R v) := |
| 102 | Restriction.germ_independent X W U x hx hxU (CycleClass.Thom.IntersectionGeometry.supportPoint W) hz hzU v |
| 103 | have haγ : Restriction.toFunctionField X W x hx a ≠ 0 := by |
| 104 | rw [hγ c] |
| 105 | exact (hc.map (Restriction.toFunctionField X W (CycleClass.Thom.IntersectionGeometry.supportPoint W) hz).hom).ne_zero |
| 106 | have hbγ : Restriction.toFunctionField X W x hx b ≠ 0 := by |
| 107 | rw [hγ (d : B)] |
| 108 | exact (hd.map (Restriction.toFunctionField X W (CycleClass.Thom.IntersectionGeometry.supportPoint W) hz).hom).ne_zero |
| 109 | have ha : Local.Principal.supportStalkMap X W x hx a ≠ 0 := by |
| 110 | intro h |
| 111 | apply haγ |
| 112 | change algebraMap _ (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField (Local.Principal.supportStalkMap X W x hx a) = 0 |
| 113 | rw [h, map_zero] |
| 114 | have hb : Local.Principal.supportStalkMap X W x hx b ≠ 0 := by |
| 115 | intro h |
| 116 | apply hbγ |
| 117 | change algebraMap _ (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField (Local.Principal.supportStalkMap X W x hx b) = 0 |
| 118 | rw [h, map_zero] |
| 119 | have hX (v : B) : algebraMap (X.presheaf.stalk x) X.functionField |
| 120 | (X.presheaf.germ U x hxU v) = algebraMap R X.functionField (algebraMap B R v) := by |
| 121 | change algebraMap (X.presheaf.stalk x) X.functionField (X.presheaf.germ U x hxU v) = |
| 122 | algebraMap R X.functionField (X.presheaf.germ U (CycleClass.Thom.IntersectionGeometry.supportPoint W) hzU v) |
| 123 | rw [X.algebraMap_germ_eq_germToFunctionField hxU, X.algebraMap_germ_eq_germToFunctionField hzU] |
| 124 | have hbX : algebraMap (X.presheaf.stalk x) X.functionField b ≠ 0 := by |
| 125 | rw [hX (d : B)] |
| 126 | exact (hd.map (algebraMap R X.functionField)).ne_zero |
| 127 | refine ⟨a, b, ha, hb, ?_, ?_⟩ |
| 128 | · apply (eq_div_iff hbX).mpr |
| 129 | rw [hX (d : B), hX c, ← map_mul, he] |
| 130 | · apply (eq_div_iff hbγ).mpr |
| 131 | rw [hγ (d : B), hγ c, ← map_mul, he] |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.LocalFraction |