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.Stalk.ScalarMaps |
| 2 | |
| 3 | /-! # Over Scalars -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.OverScalars |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Stalk maps as algebra homomorphisms for specified, commuting |
| 10 | structure maps to the coefficient field. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {K : Type u} [Field K] {X Y : Scheme.{u}} |
| 17 | |
| 18 | def map (i : X ⟶ Y) (f : X ⟶ Spec (.of K)) (g : Y ⟶ Spec (.of K)) |
| 19 | (h : i ≫ g = f) (x : X) : |
| 20 | letI := PointAlgebra.scalarAlgebra g (i x) |
| 21 | letI := PointAlgebra.scalarAlgebra f x |
| 22 | Y.presheaf.stalk (i x) →ₐ[K] X.presheaf.stalk x := by |
| 23 | let := PointAlgebra.scalarAlgebra g (i x) |
| 24 | let := PointAlgebra.scalarAlgebra f x |
| 25 | refine { (i.stalkMap x).hom with commutes' := ?_ } |
| 26 | intro c |
| 27 | subst f |
| 28 | exact (ScalarMaps.stalk i g x).commutes c |
| 29 | |
| 30 | theorem ringHom (i : X ⟶ Y) (f : X ⟶ Spec (.of K)) (g : Y ⟶ Spec (.of K)) |
| 31 | (h : i ≫ g = f) (x : X) : |
| 32 | letI := PointAlgebra.scalarAlgebra g (i x) |
| 33 | letI := PointAlgebra.scalarAlgebra f x |
| 34 | (map i f g h x).toRingHom = (i.stalkMap x).hom := rfl |
| 35 | |
| 36 | theorem apply (i : X ⟶ Y) (f : X ⟶ Spec (.of K)) (g : Y ⟶ Spec (.of K)) |
| 37 | (h : i ≫ g = f) (x : X) (r : Y.presheaf.stalk (i x)) : |
| 38 | map i f g h x r = i.stalkMap x r := by |
| 39 | exact RingHom.congr_fun (ringHom i f g h x) r |
| 40 | |
| 41 | instance isLocal (i : X ⟶ Y) (f : X ⟶ Spec (.of K)) (g : Y ⟶ Spec (.of K)) |
| 42 | (h : i ≫ g = f) (x : X) : |
| 43 | letI := PointAlgebra.scalarAlgebra g (i x) |
| 44 | letI := PointAlgebra.scalarAlgebra f x |
| 45 | IsLocalHom (map i f g h x).toRingHom := by |
| 46 | let := PointAlgebra.scalarAlgebra g (i x) |
| 47 | let := PointAlgebra.scalarAlgebra f x |
| 48 | rw [ringHom] |
| 49 | infer_instance |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.OverScalars |