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.SchemeFiberDensity |
| 2 | |
| 3 | /-! # Dense Open -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.DenseOpen.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A nonempty open in an integral scheme over a Dedekind domain is dense |
| 10 | in every fiber after removing one proper closed subset of the base. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem integral_scheme_open_dense_in_fibers_after_shrinking |
| 17 | (R : Type u) [CommRing R] [IsDedekindDomain R] |
| 18 | (X : Over (Spec (.of R))) [IsIntegral X.left] |
| 19 | [CompactSpace X.left] [IsLocallyNoetherian X.left] |
| 20 | (U : X.left.Opens) (hU : (U : Set X.left).Nonempty) : |
| 21 | ∃ r : R, r ≠ 0 ∧ |
| 22 | ∀ (S : Type u) [CommRing S] [Algebra R S], IsUnit (algebraMap R S r) → |
| 23 | Dense ((pullback.fst X.hom |
| 24 | (Spec.map (CommRingCat.ofHom (algebraMap R S)))) ⁻¹' (U : Set X.left)) := by |
| 25 | classical |
| 26 | obtain ⟨ι, hι, V, hV, hcover⟩ := FiniteAffineCover.Construction.finite_nonempty_affine_open_cover X.left |
| 27 | let : Fintype ι := Fintype.ofFinite ι |
| 28 | let Y (i : ι) := OpenOver.Construction.overOpen X (V i) |
| 29 | let Ui (i : ι) : (Y i).left.Opens := (V i).ι ⁻¹ᵁ U |
| 30 | have hlocal (i : ι) : ∃ r : R, r ≠ 0 ∧ |
| 31 | ∀ (S : Type u) [CommRing S] [Algebra R S], IsUnit (algebraMap R S r) → |
| 32 | Dense ((pullback.fst (Y i).hom |
| 33 | (Spec.map (CommRingCat.ofHom (algebraMap R S)))) ⁻¹' (Ui i : Set (Y i).left)) := by |
| 34 | have : IsAffine (Y i).left := (hV i).1 |
| 35 | have : Nonempty (V i).toScheme := ⟨⟨(hV i).2.choose, (hV i).2.choose_spec⟩⟩ |
| 36 | have hVI : IsIntegral (V i).toScheme := isIntegral_of_isOpenImmersion (V i).ι |
| 37 | have : IsIntegral (Y i).left := hVI |
| 38 | have : IsLocallyNoetherian (Y i).left := inferInstanceAs (IsLocallyNoetherian (V i).toScheme) |
| 39 | apply SchemeFiberDensity.Construction.affine_scheme_open_dense_in_fibers_after_shrinking R (Y i) (Ui i) |
| 40 | obtain ⟨x, hxV, hxU⟩ := nonempty_preirreducible_inter (V i).isOpen U.isOpen (hV i).2 hU |
| 41 | exact ⟨⟨x, hxV⟩, hxU⟩ |
| 42 | choose r hr hd using hlocal |
| 43 | let a : R := ∏ i, r i |
| 44 | have ha : a ≠ 0 := Finset.prod_ne_zero_iff.mpr (fun i _ ↦ hr i) |
| 45 | refine ⟨a, ha, fun S _ _ hu ↦ ?_⟩ |
| 46 | let g := Spec.map (CommRingCat.ofHom (algebraMap R S)) |
| 47 | let F := Over.pullback g |
| 48 | let j (i : ι) := (F.map (OpenOver.Construction.overOpenInclusion X (V i))).left |
| 49 | have hj (i : ι) : Set.range (j i) = (pullback.fst X.hom g) ⁻¹' (V i : Set X.left) := by |
| 50 | have H := FoundationsPullback.Constructions.pullback_over_map_isPullback g (OpenOver.Construction.overOpenInclusion X (V i)) |
| 51 | simpa only [OpenOver.Construction.overOpenInclusion_range] using GeometricFieldComponents.Construction.pullback_square_range_fst H |
| 52 | apply SchemeFiberDensity.Construction.dense_of_covering_scheme_maps (fun i ↦ (F.obj (Y i)).left) j |
| 53 | · intro x |
| 54 | have hx : pullback.fst X.hom g x ∈ ⨆ i, V i := by rw [hcover]; trivial |
| 55 | obtain ⟨i, hi⟩ := Opens.mem_iSup.mp hx |
| 56 | have hm : x ∈ Set.range (j i) := (hj i).symm ▸ hi |
| 57 | obtain ⟨y, hy⟩ := hm |
| 58 | exact ⟨i, y, hy⟩ |
| 59 | · intro i |
| 60 | have hui : IsUnit (algebraMap R S (r i)) := |
| 61 | isUnit_of_dvd_unit ((algebraMap R S).map_dvd |
| 62 | (Finset.dvd_prod_of_mem r (Finset.mem_univ i))) hu |
| 63 | have hi := hd i S hui |
| 64 | have hcomp : j i ≫ pullback.fst X.hom g = pullback.fst (Y i).hom g ≫ (V i).ι := |
| 65 | (FoundationsPullback.Constructions.pullback_over_map_isPullback g (OpenOver.Construction.overOpenInclusion X (V i))).w |
| 66 | change Dense ((j i ≫ pullback.fst X.hom g) ⁻¹' (U : Set X.left)) |
| 67 | rw [hcomp] |
| 68 | exact hi |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.ArithmeticGeometry.Models.SpreadingOut.DenseOpen.Construction |