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.IntersectionTheory.ProjectionFormula.Smooth.StalkDifferentials |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.OverScalars |
| 3 | |
| 4 | /-! # Equal Dimension Etale -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.EqualDimensionEtale |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An unramified map between smooth schemes of the same dimension |
| 11 | over a field is formally etale at that stalk, by the Jacobi-Zariski sequence. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem stalk {K : Type u} [Field K] {X Y : Scheme.{u}} |
| 22 | (i : X ⟶ Y) (f : X ⟶ Spec (.of K)) (g : Y ⟶ Spec (.of K)) |
| 23 | (hi : i ≫ g = f) (m : ℕ) |
| 24 | [SmoothOfRelativeDimension m f] [SmoothOfRelativeDimension m g] (x : X) |
| 25 | (hu : (i.stalkMap x).hom.FormallyUnramified) : (i.stalkMap x).hom.FormallyEtale := by |
| 26 | let A := Y.presheaf.stalk (i x) |
| 27 | let B := X.presheaf.stalk x |
| 28 | let := Stalk.PointAlgebra.scalarAlgebra g (i x) |
| 29 | let := Stalk.PointAlgebra.scalarAlgebra f x |
| 30 | let φ := Stalk.OverScalars.map i f g hi x |
| 31 | have hφ : φ.toRingHom = (i.stalkMap x).hom := Stalk.OverScalars.ringHom i f g hi x |
| 32 | let := φ.toRingHom.toAlgebra |
| 33 | let : IsScalarTower K A B := IsScalarTower.of_algebraMap_eq fun c => (φ.commutes c).symm |
| 34 | obtain ⟨hAS, hAF, hAfin, hAdim⟩ := StalkDifferentials.data g m (i x) |
| 35 | obtain ⟨hBS, hBF, hBfin, hBdim⟩ := StalkDifferentials.data f m x |
| 36 | let := hAS |
| 37 | let := hAF |
| 38 | let := hAfin |
| 39 | let := hBS |
| 40 | let := hBF |
| 41 | let := hBfin |
| 42 | let : Algebra.FormallyUnramified A B := by |
| 43 | change φ.toRingHom.FormallyUnramified |
| 44 | rw [hφ] |
| 45 | exact hu |
| 46 | rw [← hφ] |
| 47 | apply Etale.FromDifferentials.of_finrank_eq K A B |
| 48 | rw [Module.finrank_baseChange, hAdim, hBdim] |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.EqualDimensionEtale |