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 | /-! # Finite Cover -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.FiniteCover.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A compact covering of a connected nonempty base has a constant finite |
| 10 | positive fiber degree. The degree is constructed from the actual fibers. -/ |
| 11 | |
| 12 | open _root_.TopologicalSpace Set |
| 13 | |
| 14 | variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] |
| 15 | |
| 16 | theorem covering_fiber_card_locally_constant (f : X → Y) (hf : IsCoveringMap f) : |
| 17 | IsLocallyConstant (fun y => Nat.card (f ⁻¹' {y})) := by |
| 18 | apply (IsLocallyConstant.iff_exists_open _).mpr |
| 19 | intro x |
| 20 | obtain ⟨hdiscrete, U, hx, hU, hfU, H, hH⟩ := hf x |
| 21 | refine ⟨U, hU, hx, ?_⟩ |
| 22 | intro y hy |
| 23 | have he : IsEvenlyCovered f y (f ⁻¹' {x}) := |
| 24 | ⟨hdiscrete, U, hy, hU, hfU, H, hH⟩ |
| 25 | exact (Nat.card_congr he.fiberHomeomorph.toEquiv).symm |
| 26 | |
| 27 | theorem covering_fiber_finite [T2Space X] [T2Space Y] [CompactSpace X] |
| 28 | (f : X → Y) (hf : IsCoveringMap f) (y : Y) : Finite (f ⁻¹' {y}) := by |
| 29 | let : DiscreteTopology (f ⁻¹' {y}) := (hf y).discreteTopology_fiber |
| 30 | let : CompactSpace (f ⁻¹' {y}) := |
| 31 | isCompact_iff_compactSpace.mp (isClosed_singleton.preimage hf.continuous).isCompact |
| 32 | exact finite_of_compact_of_discrete |
| 33 | |
| 34 | theorem covering_positive_degree [T2Space X] [T2Space Y] [CompactSpace X] |
| 35 | [PreconnectedSpace Y] [Nonempty Y] |
| 36 | (f : X → Y) (hf : IsCoveringMap f) (hsurj : Function.Surjective f) : |
| 37 | ∃ d : ℕ, 0 < d ∧ ∀ y : Y, Nat.card {x : X // f x = y} = d := by |
| 38 | classical |
| 39 | let y₀ : Y := Classical.choice inferInstance |
| 40 | let : Finite (f ⁻¹' {y₀}) := covering_fiber_finite f hf y₀ |
| 41 | let : Nonempty (f ⁻¹' {y₀}) := by |
| 42 | obtain ⟨x, hx⟩ := hsurj y₀ |
| 43 | exact ⟨⟨x, hx⟩⟩ |
| 44 | refine ⟨Nat.card (f ⁻¹' {y₀}), Nat.card_pos, ?_⟩ |
| 45 | intro y |
| 46 | exact (covering_fiber_card_locally_constant f hf).apply_eq_of_isPreconnected |
| 47 | isPreconnected_univ (Set.mem_univ y) (Set.mem_univ y₀) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.FiniteCover.CM |