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 |
| 2 | |
| 3 | /-! # Product Generation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.ProductGeneration.Construction |
| 6 | |
| 7 | /-! Componentwise generation by differences determines an additive |
| 8 | endomorphism of the entire finite product. -/ |
| 9 | |
| 10 | theorem end_eq_id_of_component_differences |
| 11 | {I A : Type*} [Fintype I] [DecidableEq I] [AddCommGroup A] |
| 12 | {B : I → Type*} [∀ i, AddCommGroup (B i)] {X : I → Type*} |
| 13 | (e : A ≃+ ∀ i, B i) (a : ∀ i, X i → B i) (z : ∀ i, X i → A) |
| 14 | (hz : ∀ i x, e (z i x) = Pi.single i (a i x)) |
| 15 | (hg : ∀ i, ∃ n : ℕ, Function.Surjective |
| 16 | (fun w : Fin n → X i × X i => ∑ j, (a i (w j).1 - a i (w j).2))) |
| 17 | (F : A →+ A) (hF : ∀ i x y, F (z i x - z i y) = z i x - z i y) : |
| 18 | ∀ x, F x = x := by |
| 19 | classical |
| 20 | have haxis (i : I) (b : B i) : F (e.symm (Pi.single i b)) = e.symm (Pi.single i b) := by |
| 21 | obtain ⟨n, hn⟩ := hg i |
| 22 | obtain ⟨w, hw⟩ := hn b |
| 23 | have he : e.symm (Pi.single i b) = ∑ j, (z i (w j).1 - z i (w j).2) := by |
| 24 | apply e.injective |
| 25 | rw [e.apply_symm_apply, map_sum] |
| 26 | funext k |
| 27 | by_cases h : i = k |
| 28 | · subst k |
| 29 | simpa only [Finset.sum_apply, map_sub, hz, Pi.sub_apply, Pi.single_eq_same] using hw.symm |
| 30 | · simp only [Finset.sum_apply, map_sub, hz, Pi.sub_apply, Pi.single_eq_of_ne (Ne.symm h), |
| 31 | sub_self, Finset.sum_const_zero] |
| 32 | rw [he, map_sum] |
| 33 | exact Finset.sum_congr rfl (fun j _ => hF i (w j).1 (w j).2) |
| 34 | intro x |
| 35 | have hx : (∑ i, e.symm (Pi.single i (e x i))) = x := by |
| 36 | apply e.injective |
| 37 | rw [map_sum] |
| 38 | simp only [e.apply_symm_apply] |
| 39 | exact Finset.univ_sum_single (e x) |
| 40 | calc |
| 41 | F x = F (∑ i, e.symm (Pi.single i (e x i))) := congrArg F hx.symm |
| 42 | _ = ∑ i, F (e.symm (Pi.single i (e x i))) := map_sum F _ _ |
| 43 | _ = ∑ i, e.symm (Pi.single i (e x i)) := Finset.sum_congr rfl (fun i _ => haxis i (e x i)) |
| 44 | _ = x := hx |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.ProductGeneration.Construction |