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.Quotients.FiniteDescent.RationalSheafIs |
| 2 | |
| 3 | /-! # Rational Regularity Local -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.RationalRegularityLocal.Construction.RationalRegularity |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Rational functions regular at every point of an open set are actual regular sections. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {X : Scheme.{u}} [IsIntegral X] |
| 16 | |
| 17 | theorem scalarMap_injective (U : X.Opens) : Function.Injective (RationalSheafIs.Construction.RationalSheaf.scalarMap U) := by |
| 18 | intro a b hab |
| 19 | by_cases hU : Nonempty U |
| 20 | · have := hU |
| 21 | exact X.germToFunctionField_injective U (congrFun hab ⟨hU⟩) |
| 22 | · have hbot : U = ⊥ := by |
| 23 | apply SetLike.ext |
| 24 | intro x |
| 25 | exact ⟨fun hx => (hU ⟨⟨x, hx⟩⟩).elim, fun hx => hx.elim⟩ |
| 26 | have : Subsingleton Γ(X, U) := |
| 27 | CommRingCat.subsingleton_of_isTerminal (X.sheaf.isTerminalOfEqEmpty hbot) |
| 28 | exact Subsingleton.elim _ _ |
| 29 | |
| 30 | theorem exists_local_section {U : X.Opens} (r : RationalSheafIs.Construction.RationalSheaf.sections U) (x : U) |
| 31 | (hx : ∃ a : X.presheaf.stalk x, algebraMap _ X.functionField a = r ⟨⟨x⟩⟩) : |
| 32 | ∃ (V : X.Opens) (hVU : V ≤ U), x.1 ∈ V ∧ ∃ s : Γ(X, V), |
| 33 | RationalSheafIs.Construction.RationalSheaf.scalarMap V s = RationalSheafIs.Construction.RationalSheaf.restrict hVU r := by |
| 34 | obtain ⟨a, ha⟩ := hx |
| 35 | obtain ⟨V, hVU, hxV, s, hs⟩ := X.presheaf.exists_le_germ_eq a x.2 |
| 36 | refine ⟨V, hVU, hxV, s, ?_⟩ |
| 37 | funext hv |
| 38 | have : Nonempty V := hv.down |
| 39 | change X.germToFunctionField V s = _ |
| 40 | rw [← X.algebraMap_germ_eq_germToFunctionField hxV s, hs] |
| 41 | exact ha |
| 42 | |
| 43 | theorem exists_section {U : X.Opens} (r : RationalSheafIs.Construction.RationalSheaf.sections U) |
| 44 | (h : ∀ x : U, ∃ a : X.presheaf.stalk x, algebraMap _ X.functionField a = r ⟨⟨x⟩⟩) : |
| 45 | ∃ s : Γ(X, U), RationalSheafIs.Construction.RationalSheaf.scalarMap U s = r := by |
| 46 | choose V hVU hxV s hs using fun x => exists_local_section r x (h x) |
| 47 | have hcover : U ≤ iSup V := by |
| 48 | intro x hx |
| 49 | exact Opens.mem_iSup.mpr ⟨⟨x, hx⟩, hxV ⟨x, hx⟩⟩ |
| 50 | have hcompat : X.presheaf.IsCompatible V s := by |
| 51 | intro i j |
| 52 | apply scalarMap_injective (V i ⊓ V j) |
| 53 | change RationalSheafIs.Construction.RationalSheaf.scalarMap (V i ⊓ V j) |
| 54 | (X.presheaf.map (homOfLE (show V i ⊓ V j ≤ V i from inf_le_left)).op (s i)) = |
| 55 | RationalSheafIs.Construction.RationalSheaf.scalarMap (V i ⊓ V j) |
| 56 | (X.presheaf.map (homOfLE (show V i ⊓ V j ≤ V j from inf_le_right)).op (s j)) |
| 57 | rw [← RationalSheafIs.Construction.RationalSheaf.scalar_restrict (show V i ⊓ V j ≤ V i from inf_le_left) (s i), |
| 58 | ← RationalSheafIs.Construction.RationalSheaf.scalar_restrict (show V i ⊓ V j ≤ V j from inf_le_right) (s j), hs i, hs j] |
| 59 | rfl |
| 60 | obtain ⟨t, ht, _⟩ := X.sheaf.existsUnique_gluing' V U |
| 61 | (fun x => homOfLE (hVU x)) hcover s hcompat |
| 62 | change Γ(X, U) at t |
| 63 | change ∀ x, X.presheaf.map (homOfLE (hVU x)).op t = s x at ht |
| 64 | refine ⟨t, ?_⟩ |
| 65 | funext hu |
| 66 | let x : U := hu.down.some |
| 67 | have he := congrArg (RationalSheafIs.Construction.RationalSheaf.scalarMap (V x)) (ht x) |
| 68 | rw [← RationalSheafIs.Construction.RationalSheaf.scalar_restrict, hs x] at he |
| 69 | exact congrFun he ⟨⟨⟨x.1, hxV x⟩⟩⟩ |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.RationalRegularityLocal.Construction.RationalRegularity |