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.DivisorClass.Chern.FramesFrame |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ClosedProjective |
| 3 | import Mathlib.AlgebraicGeometry.OrderOfVanishing |
| 4 | |
| 5 | /-! # Coordinates -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # ChernClass: rational-section coordinates of an actual line bundle on an integral scheme |
| 15 | |
| 16 | The generator on the chart of the generic point determines a rational section. |
| 17 | Its coordinates in every other chart are germs of actual transition units. |
| 18 | Their orders of vanishing vanish on the reference chart. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 22 | |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | set_option backward.isDefEq.respectTransparency.types false |
| 25 | set_option backward.defeqAttrib.useBackward true |
| 26 | |
| 27 | variable {X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (L : Line.Bundles.AlgebraicLineBundle X) |
| 28 | variable [IsIntegral X.carrier] |
| 29 | |
| 30 | /-- Every nonempty trivializing chart contains the generic point. -/ |
| 31 | theorem Line.Bundles.AlgebraicLineBundle.genericPoint_mem_trivializingOpen (x : X.carrier) : |
| 32 | genericPoint X.carrier ∈ L.trivializingOpen x := by |
| 33 | apply ((genericPoint_spec X.carrier).mem_open_set_iff (L.trivializingOpen x).isOpen).mpr |
| 34 | exact ⟨x, Set.mem_univ x, L.mem_trivializingOpen x⟩ |
| 35 | |
| 36 | /-- The chart whose generator is used as the reference rational section. -/ |
| 37 | abbrev Line.Bundles.AlgebraicLineBundle.rationalReferenceOpen : X.carrier.Opens := |
| 38 | L.trivializingOpen (genericPoint X.carrier) |
| 39 | |
| 40 | /-- The nonempty overlap on which a rational-section coordinate is a regular unit. -/ |
| 41 | abbrev Line.Bundles.AlgebraicLineBundle.rationalCoordinateDomain (x : X.carrier) : X.carrier.Opens := |
| 42 | L.trivializingOpen x ⊓ L.rationalReferenceOpen |
| 43 | |
| 44 | instance Line.Bundles.AlgebraicLineBundle.rationalCoordinateDomain_nonempty (x : X.carrier) : |
| 45 | Nonempty (L.rationalCoordinateDomain x) := |
| 46 | ⟨⟨genericPoint X.carrier, L.genericPoint_mem_trivializingOpen x, |
| 47 | L.mem_trivializingOpen (genericPoint X.carrier)⟩⟩ |
| 48 | |
| 49 | /-- The rational coordinate of the reference generator in the frame at `x`. |
| 50 | It is a unit in the actual function field, obtained from a genuine regular transition. -/ |
| 51 | def Line.Bundles.AlgebraicLineBundle.rationalSectionCoordinate (x : X.carrier) : X.carrier.functionFieldˣ := |
| 52 | Units.map (X.carrier.germToFunctionField (L.rationalCoordinateDomain x)).hom.toMonoidHom |
| 53 | (L.ambientTransitionOn x (genericPoint X.carrier) (L.rationalCoordinateDomain x) |
| 54 | inf_le_left inf_le_right) |
| 55 | |
| 56 | theorem Line.Bundles.AlgebraicLineBundle.rationalSectionCoordinate_ne_zero (x : X.carrier) : |
| 57 | (L.rationalSectionCoordinate x : X.carrier.functionField) ≠ 0 := |
| 58 | Units.ne_zero _ |
| 59 | |
| 60 | /-- The local-length order of the rational section in the chart at the point. -/ |
| 61 | def Line.Bundles.AlgebraicLineBundle.rationalSectionOrder (x : X.carrier) : ℤ := |
| 62 | X.carrier.ord (L.rationalSectionCoordinate x : X.carrier.functionField) x |
| 63 | |
| 64 | /-- The reference section is a generator on its original trivializing chart. -/ |
| 65 | theorem Line.Bundles.AlgebraicLineBundle.rationalSectionOrder_zero_on_reference (x : X.carrier) |
| 66 | (hx : x ∈ L.rationalReferenceOpen) : L.rationalSectionOrder x = 0 := by |
| 67 | change X.carrier.ord |
| 68 | (X.carrier.germToFunctionField (L.rationalCoordinateDomain x) |
| 69 | (L.ambientTransitionOn x (genericPoint X.carrier) (L.rationalCoordinateDomain x) |
| 70 | inf_le_left inf_le_right : Γ(X.carrier, L.rationalCoordinateDomain x))) x = 0 |
| 71 | exact Scheme.ord_of_isUnit (Units.isUnit _) ⟨L.mem_trivializingOpen x, hx⟩ |
| 72 | |
| 73 | /-- Only actual codimension-one points can carry a nonzero multiplicity. -/ |
| 74 | theorem Line.Bundles.AlgebraicLineBundle.rationalSectionOrder_eq_zero_of_coheight_ne_one (x : X.carrier) |
| 75 | (hx : Order.coheight x ≠ 1) : L.rationalSectionOrder x = 0 := |
| 76 | Scheme.ord_eq_zero_of_coheight_neq_one hx _ |
| 77 | |
| 78 | end |
| 79 | |
| 80 | /-! |
| 81 | # ChernClass: compatibility of the rational section's local coordinates |
| 82 | |
| 83 | Taking the germ at the generic point commutes with restricting the actual |
| 84 | transition units. The cocycle law then gives the usual coordinate-change law. |
| 85 | -/ |
| 86 | |
| 87 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 88 | |
| 89 | set_option backward.isDefEq.respectTransparency false |
| 90 | set_option backward.isDefEq.respectTransparency.types false |
| 91 | set_option backward.defeqAttrib.useBackward true |
| 92 | |
| 93 | namespace Rational.Coordinates.Construction |
| 94 | |
| 95 | theorem germToFunctionField_restrict (X : Scheme) [IsIntegral X] |
| 96 | {V U : X.Opens} [Nonempty V] [Nonempty U] (h : V ≤ U) (s : Γ(X, U)) : |
| 97 | X.germToFunctionField V (X.presheaf.map (homOfLE h).op s) = X.germToFunctionField U s := |
| 98 | X.presheaf.germ_res_apply (homOfLE h) (genericPoint X) _ s |
| 99 | |
| 100 | end Rational.Coordinates.Construction |
| 101 | |
| 102 | variable {X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (L : Line.Bundles.AlgebraicLineBundle X) |
| 103 | variable [IsIntegral X.carrier] |
| 104 | |
| 105 | /-- The actual transition unit viewed in the function field. -/ |
| 106 | def Line.Bundles.AlgebraicLineBundle.genericTransitionUnit (i j : X.carrier) (U : X.carrier.Opens) [Nonempty U] |
| 107 | (hi : U ≤ L.trivializingOpen i) (hj : U ≤ L.trivializingOpen j) : X.carrier.functionFieldˣ := |
| 108 | Units.map (X.carrier.germToFunctionField U).hom.toMonoidHom (L.ambientTransitionOn i j U hi hj) |
| 109 | |
| 110 | /-- Further restriction does not change the generic germ of a transition. -/ |
| 111 | theorem Line.Bundles.AlgebraicLineBundle.genericTransitionUnit_restrict (i j : X.carrier) {V U : X.carrier.Opens} |
| 112 | [Nonempty V] [Nonempty U] (h : V ≤ U) |
| 113 | (hi : U ≤ L.trivializingOpen i) (hj : U ≤ L.trivializingOpen j) : |
| 114 | L.genericTransitionUnit i j V (h.trans hi) (h.trans hj) = L.genericTransitionUnit i j U hi hj := by |
| 115 | apply Units.ext |
| 116 | have hu := congrArg Units.val (L.ambientTransitionOn_restrict i j h hi hj) |
| 117 | change X.carrier.presheaf.map (homOfLE h).op (L.ambientTransitionOn i j U hi hj : Γ(X.carrier, U)) = |
| 118 | (L.ambientTransitionOn i j V (h.trans hi) (h.trans hj) : Γ(X.carrier, V)) at hu |
| 119 | change X.carrier.germToFunctionField V _ = X.carrier.germToFunctionField U _ |
| 120 | rw [← hu] |
| 121 | exact Rational.Coordinates.Construction.germToFunctionField_restrict X.carrier h _ |
| 122 | |
| 123 | theorem Line.Bundles.AlgebraicLineBundle.genericTransitionUnit_cocycle (i j k : X.carrier) (U : X.carrier.Opens) [Nonempty U] |
| 124 | (hi : U ≤ L.trivializingOpen i) (hj : U ≤ L.trivializingOpen j) |
| 125 | (hk : U ≤ L.trivializingOpen k) : |
| 126 | L.genericTransitionUnit i j U hi hj * L.genericTransitionUnit j k U hj hk = |
| 127 | L.genericTransitionUnit i k U hi hk := by |
| 128 | unfold Line.Bundles.AlgebraicLineBundle.genericTransitionUnit |
| 129 | rw [← map_mul, L.ambientTransitionOn_cocycle] |
| 130 | |
| 131 | /-- A rational section has the usual change-of-coordinate law on every common nonempty open. -/ |
| 132 | theorem Line.Bundles.AlgebraicLineBundle.rationalSectionCoordinate_change (i j : X.carrier) (U : X.carrier.Opens) [Nonempty U] |
| 133 | (hi : U ≤ L.trivializingOpen i) (hj : U ≤ L.trivializingOpen j) : |
| 134 | L.rationalSectionCoordinate i = L.genericTransitionUnit i j U hi hj * L.rationalSectionCoordinate j := by |
| 135 | let W := U ⊓ L.rationalReferenceOpen |
| 136 | have hpU : genericPoint X.carrier ∈ U := |
| 137 | ((genericPoint_spec X.carrier).mem_open_set_iff U.isOpen).mpr (by simpa using ‹Nonempty U›) |
| 138 | let : Nonempty W := ⟨⟨genericPoint X.carrier, hpU, L.mem_trivializingOpen _⟩⟩ |
| 139 | have hWU : W ≤ U := inf_le_left |
| 140 | have hWi : W ≤ L.rationalCoordinateDomain i := le_inf (hWU.trans hi) inf_le_right |
| 141 | have hWj : W ≤ L.rationalCoordinateDomain j := le_inf (hWU.trans hj) inf_le_right |
| 142 | have hci : L.genericTransitionUnit i (genericPoint X.carrier) W |
| 143 | (hWU.trans hi) inf_le_right = L.rationalSectionCoordinate i := |
| 144 | L.genericTransitionUnit_restrict i (genericPoint X.carrier) hWi inf_le_left inf_le_right |
| 145 | have hcj : L.genericTransitionUnit j (genericPoint X.carrier) W |
| 146 | (hWU.trans hj) inf_le_right = L.rationalSectionCoordinate j := |
| 147 | L.genericTransitionUnit_restrict j (genericPoint X.carrier) hWj inf_le_left inf_le_right |
| 148 | rw [← hci, ← hcj, ← L.genericTransitionUnit_restrict i j hWU hi hj] |
| 149 | exact (L.genericTransitionUnit_cocycle i j (genericPoint X.carrier) W |
| 150 | (hWU.trans hi) (hWU.trans hj) inf_le_right).symm |
| 151 | |
| 152 | /-- The divisor multiplicity can be computed in any trivializing chart |
| 153 | containing the point, because changes of frame have order zero there. -/ |
| 154 | theorem Line.Bundles.AlgebraicLineBundle.rationalSectionOrder_in_chart (x i : X.carrier) |
| 155 | (hx : x ∈ L.trivializingOpen i) : |
| 156 | L.rationalSectionOrder x = X.carrier.ord |
| 157 | (L.rationalSectionCoordinate i : X.carrier.functionField) x := by |
| 158 | let U := L.trivializingOpen x ⊓ L.trivializingOpen i |
| 159 | let : Nonempty U := ⟨⟨x, L.mem_trivializingOpen x, hx⟩⟩ |
| 160 | have hc := congrArg Units.val (L.rationalSectionCoordinate_change x i U inf_le_left inf_le_right) |
| 161 | change (L.rationalSectionCoordinate x : X.carrier.functionField) = |
| 162 | (L.genericTransitionUnit x i U inf_le_left inf_le_right : X.carrier.functionField) * |
| 163 | (L.rationalSectionCoordinate i : X.carrier.functionField) at hc |
| 164 | unfold Line.Bundles.AlgebraicLineBundle.rationalSectionOrder |
| 165 | rw [hc, Scheme.ord_mul (Units.ne_zero _) (Units.ne_zero _)] |
| 166 | have hz : X.carrier.ord |
| 167 | (L.genericTransitionUnit x i U inf_le_left inf_le_right : X.carrier.functionField) x = 0 := by |
| 168 | exact Scheme.ord_of_isUnit (Units.isUnit (L.ambientTransitionOn x i U inf_le_left inf_le_right)) |
| 169 | ⟨L.mem_trivializingOpen x, hx⟩ |
| 170 | rw [hz, zero_add] |
| 171 | |
| 172 | end |
| 173 | |
| 174 | end OAI.AlgebraicGeometry.DivisorClass.Chern |