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.Descent.CMVariety.GenericSmoothNeighborhood |
| 2 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 4 | import Mathlib.Algebra.Algebra.Rat |
| 5 | |
| 6 | /-! # Affine Smooth Spread -/ |
| 7 | |
| 8 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.AffineSmoothSpread.Abelian |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | A point of an affine finite-type rational scheme factors through a smooth |
| 14 | integral rational scheme with a monomorphism to the original scheme. The |
| 15 | construction takes the actual kernel of its complex evaluation and then |
| 16 | the smooth open locus at the resulting arithmetic generic point. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | |
| 21 | variable {A : Type} [CommRing A] [Algebra ℚ A] [Algebra.FiniteType ℚ A] |
| 22 | |
| 23 | theorem affine_complex_point_has_smooth_arithmetic_factor (x : A →ₐ[ℚ] ℂ) : |
| 24 | ∃ (Y : Scheme) (f : Y ⟶ Spec (CommRingCat.of ℚ)) |
| 25 | (i : Y ⟶ Spec (CommRingCat.of A)) (q : Spec (CommRingCat.of ℂ) ⟶ Y), |
| 26 | IsIntegral Y ∧ Smooth f ∧ Mono i ∧ |
| 27 | i ≫ Spec.map (CommRingCat.ofHom (algebraMap ℚ A)) = f ∧ |
| 28 | q ≫ i = Spec.map (CommRingCat.ofHom x.toRingHom) := by |
| 29 | let I := RingHom.ker x |
| 30 | let B := A ⧸ I |
| 31 | let : I.IsPrime := RingHom.ker_isPrime x |
| 32 | let φ : B →ₐ[ℚ] ℂ := Ideal.kerLiftAlg x |
| 33 | have hφ : Function.Injective φ := Ideal.kerLiftAlg_injective x |
| 34 | let fB := Spec.map (CommRingCat.ofHom (algebraMap ℚ B)) |
| 35 | let p := Spec.map (CommRingCat.ofHom φ.toRingHom) |
| 36 | let j := Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk I)) |
| 37 | let : Algebra.FinitePresentation ℚ B := Algebra.FinitePresentation.of_finiteType.mp inferInstance |
| 38 | let : LocallyOfFinitePresentation fB := |
| 39 | (LocallyOfFinitePresentation.SpecMap_iff _).mpr |
| 40 | (RingHom.finitePresentation_algebraMap.mpr inferInstance) |
| 41 | have hp : p (IsLocalRing.closedPoint ℂ) = genericPoint (Spec (CommRingCat.of B)) := by |
| 42 | rw [genericPoint_eq_bot_of_affine] |
| 43 | apply PrimeSpectrum.ext |
| 44 | change Ideal.comap φ.toRingHom (IsLocalRing.maximalIdeal ℂ) = ⊥ |
| 45 | rw [IsLocalRing.maximalIdeal_eq_bot] |
| 46 | exact (RingHom.injective_iff_ker_eq_bot φ.toRingHom).mp hφ |
| 47 | obtain ⟨U, hU, hSmooth, q, hq⟩ := GenericSmoothNeighborhood.Abelian.generic_complex_point_factors_through_smooth_open fB p hp |
| 48 | let : IsIntegral U := hU |
| 49 | let : IsClosedImmersion j := IsClosedImmersion.spec_of_surjective |
| 50 | (CommRingCat.ofHom (Ideal.Quotient.mk I)) Ideal.Quotient.mk_surjective |
| 51 | have hj : j ≫ Spec.map (CommRingCat.ofHom (algebraMap ℚ A)) = fB := by |
| 52 | rw [← Spec.map_comp] |
| 53 | rfl |
| 54 | have hx : p ≫ j = Spec.map (CommRingCat.ofHom x.toRingHom) := by |
| 55 | rw [← Spec.map_comp] |
| 56 | rfl |
| 57 | refine ⟨U, U.ι ≫ fB, U.ι ≫ j, q, hU, hSmooth, inferInstance, ?_, ?_⟩ |
| 58 | · rw [Category.assoc, hj] |
| 59 | · rw [← Category.assoc, hq, hx] |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.ArithmeticGeometry.Descent.CMVariety.AffineSmoothSpread.Abelian |