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.AlgebraicGeometry.Picard.Homomorphisms.ChangeBase |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 3 | import Mathlib.RingTheory.RingHom.StandardSmooth |
| 4 | |
| 5 | /-! # Smooth -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.Smooth.Construction |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.CategoryTheory.Limits |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | variable (p : ℕ) (hp : p.Prime) |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency.types false in |
| 16 | theorem relativeFrobenius_standardSmooth_flat (R T : Type u) [CommRing R] [CommRing T] |
| 17 | (hR : (p : R) = 0) (f : R →+* T) (hf : f.IsStandardSmooth) : |
| 18 | Flat (Frobenius.Construction.relativeFrobenius p hp (Affine.Construction.prime_eq_zero_spec p R hR) |
| 19 | (Over.mk (Spec.map (CommRingCat.ofHom f)))).left := by |
| 20 | obtain ⟨n, g, hg, hge⟩ := hf.exists_etale_mvPolynomial |
| 21 | let A := Over.mk (Spec.map (CommRingCat.ofHom f)) |
| 22 | let B := Over.mk (Spec.map (CommRingCat.ofHom |
| 23 | (MvPolynomial.C : R →+* MvPolynomial (Fin n) R))) |
| 24 | let e : A ⟶ B := Over.homMk (Spec.map (CommRingCat.ofHom g)) (by |
| 25 | change Spec.map (CommRingCat.ofHom g) ≫ Spec.map (CommRingCat.ofHom MvPolynomial.C) = _ |
| 26 | rw [← Spec.map_comp] |
| 27 | exact congrArg Spec.map (CommRingCat.hom_ext hg)) |
| 28 | have : Etale e.left := (HasRingHomProperty.Spec_iff (P := @Etale)).mpr hge |
| 29 | have : Flat (Frobenius.Construction.relativeFrobenius p hp (Affine.Construction.prime_eq_zero_spec p R hR) B).left := |
| 30 | Affine.Construction.relativeFrobenius_polynomial_flat p hp R hR (Fin n) |
| 31 | exact SmoothChart.Construction.relativeFrobenius_flat_of_etale p hp (Affine.Construction.prime_eq_zero_spec p R hR) e |
| 32 | |
| 33 | set_option backward.isDefEq.respectTransparency.types false in |
| 34 | theorem relativeFrobenius_affine_standardSmooth_flat {X Y : Scheme.{u}} |
| 35 | [IsAffine X] [IsAffine Y] (hY : (p : Γ(Y, ⊤)) = 0) (f : X ⟶ Y) |
| 36 | (hf : f.appTop.hom.IsStandardSmooth) : |
| 37 | Flat (Frobenius.Construction.relativeFrobenius p hp hY (Over.mk f)).left := by |
| 38 | let A : Over (Spec Γ(Y, ⊤)) := Over.mk (f ≫ Y.isoSpec.hom) |
| 39 | let B : Over (Spec Γ(Y, ⊤)) := Over.mk (Spec.map f.appTop) |
| 40 | let e : A ⟶ B := Over.homMk X.isoSpec.hom (Scheme.isoSpec_hom_naturality f) |
| 41 | have : Etale e.left := inferInstanceAs (Etale X.isoSpec.hom) |
| 42 | have hSpec : (p : Γ(Spec Γ(Y, ⊤), ⊤)) = 0 := Affine.Construction.prime_eq_zero_spec p Γ(Y, ⊤) hY |
| 43 | have : Flat (Frobenius.Construction.relativeFrobenius p hp hSpec B).left := |
| 44 | relativeFrobenius_standardSmooth_flat p hp Γ(Y, ⊤) Γ(X, ⊤) hY f.appTop.hom hf |
| 45 | have hA : Flat (Frobenius.Construction.relativeFrobenius p hp hSpec A).left := |
| 46 | SmoothChart.Construction.relativeFrobenius_flat_of_etale p hp hSpec e |
| 47 | have hbase := ChangeBase.Construction.relativeFrobenius_flat_under_etaleBase p hp hY Y.isoSpec.inv A |
| 48 | change Flat (Frobenius.Construction.relativeFrobenius p hp hY |
| 49 | (Over.mk ((f ≫ Y.isoSpec.hom) ≫ Y.isoSpec.inv))).left at hbase |
| 50 | have heq : (f ≫ Y.isoSpec.hom) ≫ Y.isoSpec.inv = f := |
| 51 | (Category.assoc f _ _).trans |
| 52 | ((congrArg (fun t => f ≫ t) Y.isoSpec.hom_inv_id).trans (Category.comp_id f)) |
| 53 | exact heq ▸ hbase |
| 54 | |
| 55 | set_option backward.isDefEq.respectTransparency.types false in |
| 56 | /-- Flatness of relative Frobenius for a smooth scheme, proved on standard |
| 57 | smooth affine charts and transferred back through the actual base changes. -/ |
| 58 | theorem relativeFrobenius_smooth_flat {S : Scheme.{u}} |
| 59 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) [Smooth A.hom] : |
| 60 | Flat (Frobenius.Construction.relativeFrobenius p hp hS A).left := by |
| 61 | have hlocal : ∀ x : A.left, ∃ V : A.left.Opens, |
| 62 | x ∈ V ∧ Flat (V.ι ≫ (Frobenius.Construction.relativeFrobenius p hp hS A).left) := by |
| 63 | intro x |
| 64 | obtain ⟨U, hU, V, hV, hxV, e, hstd⟩ := Smooth.exists_isStandardSmooth A.hom x |
| 65 | have : IsAffine U.toScheme := hU |
| 66 | have : IsAffine V.toScheme := hV |
| 67 | let g := A.hom.resLE U V e |
| 68 | have hg : g.appTop.hom.IsStandardSmooth := |
| 69 | (RingHom.isStandardSmooth_respectsIso.arrow_mk_iso_iff |
| 70 | (arrowResLEAppIso A.hom U V e)).mpr hstd |
| 71 | have hUchar := Frobenius.Construction.prime_eq_zero_of_map p hS U.ι |
| 72 | have : Flat (Frobenius.Construction.relativeFrobenius p hp hUchar (Over.mk g)).left := |
| 73 | relativeFrobenius_affine_standardSmooth_flat p hp hUchar g hg |
| 74 | have hbase := ChangeBase.Construction.relativeFrobenius_flat_under_etaleBase p hp hS U.ι (Over.mk g) |
| 75 | change Flat (Frobenius.Construction.relativeFrobenius p hp hS (Over.mk (g ≫ U.ι))).left at hbase |
| 76 | let VA : Over S := Over.mk (V.ι ≫ A.hom) |
| 77 | have hVA : Flat (Frobenius.Construction.relativeFrobenius p hp hS VA).left := by |
| 78 | change Flat (Frobenius.Construction.relativeFrobenius p hp hS (Over.mk (V.ι ≫ A.hom))).left |
| 79 | have heq : g ≫ U.ι = V.ι ≫ A.hom := Scheme.Hom.resLE_comp_ι A.hom e |
| 80 | exact heq ▸ hbase |
| 81 | let i : VA ⟶ A := Over.homMk V.ι rfl |
| 82 | have hi : Flat i.left := inferInstanceAs (Flat V.ι) |
| 83 | have htwist : Flat ((Over.pullback (Frobenius.Construction.absoluteFrobenius p hp S hS)).map i).left := |
| 84 | MorphismProperty.of_isPullback (P := @Flat) |
| 85 | (SmoothChart.Construction.frobeniusTwist_map_isPullback p hp hS i) hi |
| 86 | have hcomp := MorphismProperty.comp_mem @Flat _ _ hVA htwist |
| 87 | have hnat := congrArg Over.Hom.left ((Group.Construction.relativeFrobeniusNat p hp hS).naturality i) |
| 88 | have hnat' : V.ι ≫ (Frobenius.Construction.relativeFrobenius p hp hS A).left = |
| 89 | (Frobenius.Construction.relativeFrobenius p hp hS VA).left ≫ |
| 90 | ((Over.pullback (Frobenius.Construction.absoluteFrobenius p hp S hS)).map i).left := hnat |
| 91 | refine ⟨V, hxV, ?_⟩ |
| 92 | exact hnat'.symm ▸ hcomp |
| 93 | choose V hmem hflat using hlocal |
| 94 | apply IsZariskiLocalAtSource.of_iSup_eq_top (P := @Flat) V _ hflat |
| 95 | apply top_unique |
| 96 | intro x _ |
| 97 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨x, hmem x⟩ |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.Smooth.Construction |