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.RingTheory.Smooth.Fiber |
| 2 | import Mathlib.RingTheory.Smooth.Field |
| 3 | import Mathlib.RingTheory.EssentialFiniteness |
| 4 | import Mathlib.RingTheory.FinitePresentation |
| 5 | import Mathlib.RingTheory.Noetherian.Basic |
| 6 | import Mathlib.Algebra.Field.Equiv |
| 7 | |
| 8 | /-! # Smooth Local Fiber -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.SmoothLocalFiber.Constructions |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! A flat local map with a field as its closed fiber is formally smooth |
| 15 | when the residue characteristic is zero. This will apply to the parameter |
| 16 | map of the actual discrete valuation rings on the normalization. -/ |
| 17 | |
| 18 | open _root_.Algebra TensorProduct IsLocalRing |
| 19 | |
| 20 | theorem formallySmooth_of_maximalIdeal_map |
| 21 | (R S : Type*) [CommRing R] [CommRing S] |
| 22 | [IsLocalRing R] [IsLocalRing S] [IsNoetherianRing R] |
| 23 | [Algebra R S] [IsLocalHom (algebraMap R S)] |
| 24 | [Module.Flat R S] [Algebra.EssFiniteType R S] |
| 25 | [PerfectField (ResidueField R)] |
| 26 | (h : (maximalIdeal R).map (algebraMap R S) = maximalIdeal S) : |
| 27 | Algebra.FormallySmooth R S := by |
| 28 | let e : ResidueField R ⊗[R] S ≃ₐ[R] S ⧸ maximalIdeal S := |
| 29 | ((Algebra.TensorProduct.comm R (ResidueField R) S).trans |
| 30 | ((TensorProduct.quotIdealMapEquivTensorQuot S (maximalIdeal R)).symm.restrictScalars R)).trans |
| 31 | (Ideal.quotientEquivAlgOfEq R h) |
| 32 | let : Field (S ⧸ maximalIdeal S) := Ideal.Quotient.field _ |
| 33 | have hf : IsField (S ⧸ maximalIdeal S) := Field.toIsField _ |
| 34 | let : Field (ResidueField R ⊗[R] S) := |
| 35 | (MulEquiv.isField hf e.toRingEquiv.toMulEquiv).toField |
| 36 | let : Algebra.FormallySmooth (ResidueField R) (ResidueField R ⊗[R] S) := inferInstance |
| 37 | let P := Algebra.EssFiniteType.subalgebra R S |
| 38 | let : Algebra.FiniteType R P := inferInstanceAs |
| 39 | (Algebra.FiniteType R (Algebra.EssFiniteType.subalgebra R S)) |
| 40 | let : Algebra.FinitePresentation R P := |
| 41 | Algebra.FinitePresentation.of_finiteType.mp inferInstance |
| 42 | exact Algebra.FormallySmooth.of_formallySmooth_residueField_tensor |
| 43 | (R := R) (S := S) (P := P) (Algebra.EssFiniteType.submonoid R S) |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.CycleClass.Thom.SmoothLocalFiber.Constructions |