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.Topology.Algebra.RestrictedProduct.TopologicalSpace |
| 2 | |
| 3 | /-! # Restricted Boxes -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Adelic.RestrictedBoxes |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Compact boxes in the actual restricted-product topology. -/ |
| 10 | |
| 11 | open Filter Set |
| 12 | open scoped RestrictedProduct _root_.Topology |
| 13 | |
| 14 | variable {I : Type*} {X : I → Type*} [∀ i, TopologicalSpace (X i)] |
| 15 | (A B : ∀ i, Set (X i)) |
| 16 | |
| 17 | theorem isCompact_box (hB : ∀ i, IsCompact (B i)) |
| 18 | (hBA : ∀ᶠ i in cofinite, B i ⊆ A i) : |
| 19 | IsCompact {x : Πʳ i, [X i, A i] | ∀ i, x i ∈ B i} := by |
| 20 | let S : Set I := {i | B i ⊆ A i} |
| 21 | have hS : cofinite ≤ 𝓟 S := le_principal_iff.mpr hBA |
| 22 | let lift : (∀ i, B i) → Πʳ i, [X i, A i]_[𝓟 S] := fun x => |
| 23 | ⟨fun i => (x i).val, eventually_principal.mpr fun i hi => hi (x i).property⟩ |
| 24 | have hc : Continuous lift := by |
| 25 | apply RestrictedProduct.continuous_rng_of_principal.mpr |
| 26 | exact continuous_pi fun i => (continuous_apply i).subtype_val |
| 27 | let toRestricted := RestrictedProduct.inclusion X A hS ∘ lift |
| 28 | have ht : Continuous toRestricted := (RestrictedProduct.continuous_inclusion hS).comp hc |
| 29 | let : ∀ i, CompactSpace (B i) := fun i => isCompact_iff_compactSpace.mp (hB i) |
| 30 | have he : toRestricted '' Set.univ = {x : Πʳ i, [X i, A i] | ∀ i, x i ∈ B i} := by |
| 31 | ext x |
| 32 | constructor |
| 33 | · rintro ⟨y, _, rfl⟩ i |
| 34 | exact (y i).property |
| 35 | · intro hx |
| 36 | refine ⟨fun i => ⟨x i, hx i⟩, Set.mem_univ _, ?_⟩ |
| 37 | apply RestrictedProduct.ext |
| 38 | intro i |
| 39 | rfl |
| 40 | rw [← he] |
| 41 | exact isCompact_univ.image ht |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.RepresentationTheory.Theta.Adelic.RestrictedBoxes |