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 Mathlib.AlgebraicGeometry.FunctionField |
| 2 | import Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing |
| 3 | |
| 4 | /-! # Section Division Ne -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.SectionDivisionNe.Construction.SectionDivision |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Division of regular functions detected in the stalks of an integral scheme. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X : Scheme.{u}} [IsIntegral X] |
| 17 | |
| 18 | theorem restrict_ne_zero {U V : X.Opens} (h : V ≤ U) [Nonempty V] |
| 19 | {a : Γ(X, U)} (ha : a ≠ 0) : X.presheaf.map (homOfLE h).op a ≠ 0 := by |
| 20 | intro he |
| 21 | apply ha |
| 22 | apply map_injective_of_isIntegral X (homOfLE h) |
| 23 | simpa only [map_zero] using he |
| 24 | |
| 25 | theorem cancel_restrict {U V : X.Opens} (h : V ≤ U) {a : Γ(X, U)} (ha : a ≠ 0) |
| 26 | {s t : Γ(X, V)} |
| 27 | (he : X.presheaf.map (homOfLE h).op a * s = |
| 28 | X.presheaf.map (homOfLE h).op a * t) : s = t := by |
| 29 | by_cases hV : Nonempty V |
| 30 | · have := hV |
| 31 | exact mul_left_cancel₀ (restrict_ne_zero h ha) he |
| 32 | · have hbot : V = ⊥ := by |
| 33 | apply SetLike.ext |
| 34 | intro x |
| 35 | exact ⟨fun hx => (hV ⟨⟨x, hx⟩⟩).elim, fun hx => hx.elim⟩ |
| 36 | have : Subsingleton Γ(X, V) := |
| 37 | CommRingCat.subsingleton_of_isTerminal (X.sheaf.isTerminalOfEqEmpty hbot) |
| 38 | exact Subsingleton.elim _ _ |
| 39 | |
| 40 | theorem exists_local_quotient {U : X.Opens} (a b : Γ(X, U)) (x : U) |
| 41 | (hx : X.presheaf.germ U x x.2 a ∣ X.presheaf.germ U x x.2 b) : |
| 42 | ∃ (V : X.Opens) (hVU : V ≤ U), x.1 ∈ V ∧ ∃ c : Γ(X, V), |
| 43 | X.presheaf.map (homOfLE hVU).op a * c = |
| 44 | X.presheaf.map (homOfLE hVU).op b := by |
| 45 | obtain ⟨c, hc⟩ := hx |
| 46 | obtain ⟨V, hVU, hxV, d, hd⟩ := X.presheaf.exists_le_germ_eq c x.2 |
| 47 | refine ⟨V, hVU, hxV, d, ?_⟩ |
| 48 | apply germ_injective_of_isIntegral X x hxV |
| 49 | rw [map_mul, X.presheaf.germ_res_apply, X.presheaf.germ_res_apply, hd] |
| 50 | exact hc.symm |
| 51 | |
| 52 | theorem dvd_of_germs {U : X.Opens} (a b : Γ(X, U)) (ha : a ≠ 0) |
| 53 | (h : ∀ x : U, X.presheaf.germ U x x.2 a ∣ X.presheaf.germ U x x.2 b) : |
| 54 | a ∣ b := by |
| 55 | choose V hVU hxV c hc using fun x => exists_local_quotient a b x (h x) |
| 56 | have hcover : U ≤ iSup V := by |
| 57 | intro x hx |
| 58 | exact Opens.mem_iSup.mpr ⟨⟨x, hx⟩, hxV ⟨x, hx⟩⟩ |
| 59 | have hcompat : X.presheaf.IsCompatible V c := by |
| 60 | intro i j |
| 61 | apply cancel_restrict (inf_le_left.trans (hVU i)) ha |
| 62 | have hi := congrArg (X.presheaf.map (homOfLE |
| 63 | (show V i ⊓ V j ≤ V i from inf_le_left)).op) (hc i) |
| 64 | have hj := congrArg (X.presheaf.map (homOfLE |
| 65 | (show V i ⊓ V j ≤ V j from inf_le_right)).op) (hc j) |
| 66 | simp only [map_mul, ← ConcreteCategory.comp_apply, ← Functor.map_comp] at hi hj |
| 67 | exact hi.trans hj.symm |
| 68 | obtain ⟨d, hd, _⟩ := X.sheaf.existsUnique_gluing' V U |
| 69 | (fun x => homOfLE (hVU x)) hcover c hcompat |
| 70 | change Γ(X, U) at d |
| 71 | change ∀ x, X.presheaf.map (homOfLE (hVU x)).op d = c x at hd |
| 72 | refine ⟨d, ?_⟩ |
| 73 | apply X.sheaf.eq_of_locally_eq' V U (fun x => homOfLE (hVU x)) hcover |
| 74 | intro x |
| 75 | change X.presheaf.map (homOfLE (hVU x)).op b = |
| 76 | X.presheaf.map (homOfLE (hVU x)).op (a * d) |
| 77 | rw [map_mul, hd] |
| 78 | exact (hc x).symm |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.SectionDivisionNe.Construction.SectionDivision |