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.LinearAlgebra.Basis.Submodule |
| 2 | import Mathlib.RingTheory.Localization.Integer |
| 3 | import Mathlib.RingTheory.Localization.FractionRing |
| 4 | import Mathlib.Topology.LocallyConstant.Basic |
| 5 | |
| 6 | /-! # Period Denominators -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.PeriodDenominators.CM.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finitely many rational transition periods lie in a single rescaling |
| 13 | of the integer span of a rational basis. Compactness makes locally |
| 14 | constant transition functions satisfy this finite condition. -/ |
| 15 | |
| 16 | variable {U ι : Type*} [AddCommGroup U] [Module ℚ U] [Finite ι] |
| 17 | |
| 18 | theorem finite_rational_periods_integer_multiple (b : Module.Basis ι ℚ U) |
| 19 | (S : Set U) (hS : S.Finite) : |
| 20 | ∃ d : ℤ, 0 < d ∧ ∀ x ∈ S, d • x ∈ Submodule.span ℤ (Set.range b) := by |
| 21 | let : Finite S := hS.to_subtype |
| 22 | obtain ⟨d, hd⟩ := IsLocalization.exist_integer_multiples_of_finite |
| 23 | (nonZeroDivisors ℤ) (fun ix : ι × S => b.repr ix.2.val ix.1) |
| 24 | have hd0 : (d : ℤ) ≠ 0 := mem_nonZeroDivisors_iff_ne_zero.mp d.property |
| 25 | refine ⟨(d : ℤ) ^ 2, sq_pos_of_ne_zero hd0, ?_⟩ |
| 26 | intro x hx |
| 27 | apply (b.mem_span_iff_repr_mem ℤ _).mpr |
| 28 | intro i |
| 29 | have hi := IsLocalization.isInteger_smul (a := (d : ℤ)) (hd (i, ⟨x, hx⟩)) |
| 30 | change ∃ z : ℤ, algebraMap ℤ ℚ z = (d : ℤ) • ((d : ℤ) • b.repr x i) at hi |
| 31 | obtain ⟨z, hz⟩ := hi |
| 32 | refine ⟨z, ?_⟩ |
| 33 | simpa only [map_zsmul, Finsupp.smul_apply, pow_two, mul_smul] using hz |
| 34 | |
| 35 | theorem compact_locally_constant_periods_integer_multiple {X : Type*} |
| 36 | [TopologicalSpace X] [CompactSpace X] (b : Module.Basis ι ℚ U) |
| 37 | (f : X → U) (hf : IsLocallyConstant f) : |
| 38 | ∃ d : ℤ, 0 < d ∧ ∀ x, d • f x ∈ Submodule.span ℤ (Set.range b) := by |
| 39 | obtain ⟨d, hd, h⟩ := finite_rational_periods_integer_multiple b (Set.range f) hf.range_finite |
| 40 | exact ⟨d, hd, fun x => h (f x) ⟨x, rfl⟩⟩ |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.PeriodDenominators.CM.Construction |