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.Algebra.Category.Grp.Injective |
| 2 | import Mathlib.Topology.LocallyConstant.Basic |
| 3 | import Mathlib.Topology.Algebra.Group.Basic |
| 4 | import Mathlib.Analysis.Normed.Module.Basic |
| 5 | |
| 6 | /-! # Components Range -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.ComponentsRange.Constructions.Components |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # DegreeTwo: separating the components of a commutative Lie group |
| 14 | |
| 15 | The image of a real vector group is divisible. If it is open, injectivity of |
| 16 | divisible abelian groups splits off a locally constant projection. Applied to |
| 17 | the constructed exponential, this will detect any extra analytic components. |
| 18 | -/ |
| 19 | |
| 20 | open scoped _root_.Topology |
| 21 | |
| 22 | variable {V G : Type*} [AddCommGroup V] [Module ℝ V] [AddCommGroup G] |
| 23 | |
| 24 | /-- Every homomorphic image of a real vector group is divisible. -/ |
| 25 | @[instance_reducible] |
| 26 | def rangeDivisible (p : V →+ G) : DivisibleBy p.range.toIntSubmodule ℤ := by |
| 27 | apply divisibleByOfSMulRightSurj |
| 28 | intro n hn x |
| 29 | obtain ⟨v, hv⟩ := x.property |
| 30 | refine ⟨⟨p ((n : ℝ)⁻¹ • v), ⟨_, rfl⟩⟩, ?_⟩ |
| 31 | apply Subtype.ext |
| 32 | change n • p ((n : ℝ)⁻¹ • v) = x |
| 33 | rw [← map_zsmul] |
| 34 | have hdiv : n • ((n : ℝ)⁻¹ • v) = v := by |
| 35 | rw [← Int.cast_smul_eq_zsmul ℝ, smul_smul, |
| 36 | mul_inv_cancel₀ (Int.cast_ne_zero.mpr hn), one_smul] |
| 37 | rw [hdiv] |
| 38 | exact hv |
| 39 | |
| 40 | variable [TopologicalSpace G] [IsTopologicalAddGroup G] |
| 41 | |
| 42 | /-- An open vector-group image is the kernel of a locally constant |
| 43 | endomorphism. This is an algebraic splitting, with local constancy proved |
| 44 | from the openness of its kernel. -/ |
| 45 | theorem exists_locallyConstant_projection (p : V →+ G) (hp : IsOpen (p.range : Set G)) : |
| 46 | ∃ h : G →+ G, IsLocallyConstant h ∧ ∀ x : G, h x = 0 ↔ x ∈ p.range := by |
| 47 | let R := p.range.toIntSubmodule |
| 48 | let : DivisibleBy R ℤ := rangeDivisible p |
| 49 | let : Module.Injective ℤ R := (Module.Baer.of_divisible R).injective |
| 50 | obtain ⟨r, hr⟩ := Module.Injective.out R.subtype R.subtype_injective (LinearMap.id : R →ₗ[ℤ] R) |
| 51 | let h : G →+ G := (LinearMap.id - R.subtype.comp r).toAddMonoidHom |
| 52 | have hk (x : G) : h x = 0 ↔ x ∈ p.range := by |
| 53 | change x - (r x : G) = 0 ↔ x ∈ R |
| 54 | rw [sub_eq_zero] |
| 55 | constructor |
| 56 | · intro hx |
| 57 | exact hx ▸ (r x).property |
| 58 | · intro hx |
| 59 | have hh := congrArg Subtype.val (hr ⟨x, hx⟩) |
| 60 | exact hh.symm |
| 61 | refine ⟨h, ?_, hk⟩ |
| 62 | apply (IsLocallyConstant.iff_eventually_eq h).mpr |
| 63 | intro x |
| 64 | have hn : ∀ᶠ y in 𝓝 x, y - x ∈ p.range := |
| 65 | (continuous_id.sub continuous_const).continuousAt.preimage_mem_nhds |
| 66 | (hp.mem_nhds (by |
| 67 | change x - x ∈ p.range |
| 68 | rw [sub_self] |
| 69 | exact p.range.zero_mem)) |
| 70 | filter_upwards [hn] with y hy |
| 71 | have hh := (hk (y - x)).mpr hy |
| 72 | rw [map_sub] at hh |
| 73 | exact sub_eq_zero.mp hh |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.ComponentsRange.Constructions.Components |