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.RelativeBaseChange |
| 2 | |
| 3 | /-! # Local Scheme Flatness -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LocalSchemeFlatness.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The local scheme flatness criterion with an arbitrary finite source. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry IsLocalRing |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | /-- The finite-module flatness criterion for a finite scheme over a local |
| 17 | target. The closed fiber may be tested after a faithfully flat extension. -/ |
| 18 | theorem flat_finite_over_local_of_flat_closedFiber_baseChange |
| 19 | (R A D : Type u) [CommRing R] [CommRing A] [CommRing D] |
| 20 | [Algebra R A] [IsLocalRing R] [IsLocalRing A] [IsLocalHom (algebraMap R A)] |
| 21 | [Algebra A D] [Algebra (A ⊗[R] ResidueField R) D] |
| 22 | [IsScalarTower A (A ⊗[R] ResidueField R) D] |
| 23 | [Module.FaithfullyFlat (A ⊗[R] ResidueField R) D] |
| 24 | {X : Scheme.{u}} (f : X ⟶ Spec (.of A)) [IsFinite f] [LocallyOfFinitePresentation f] |
| 25 | [Flat (f ≫ Spec.map (CommRingCat.ofHom (algebraMap R A)))] |
| 26 | [Flat (pullback.snd f (Spec.map (CommRingCat.ofHom (algebraMap A D))))] : |
| 27 | Flat f := by |
| 28 | have : IsAffine X := isAffine_of_isAffineHom f |
| 29 | let B := Γ(X, ⊤) |
| 30 | let φ : CommRingCat.of A ⟶ B := Spec.preimage (X.isoSpec.inv ≫ f) |
| 31 | let : Algebra A B := φ.hom.toAlgebra |
| 32 | let : Algebra R B := (φ.hom.comp (algebraMap R A)).toAlgebra |
| 33 | have : IsScalarTower R A B := IsScalarTower.of_algebraMap_eq' rfl |
| 34 | have hφ : Spec.map φ = X.isoSpec.inv ≫ f := Spec.map_preimage _ |
| 35 | have : IsFinite (Spec.map φ) := by rw [hφ]; infer_instance |
| 36 | have : LocallyOfFinitePresentation (Spec.map φ) := by rw [hφ]; infer_instance |
| 37 | have : Flat (Spec.map (CommRingCat.ofHom (algebraMap R B))) := by |
| 38 | have hc : Spec.map (CommRingCat.ofHom (algebraMap R B)) = |
| 39 | Spec.map φ ≫ Spec.map (CommRingCat.ofHom (algebraMap R A)) := by |
| 40 | rw [← Spec.map_comp] |
| 41 | rfl |
| 42 | rw [hc, hφ, Category.assoc] |
| 43 | infer_instance |
| 44 | let e : Over.mk (Spec.map φ) ≅ Over.mk f := Over.isoMk X.isoSpec.symm hφ.symm |
| 45 | let i := Spec.map (CommRingCat.ofHom (algebraMap A D)) |
| 46 | have : Flat ((Over.pullback i).obj (Over.mk f)).hom := |
| 47 | inferInstanceAs (Flat (pullback.snd f i)) |
| 48 | have : Flat ((Over.pullback i).obj (Over.mk (Spec.map φ))).hom := |
| 49 | RelativeBaseChange.Construction.flat_of_overIso ((Over.pullback i).mapIso e) |
| 50 | have : Flat (pullback.fst i (Spec.map φ)) := |
| 51 | (RelativeBaseChange.Construction.flat_pullback_fst_iff_snd i (Spec.map φ)).mpr |
| 52 | (inferInstanceAs (Flat ((Over.pullback i).obj (Over.mk (Spec.map φ))).hom)) |
| 53 | have hfφ : Flat (Spec.map φ) := |
| 54 | AffineFiberFlatness.Construction.flat_SpecMap_of_flat_closedFiber_baseChange R A B D |
| 55 | rw [hφ] at hfφ |
| 56 | have : Flat (X.isoSpec.hom ≫ (X.isoSpec.inv ≫ f)) := inferInstance |
| 57 | simpa only [Iso.hom_inv_id_assoc] using this |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LocalSchemeFlatness.Construction |