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.RepresentationTheory.Weil.Local.NonarchimedeanNorm |
| 2 | import Mathlib.Topology.Algebra.Group.Quotient |
| 3 | |
| 4 | /-! # Bruhat Approximation -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.BruhatApproximation.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Uniform approximation by compact locally constant functions, with one fixed compact support. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | |
| 14 | theorem compact_continuous_locallyConstant_approximation |
| 15 | {E : Type*} [NormedAddCommGroup E] [IsUltrametricDist E] [ProperSpace E] |
| 16 | {f : E → ℂ} (hf : Continuous f) (hs : HasCompactSupport f) : |
| 17 | ∃ K : Set E, IsCompact K ∧ tsupport f ⊆ K ∧ |
| 18 | ∀ ε : ℝ, 0 < ε → ∃ g : E → ℂ, |
| 19 | IsLocallyConstant g ∧ tsupport g ⊆ K ∧ ∀ x, ‖g x - f x‖ < ε := by |
| 20 | obtain ⟨R, hR, hbound⟩ := hs.isBounded.exists_pos_norm_le |
| 21 | let K : Set E := Metric.closedBall 0 (R + 1) |
| 22 | have hK : IsCompact K := isCompact_closedBall _ _ |
| 23 | refine ⟨K, hK, ?_, fun ε hε => ?_⟩ |
| 24 | · intro x hx |
| 25 | rw [Metric.mem_closedBall, dist_zero_right] |
| 26 | exact (hbound x hx).trans (le_add_of_nonneg_right zero_le_one) |
| 27 | · obtain ⟨δ, hδ, hδf⟩ := Metric.uniformContinuous_iff.mp |
| 28 | (hs.uniformContinuous_of_continuous hf) ε hε |
| 29 | let r : ℝ := min (δ / 2) 1 |
| 30 | have hr : 0 < r := lt_min (half_pos hδ) zero_lt_one |
| 31 | let U := IsUltrametricDist.closedBall_openAddSubgroup E hr |
| 32 | let q : E → E ⧸ U.toAddSubgroup := QuotientAddGroup.mk |
| 33 | let g : E → ℂ := fun x => f (Quotient.out (q x)) |
| 34 | have hrep (x : E) : ‖Quotient.out (q x) - x‖ ≤ r := by |
| 35 | obtain ⟨t, ht⟩ := QuotientAddGroup.mk_out_eq_add U.toAddSubgroup x |
| 36 | change ‖(QuotientAddGroup.mk x : E ⧸ U.toAddSubgroup).out - x‖ ≤ r |
| 37 | rw [ht, add_sub_cancel_left] |
| 38 | have htU := t.property |
| 39 | change t.val ∈ Metric.closedBall 0 r at htU |
| 40 | simpa only [Metric.mem_closedBall, dist_zero_right] using htU |
| 41 | have hglc : IsLocallyConstant g := |
| 42 | (IsLocallyConstant.of_discrete (fun z : E ⧸ U.toAddSubgroup => f z.out)).comp_continuous |
| 43 | QuotientAddGroup.continuous_mk |
| 44 | refine ⟨g, hglc, ?_, fun x => ?_⟩ |
| 45 | · apply closure_minimal _ hK.isClosed |
| 46 | intro x hx |
| 47 | have hrepR : ‖Quotient.out (q x)‖ ≤ R := hbound _ (subset_tsupport f hx) |
| 48 | rw [Metric.mem_closedBall, dist_zero_right] |
| 49 | calc |
| 50 | ‖x‖ ≤ ‖Quotient.out (q x)‖ + ‖Quotient.out (q x) - x‖ := by |
| 51 | simpa only [norm_sub_rev] using norm_le_insert' x (Quotient.out (q x)) |
| 52 | _ ≤ R + 1 := add_le_add hrepR ((hrep x).trans (min_le_right _ _)) |
| 53 | · change ‖f (Quotient.out (q x)) - f x‖ < ε |
| 54 | rw [← dist_eq_norm] |
| 55 | apply hδf |
| 56 | rw [dist_eq_norm] |
| 57 | exact (hrep x).trans_lt ((min_le_left _ _).trans_lt (half_lt_self hδ)) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.RepresentationTheory.Weil.Local.BruhatApproximation.Construction |