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.ArithmeticGeometry.Models.SpreadingOut.AffineFiberDensity |
| 2 | import OAI.ArithmeticGeometry.Models.SpreadingOut.FiniteAffineCover |
| 3 | |
| 4 | /-! # Scheme Fiber Density -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.SchemeFiberDensity.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Fiberwise density is preserved by affine coordinates and can be |
| 11 | assembled from a finite affine cover. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem baseChange_dense_open_of_iso |
| 19 | {B T : Scheme.{u}} {X Y : Over B} (e : X ≅ Y) (g : T ⟶ B) |
| 20 | (U : X.left.Opens) |
| 21 | (h : Dense ((pullback.fst Y.hom g) ⁻¹' (e.inv.left ⁻¹' (U : Set X.left)))) : |
| 22 | Dense ((pullback.fst X.hom g) ⁻¹' (U : Set X.left)) := by |
| 23 | let k := (Over.pullback g).mapIso e |
| 24 | have : IsIso k.hom.left := inferInstanceAs (IsIso ((Over.forget T).map k.hom)) |
| 25 | have hk : k.hom.left ≫ (pullback.fst Y.hom g ≫ e.inv.left) = |
| 26 | pullback.fst X.hom g := by |
| 27 | erw [← Category.assoc, pullback.lift_fst, Category.assoc, Over.hom_left_inv_left, |
| 28 | Category.comp_id] |
| 29 | have hd := h.preimage k.hom.left.isOpenMap |
| 30 | change Dense ((k.hom.left ≫ (pullback.fst Y.hom g ≫ e.inv.left)) ⁻¹' (U : Set X.left)) at hd |
| 31 | rwa [hk] at hd |
| 32 | |
| 33 | theorem affine_scheme_open_dense_in_fibers_after_shrinking |
| 34 | (R : Type u) [CommRing R] [IsDedekindDomain R] |
| 35 | (X : Over (Spec (.of R))) [IsAffine X.left] [IsIntegral X.left] |
| 36 | [IsLocallyNoetherian X.left] |
| 37 | (U : X.left.Opens) (hU : (U : Set X.left).Nonempty) : |
| 38 | ∃ r : R, r ≠ 0 ∧ |
| 39 | ∀ (S : Type u) [CommRing S] [Algebra R S], IsUnit (algebraMap R S r) → |
| 40 | Dense ((pullback.fst X.hom |
| 41 | (Spec.map (CommRingCat.ofHom (algebraMap R S)))) ⁻¹' (U : Set X.left)) := by |
| 42 | obtain ⟨φ, hφ⟩ := Spec.map_surjective (X.left.isoSpec.inv ≫ X.hom) |
| 43 | let A := Γ(X.left, ⊤) |
| 44 | let : Algebra R A := φ.hom.toAlgebra |
| 45 | let e : X ≅ Affine.Construction.affineOver R A := Over.isoMk X.left.isoSpec (by |
| 46 | change X.left.isoSpec.hom ≫ Spec.map φ = X.hom |
| 47 | rw [hφ, Iso.hom_inv_id_assoc]) |
| 48 | have : IsIso e.inv.left := inferInstanceAs (IsIso ((Over.forget (Spec (.of R))).map e.inv)) |
| 49 | have : IsNoetherianRing A := |
| 50 | IsLocallyNoetherian.component_noetherian ⟨⊤, isAffineOpen_top X.left⟩ |
| 51 | let V : (Spec (.of A)).Opens := e.inv.left ⁻¹ᵁ U |
| 52 | have hV : (V : Set (Spec (.of A))).Nonempty := by |
| 53 | obtain ⟨x, hx⟩ := hU |
| 54 | obtain ⟨y, hy⟩ := e.inv.left.surjective x |
| 55 | exact ⟨y, by change e.inv.left y ∈ U; rwa [hy]⟩ |
| 56 | obtain ⟨r, hr, hd⟩ := AffineFiberDensity.Construction.affine_open_dense_in_fibers_after_shrinking R A V hV |
| 57 | refine ⟨r, hr, fun S _ _ hu ↦ ?_⟩ |
| 58 | exact baseChange_dense_open_of_iso e _ U (hd S hu) |
| 59 | |
| 60 | theorem dense_of_covering_scheme_maps |
| 61 | {X : Scheme.{u}} {ι : Type u} (Y : ι → Scheme.{u}) (f : ∀ i, Y i ⟶ X) |
| 62 | (hcover : ∀ x : X, ∃ i y, f i y = x) (U : Set X) |
| 63 | (hd : ∀ i, Dense ((f i) ⁻¹' U)) : Dense U := by |
| 64 | apply dense_iff_inter_open.mpr |
| 65 | intro V hV hne |
| 66 | obtain ⟨x, hx⟩ := hne |
| 67 | obtain ⟨i, y, hy⟩ := hcover x |
| 68 | obtain ⟨z, hzV, hzU⟩ := (hd i).inter_open_nonempty ((f i) ⁻¹' V) |
| 69 | (hV.preimage (f i).continuous) ⟨y, by change f i y ∈ V; rwa [hy]⟩ |
| 70 | exact ⟨f i z, hzV, hzU⟩ |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.ArithmeticGeometry.Models.SpreadingOut.SchemeFiberDensity.Construction |