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.OrdinaryLocus.Openness.GenericFlatness |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FlatTranslations |
| 3 | |
| 4 | /-! # Affine Flat Open -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineFlatOpen.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Affine generic flatness as an actual nonempty source open. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | /-- A surjective affine morphism with finite-presentation algebra module over |
| 18 | a nonzero reduced base is flat on some nonempty source open. -/ |
| 19 | theorem exists_nonempty_flat_source_open_affine_of_reduced |
| 20 | (R B : Type u) [CommRing R] [_root_.IsReduced R] [Nontrivial R] |
| 21 | [CommRing B] [Algebra R B] |
| 22 | [Module.FinitePresentation R B] |
| 23 | [Surjective (Spec.map (CommRingCat.ofHom (algebraMap R B)))] : |
| 24 | ∃ U : (Spec (.of B)).Opens, (U : Set (Spec (.of B))).Nonempty ∧ |
| 25 | Flat (U.ι ≫ Spec.map (CommRingCat.ofHom (algebraMap R B))) := by |
| 26 | obtain ⟨r, hnontriv, hflat⟩ := GenericFlatness.Construction.exists_nontrivial_flat_affine_baseChange_of_reduced R B |
| 27 | let Rr := Localization.Away r |
| 28 | let f := Spec.map (CommRingCat.ofHom (algebraMap R B)) |
| 29 | let i := Spec.map (CommRingCat.ofHom (algebraMap R Rr)) |
| 30 | let j := pullback.snd i f |
| 31 | have : IsOpenImmersion i := by |
| 32 | dsimp [i, Rr] |
| 33 | infer_instance |
| 34 | have : IsOpenImmersion j := by |
| 35 | dsimp [j] |
| 36 | infer_instance |
| 37 | have : Flat (Spec.map (CommRingCat.ofHom (algebraMap Rr (Rr ⊗[R] B)))) := hflat |
| 38 | have : Flat (pullback.fst i f) := by |
| 39 | rw [← pullbackSpecIso_hom_fst' R Rr B] |
| 40 | infer_instance |
| 41 | have : Flat (j ≫ f) := by |
| 42 | change Flat (pullback.snd i f ≫ f) |
| 43 | rw [← pullback.condition] |
| 44 | infer_instance |
| 45 | have : Nontrivial Rr := hnontriv |
| 46 | have : Surjective (pullback.fst i f) := by |
| 47 | dsimp [f] |
| 48 | infer_instance |
| 49 | have : Nonempty ↥(pullback i f) := |
| 50 | (pullback.fst i f).surjective.nonempty |
| 51 | refine ⟨j.opensRange, ?_, ?_⟩ |
| 52 | · obtain ⟨z⟩ := ‹Nonempty ↥(pullback i f)› |
| 53 | exact ⟨j z, ⟨z, rfl⟩⟩ |
| 54 | · rw [← j.isoOpensRange_inv_comp, Category.assoc] |
| 55 | infer_instance |
| 56 | |
| 57 | /-- The integral-base form of generic flatness for an affine morphism. -/ |
| 58 | theorem exists_nonempty_flat_source_open_affine |
| 59 | (R B : Type u) [CommRing R] [IsDomain R] [CommRing B] [Algebra R B] |
| 60 | [Module.FinitePresentation R B] |
| 61 | [Surjective (Spec.map (CommRingCat.ofHom (algebraMap R B)))] : |
| 62 | ∃ U : (Spec (.of B)).Opens, (U : Set (Spec (.of B))).Nonempty ∧ |
| 63 | Flat (U.ι ≫ Spec.map (CommRingCat.ofHom (algebraMap R B))) := |
| 64 | exists_nonempty_flat_source_open_affine_of_reduced R B |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineFlatOpen.Construction |