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.CategoryTheory.Sites.LocallySurjective |
| 2 | import Mathlib.Algebra.Category.Grp.Basic |
| 3 | |
| 4 | /-! # Local Surjectivity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Picard.LocalSurjectivity.Construction |
| 7 | |
| 8 | /-! A local lifting criterion for a homomorphism of commutative-group |
| 9 | presheaves. It separates lifting after Picard pullback from lifting the |
| 10 | pullback kernel. Neither condition asserts representability. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory Opposite |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable {C : Type u} [Category.{v} C] (J : GrothendieckTopology C) |
| 17 | {P Q R : Cᵒᵖ ⥤ CommGrpCat.{w}} (f : P ⟶ Q) (g : Q ⟶ R) |
| 18 | |
| 19 | /-- Local lifts after a second map, together with local lifts of its |
| 20 | kernel, give local lifts of every section. -/ |
| 21 | theorem locallySurjective_of_composite_and_kernel |
| 22 | [Presheaf.IsLocallySurjective J (f ≫ g)] |
| 23 | (hkernel : ∀ (T : C) (x : Q.obj (op T)), g.app (op T) x = 1 → |
| 24 | Presheaf.imageSieve f x ∈ J T) : Presheaf.IsLocallySurjective J f := by |
| 25 | constructor |
| 26 | intro T y |
| 27 | apply J.transitive (Presheaf.imageSieve_mem J (f ≫ g) (g.app (op T) y)) |
| 28 | intro U a ha |
| 29 | let x := Presheaf.localPreimage (f ≫ g) (g.app (op T) y) a ha |
| 30 | have hx : g.app (op U) (f.app (op U) x) = R.map a.op (g.app (op T) y) := |
| 31 | Presheaf.app_localPreimage (f ≫ g) (g.app (op T) y) a ha |
| 32 | let d := Q.map a.op y * (f.app (op U) x)⁻¹ |
| 33 | have hd : g.app (op U) d = 1 := by |
| 34 | change g.app (op U) (Q.map a.op y * (f.app (op U) x)⁻¹) = 1 |
| 35 | rw [map_mul, map_inv, g.naturality_apply, hx, mul_inv_cancel] |
| 36 | apply J.superset_covering _ (hkernel U d hd) |
| 37 | intro V b hb |
| 38 | obtain ⟨z, hz⟩ := hb |
| 39 | refine ⟨z * P.map b.op x, ?_⟩ |
| 40 | change f.app (op V) (z * P.map b.op x) = Q.map (b ≫ a).op y |
| 41 | rw [map_mul, hz, f.naturality_apply, op_comp, Q.map_comp] |
| 42 | change Q.map b.op d * Q.map b.op (f.app (op U) x) = Q.map b.op (Q.map a.op y) |
| 43 | dsimp only [d] |
| 44 | rw [map_mul, map_inv, inv_mul_cancel_right] |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Picard.LocalSurjectivity.Construction |