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 OAI.NumberTheory.ArithmeticGroups.Lattices.QuotientMeasure |
| 2 | |
| 3 | /-! # Cover -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Compact.Cover.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Compact representatives and their behavior under finite-index changes. -/ |
| 12 | |
| 13 | open scoped Classical Pointwise |
| 14 | open Set |
| 15 | |
| 16 | theorem exists_compact_surjects_of_open |
| 17 | {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] |
| 18 | [LocallyCompactSpace X] [CompactSpace Y] |
| 19 | (f : X → Y) (hf : IsOpenMap f) (hsurj : Function.Surjective f) : |
| 20 | ∃ C : Set X, IsCompact C ∧ f '' C = univ := by |
| 21 | choose K hK hKx using fun x : X => exists_compact_mem_nhds x |
| 22 | have hcover : (univ : Set Y) ⊆ ⋃ x : X, f '' interior (K x) := by |
| 23 | intro y _ |
| 24 | obtain ⟨x, rfl⟩ := hsurj y |
| 25 | exact mem_iUnion.mpr ⟨x, x, mem_interior_iff_mem_nhds.mpr (hKx x), rfl⟩ |
| 26 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover |
| 27 | (fun x : X => f '' interior (K x)) (fun _ => hf _ isOpen_interior) hcover |
| 28 | refine ⟨⋃ x ∈ s, K x, s.isCompact_biUnion (fun x _ => hK x), ?_⟩ |
| 29 | apply eq_univ_of_forall |
| 30 | intro y |
| 31 | obtain ⟨x, hx⟩ := mem_iUnion.mp (hs (mem_univ y)) |
| 32 | obtain ⟨hxs, z, hz, rfl⟩ := mem_iUnion.mp hx |
| 33 | exact ⟨z, mem_iUnion.mpr ⟨x, mem_iUnion.mpr ⟨hxs, interior_subset hz⟩⟩, rfl⟩ |
| 34 | |
| 35 | theorem exists_compact_cover_of_compact_quotient |
| 36 | {H : Type*} [Group H] [TopologicalSpace H] [IsTopologicalGroup H] |
| 37 | [LocallyCompactSpace H] (Γ : Subgroup H) [CompactSpace (H ⧸ Γ)] : |
| 38 | ∃ C : Set H, IsCompact C ∧ ∀ g : H, ∃ c ∈ C, ∃ γ ∈ Γ, g = c * γ := by |
| 39 | obtain ⟨C, hC, hsurj⟩ := exists_compact_surjects_of_open |
| 40 | (QuotientGroup.mk : H → H ⧸ Γ) QuotientGroup.isOpenMap_coe QuotientGroup.mk_surjective |
| 41 | refine ⟨C, hC, fun g => ?_⟩ |
| 42 | obtain ⟨c, hc, he⟩ := hsurj ▸ (mem_univ (QuotientGroup.mk g : H ⧸ Γ)) |
| 43 | refine ⟨c, hc, c⁻¹ * g, QuotientGroup.eq.mp he, ?_⟩ |
| 44 | simp |
| 45 | |
| 46 | theorem finite_relIndex_representatives |
| 47 | {H : Type*} [Group H] (Δ Γ : Subgroup H) (hindex : Δ.relIndex Γ ≠ 0) : |
| 48 | ∃ R : Set H, R.Finite ∧ ∀ γ ∈ Γ, ∃ r ∈ R, ∃ d ∈ Δ, γ = r * d := by |
| 49 | let : Δ.IsFiniteRelIndex Γ := ⟨hindex⟩ |
| 50 | let rep : Γ ⧸ Δ.subgroupOf Γ → H := fun q => (q.out : H) |
| 51 | refine ⟨range rep, finite_range rep, fun γ hγ => ?_⟩ |
| 52 | let g : Γ := ⟨γ, hγ⟩ |
| 53 | let q : Γ ⧸ Δ.subgroupOf Γ := QuotientGroup.mk g |
| 54 | have hmem : (rep q)⁻¹ * γ ∈ Δ := |
| 55 | show q.out⁻¹ * g ∈ Δ.subgroupOf Γ from QuotientGroup.eq.mp q.out_eq' |
| 56 | exact ⟨rep q, mem_range_self q, (rep q)⁻¹ * γ, hmem, by simp⟩ |
| 57 | |
| 58 | theorem compact_cover_of_finite_relIndex |
| 59 | {H : Type*} [Group H] [TopologicalSpace H] [IsTopologicalGroup H] |
| 60 | (Δ Γ : Subgroup H) (hindex : Δ.relIndex Γ ≠ 0) |
| 61 | (C : Set H) (hC : IsCompact C) |
| 62 | (hcover : ∀ g : H, ∃ c ∈ C, ∃ γ ∈ Γ, g = c * γ) : |
| 63 | ∃ D : Set H, IsCompact D ∧ ∀ g : H, ∃ d ∈ D, ∃ γ ∈ Δ, g = d * γ := by |
| 64 | obtain ⟨R, hR, hrep⟩ := finite_relIndex_representatives Δ Γ hindex |
| 65 | refine ⟨C * R, hC.mul hR.isCompact, fun g => ?_⟩ |
| 66 | obtain ⟨c, hc, γ, hγ, rfl⟩ := hcover g |
| 67 | obtain ⟨r, hr, d, hd, rfl⟩ := hrep γ hγ |
| 68 | exact ⟨c * r, mul_mem_mul hc hr, d, hd, (mul_assoc c r d).symm⟩ |
| 69 | |
| 70 | theorem compact_quotient_of_finite_relIndex |
| 71 | {H : Type*} [Group H] [TopologicalSpace H] [IsTopologicalGroup H] |
| 72 | [LocallyCompactSpace H] (Δ Γ : Subgroup H) (hindex : Δ.relIndex Γ ≠ 0) |
| 73 | [CompactSpace (H ⧸ Γ)] : CompactSpace (H ⧸ Δ) := by |
| 74 | obtain ⟨C, hC, hcover⟩ := exists_compact_cover_of_compact_quotient Γ |
| 75 | obtain ⟨D, hD, hDcover⟩ := compact_cover_of_finite_relIndex Δ Γ hindex C hC hcover |
| 76 | exact QuotientMeasure.Construction.compact_quotient_of_compact_cover Δ D hD hDcover |
| 77 | |
| 78 | theorem compact_quotient_iff_of_commensurable |
| 79 | {H : Type*} [Group H] [TopologicalSpace H] [IsTopologicalGroup H] |
| 80 | [LocallyCompactSpace H] (Δ Γ : Subgroup H) (h : Δ.Commensurable Γ) : |
| 81 | CompactSpace (H ⧸ Δ) ↔ CompactSpace (H ⧸ Γ) := by |
| 82 | constructor |
| 83 | · intro hcompact |
| 84 | exact compact_quotient_of_finite_relIndex Γ Δ h.2.relIndex_ne_zero |
| 85 | · intro hcompact |
| 86 | exact compact_quotient_of_finite_relIndex Δ Γ h.1.relIndex_ne_zero |
| 87 | |
| 88 | end |
| 89 | |
| 90 | /-! Compact subsets of the target of an open surjection admit compact |
| 91 | sets of representatives when the source is locally compact. -/ |
| 92 | |
| 93 | open Set |
| 94 | |
| 95 | theorem exists_compact_cover_of_compact_open_image |
| 96 | {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] [LocallyCompactSpace X] |
| 97 | (f : X → Y) (hf : IsOpenMap f) (hsurj : Function.Surjective f) |
| 98 | (K : Set Y) (hK : IsCompact K) : ∃ C : Set X, IsCompact C ∧ K ⊆ f '' C := by |
| 99 | choose C hC hCx using fun x : X => exists_compact_mem_nhds x |
| 100 | have hcover : K ⊆ ⋃ x : X, f '' interior (C x) := by |
| 101 | intro y _ |
| 102 | obtain ⟨x, rfl⟩ := hsurj y |
| 103 | exact mem_iUnion.mpr ⟨x, x, mem_interior_iff_mem_nhds.mpr (hCx x), rfl⟩ |
| 104 | obtain ⟨s, hs⟩ := hK.elim_finite_subcover |
| 105 | (fun x : X => f '' interior (C x)) (fun _ => hf _ isOpen_interior) hcover |
| 106 | refine ⟨⋃ x ∈ s, C x, s.isCompact_biUnion (fun x _ => hC x), ?_⟩ |
| 107 | intro y hy |
| 108 | obtain ⟨x, hx⟩ := mem_iUnion.mp (hs hy) |
| 109 | obtain ⟨hxs, z, hz, rfl⟩ := mem_iUnion.mp hx |
| 110 | exact ⟨z, mem_iUnion.mpr ⟨x, mem_iUnion.mpr ⟨hxs, interior_subset hz⟩⟩, rfl⟩ |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Compact.Cover.Construction |