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 Mathlib |
| 2 | |
| 3 | /-! # Separated Affine Intersection -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SeparatedAffineIntersection |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: affine intersections over a separated scheme |
| 11 | |
| 12 | The fiber product of two affine schemes mapping to a scheme separated |
| 13 | over an affine base is affine. Its map into their product over the base |
| 14 | is a closed immersion and therefore gives a surjection on coordinate rings. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | lemma spec_preimage_surjective {A B : CommRingCat.{u}} |
| 22 | (g : Spec A ⟶ Spec B) [IsClosedImmersion g] : |
| 23 | Function.Surjective (Spec.preimage g) := by |
| 24 | let φ := Spec.preimage g |
| 25 | have hg : Spec.map φ = g := Spec.map_preimage g |
| 26 | have hs : Function.Surjective (Spec.map φ).appTop := by |
| 27 | rw [hg] |
| 28 | exact (IsClosedImmersion.isAffine_surjective_of_isAffine g).2 |
| 29 | have he : φ = (Scheme.ΓSpecIso B).inv ≫ |
| 30 | (Spec.map φ).appTop ≫ (Scheme.ΓSpecIso A).hom := by |
| 31 | rw [Scheme.ΓSpecIso_naturality, Iso.inv_hom_id_assoc] |
| 32 | rw [show Spec.preimage g = φ from rfl, he] |
| 33 | exact (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso A).hom).2.comp |
| 34 | (hs.comp (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso B).inv).2) |
| 35 | |
| 36 | variable {A B R : CommRingCat.{u}} {X : Scheme.{u}} |
| 37 | variable (f : Spec A ⟶ X) (g : Spec B ⟶ X) (s : X ⟶ Spec R) [IsSeparated s] |
| 38 | |
| 39 | include s in |
| 40 | lemma left_affine : IsAffineHom f := IsAffineHom.of_comp f s |
| 41 | |
| 42 | include s in |
| 43 | lemma intersection_affine : IsAffine (pullback f g) := by |
| 44 | let := left_affine f s |
| 45 | infer_instance |
| 46 | |
| 47 | abbrev CoordinateRing : CommRingCat.{u} := Γ(pullback f g, ⊤) |
| 48 | |
| 49 | def affineIso : Spec (CoordinateRing f g) ≅ pullback f g := by |
| 50 | letI := intersection_affine f g s |
| 51 | exact (Scheme.isoSpec (pullback f g)).symm |
| 52 | |
| 53 | def fst : Spec (CoordinateRing f g) ⟶ Spec A := |
| 54 | (affineIso f g s).hom ≫ pullback.fst f g |
| 55 | |
| 56 | def snd : Spec (CoordinateRing f g) ⟶ Spec B := |
| 57 | (affineIso f g s).hom ≫ pullback.snd f g |
| 58 | |
| 59 | lemma isPullback : IsPullback (SeparatedAffineIntersection.fst f g s) (SeparatedAffineIntersection.snd f g s) f g := by |
| 60 | exact (IsPullback.of_hasPullback f g).of_iso |
| 61 | (affineIso f g s).symm (Iso.refl _) (Iso.refl _) (Iso.refl _) |
| 62 | (by simp [SeparatedAffineIntersection.fst]) (by simp [SeparatedAffineIntersection.snd]) (by simp) (by simp) |
| 63 | |
| 64 | variable {Q : CommRingCat.{u}} (l : Spec Q ⟶ Spec A) (r : Spec Q ⟶ Spec B) |
| 65 | variable (h : IsPullback l r (f ≫ s) (g ≫ s)) |
| 66 | |
| 67 | def embedding : Spec (CoordinateRing f g) ⟶ Spec Q := |
| 68 | (affineIso f g s).hom ≫ pullback.mapDesc f g s ≫ h.isoPullback.inv |
| 69 | |
| 70 | instance embedding_closed : IsClosedImmersion (embedding f g s l r h) := by |
| 71 | unfold embedding |
| 72 | infer_instance |
| 73 | |
| 74 | lemma embedding_fst : embedding f g s l r h ≫ l = SeparatedAffineIntersection.fst f g s := by |
| 75 | simp [embedding, SeparatedAffineIntersection.fst, pullback.mapDesc, pullback.map] |
| 76 | exact pullback.lift_fst _ _ _ |
| 77 | |
| 78 | lemma embedding_snd : embedding f g s l r h ≫ r = SeparatedAffineIntersection.snd f g s := by |
| 79 | simp [embedding, SeparatedAffineIntersection.snd, pullback.mapDesc, pullback.map] |
| 80 | exact pullback.lift_snd _ _ _ |
| 81 | |
| 82 | lemma reduction_surjective : Function.Surjective (Spec.preimage (embedding f g s l r h)) := |
| 83 | spec_preimage_surjective _ |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SeparatedAffineIntersection |