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.FormalGeometry.Completion.IntegralIdempotents |
| 2 | import Mathlib.AlgebraicGeometry.Properties |
| 3 | |
| 4 | /-! # Global Idempotent Ext -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.GlobalIdempotentExt.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Completion: global idempotents are determined by their nonzero loci -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | /-- Two global idempotents coincide when their actual basic opens coincide. -/ |
| 20 | theorem global_idempotent_ext {X : Scheme.{u}} {e f : Γ(X, ⊤)} |
| 21 | (he : IsIdempotentElem e) (hf : IsIdempotentElem f) |
| 22 | (h : X.basicOpen e = X.basicOpen f) : e = f := by |
| 23 | apply TopCat.Presheaf.section_ext X.sheaf ⊤ e f |
| 24 | intro x hx |
| 25 | let φ := X.presheaf.germ ⊤ x hx |
| 26 | have hm : IsUnit (φ e) ↔ IsUnit (φ f) := by |
| 27 | simpa only [Scheme.mem_basicOpen_top] using |
| 28 | (show x ∈ X.basicOpen e ↔ x ∈ X.basicOpen f by rw [h]) |
| 29 | rcases IntegralIdempotents.Construction.local_idempotent_eq_zero_or_one (X.presheaf.stalk x) (he.map φ.hom) with h₀ | h₁ <;> |
| 30 | rcases IntegralIdempotents.Construction.local_idempotent_eq_zero_or_one (X.presheaf.stalk x) (hf.map φ.hom) with h₂ | h₃ |
| 31 | · exact h₀.trans h₂.symm |
| 32 | · simp [h₀, h₃] at hm |
| 33 | · simp [h₁, h₂] at hm |
| 34 | · exact h₁.trans h₃.symm |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.GlobalIdempotentExt.Construction |