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.Quaternion.Arithmetic.ScalarApproximation |
| 2 | |
| 3 | /-! # Finite Scalar Density -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.FiniteScalarDensity |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Weak approximation for any injectively indexed finite family of |
| 10 | finite completions, and for finite affine parameter spaces over them. -/ |
| 11 | |
| 12 | open scoped Classical _root_.NumberField |
| 13 | open IsDedekindDomain Set _root_.Topology |
| 14 | |
| 15 | variable {F : Type*} [Field F] [NumberField F] {ι : Type*} [Fintype ι] |
| 16 | |
| 17 | def finiteScalarDiagonal (v : ι → HeightOneSpectrum (𝓞 F)) : |
| 18 | F →+* (∀ i, (v i).adicCompletion F) := RingHom.pi (fun i => algebraMap F ((v i).adicCompletion F)) |
| 19 | |
| 20 | theorem denseRange_finiteScalarDiagonal (v : ι → HeightOneSpectrum (𝓞 F)) |
| 21 | (hv : Function.Injective v) : DenseRange (finiteScalarDiagonal v) := by |
| 22 | let T := Finset.univ.image v |
| 23 | let f : ι → T := fun i => ⟨v i, Finset.mem_image.mpr ⟨i, Finset.mem_univ _, rfl⟩⟩ |
| 24 | have hfinj : Function.Injective f := fun i j hij => hv (congrArg Subtype.val hij) |
| 25 | have hfsurj : Function.Surjective f := by |
| 26 | intro w |
| 27 | obtain ⟨i, _, hi⟩ := Finset.mem_image.mp w.property |
| 28 | exact ⟨i, Subtype.ext hi⟩ |
| 29 | let e := Equiv.ofBijective f ⟨hfinj, hfsurj⟩ |
| 30 | let E := Homeomorph.piCongrLeft (Y := fun w : T => w.val.adicCompletion F) e |
| 31 | have hd := E.symm.surjective.denseRange.comp (ScalarApproximation.denseRange_scalarProjection T) E.symm.continuous |
| 32 | apply hd.mono |
| 33 | rintro x ⟨a, rfl⟩ |
| 34 | exact ⟨a.val, rfl⟩ |
| 35 | |
| 36 | theorem denseRange_finiteAffineDiagonal (v : ι → HeightOneSpectrum (𝓞 F)) |
| 37 | (hv : Function.Injective v) (m : ℕ) : |
| 38 | DenseRange (fun a : Fin m → F => fun i j => algebraMap F ((v i).adicCompletion F) (a j)) := by |
| 39 | have hd := DenseRange.piMap (fun _ : Fin m => denseRange_finiteScalarDiagonal v hv) |
| 40 | let swap : (Fin m → ∀ i, (v i).adicCompletion F) → (∀ i, Fin m → (v i).adicCompletion F) := |
| 41 | fun a i j => a j i |
| 42 | have hc : Continuous swap := continuous_pi fun i => continuous_pi fun j => |
| 43 | (continuous_apply i).comp (continuous_apply j) |
| 44 | have hs : Function.Surjective swap := fun a => ⟨fun j i => a i j, rfl⟩ |
| 45 | exact hs.denseRange.comp hd hc |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.NumberTheory.Quaternion.Arithmetic.FiniteScalarDensity |