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.Crystalline.Cohomology.Site |
| 2 | import Mathlib.Algebra.Algebra.Equiv |
| 3 | |
| 4 | /-! # Isomorphisms -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Isomorphisms.CrystallineIsomorphisms |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Isomorphisms of native crystalline objects |
| 12 | |
| 13 | Bijective ambient and residual algebra maps have an inverse in the |
| 14 | actual crystalline category. The inverse preserves the reduction, |
| 15 | the immersion in the special fibre, and the full divided powers. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [CharP k p] |
| 23 | (X : Over (Spec (CommRingCat.of k))) {P Q : Site.Object p k X} |
| 24 | (f : P ⟶ Q) (ha : Function.Bijective f.ambientMap) (hr : Function.Bijective f.reducedMap) |
| 25 | |
| 26 | def ambientInverse : P.thickening.ring →ₐ[WittVector p k] Q.thickening.ring := |
| 27 | (AlgEquiv.ofBijective f.ambientMap ha).symm.toAlgHom |
| 28 | |
| 29 | def reducedInverse : P.residueRing →ₐ[k] Q.residueRing := |
| 30 | (AlgEquiv.ofBijective f.reducedMap hr).symm.toAlgHom |
| 31 | |
| 32 | theorem inverse_reduction (x : P.thickening.ring) : |
| 33 | Q.thickening.reduction (ambientInverse p k X f ha x) = |
| 34 | reducedInverse p k X f hr (P.thickening.reduction x) := by |
| 35 | apply hr.injective |
| 36 | rw [← f.reduction_comm] |
| 37 | change P.thickening.reduction (f.ambientMap ((AlgEquiv.ofBijective f.ambientMap ha).symm x)) = |
| 38 | f.reducedMap ((AlgEquiv.ofBijective f.reducedMap hr).symm (P.thickening.reduction x)) |
| 39 | rw [AlgEquiv.ofBijective_apply_symm_apply, AlgEquiv.ofBijective_apply_symm_apply] |
| 40 | |
| 41 | include hr in |
| 42 | theorem inverse_isDPMorphism : |
| 43 | DividedPowers.IsDPMorphism P.thickening.dividedPowers Q.thickening.dividedPowers |
| 44 | (ambientInverse p k X f ha).toRingHom where |
| 45 | ideal_comp := by |
| 46 | rw [Ideal.map_le_iff_le_comap] |
| 47 | intro x hx |
| 48 | change Q.thickening.reduction (ambientInverse p k X f ha x) = 0 |
| 49 | rw [inverse_reduction p k X f ha hr, show P.thickening.reduction x = 0 from hx, map_zero] |
| 50 | dpow_comp {n} x hx := by |
| 51 | have hi : ambientInverse p k X f ha x ∈ RingHom.ker Q.thickening.reduction := by |
| 52 | change Q.thickening.reduction (ambientInverse p k X f ha x) = 0 |
| 53 | rw [inverse_reduction p k X f ha hr, show P.thickening.reduction x = 0 from hx, map_zero] |
| 54 | apply ha.injective |
| 55 | exact (f.dp_comp.dpow_comp _ hi).symm.trans |
| 56 | ((congrArg (P.thickening.dividedPowers.dpow n) |
| 57 | (AlgEquiv.ofBijective_apply_symm_apply f.ambientMap ha x)).trans |
| 58 | (AlgEquiv.ofBijective_apply_symm_apply f.ambientMap ha (P.thickening.dividedPowers.dpow n x)).symm) |
| 59 | |
| 60 | def inverse : Q ⟶ P where |
| 61 | ambientMap := ambientInverse p k X f ha |
| 62 | reducedMap := reducedInverse p k X f hr |
| 63 | reduction_comm := inverse_reduction p k X f ha hr |
| 64 | over_X := by |
| 65 | rw [← f.over_X, ← Category.assoc, ← Spec.map_comp] |
| 66 | have he : (reducedInverse p k X f hr).toRingHom.comp f.reducedMap.toRingHom = RingHom.id Q.residueRing := by |
| 67 | ext x |
| 68 | exact AlgEquiv.ofBijective_symm_apply_apply f.reducedMap hr x |
| 69 | change Spec.map (CommRingCat.ofHom ((reducedInverse p k X f hr).toRingHom.comp f.reducedMap.toRingHom)) ≫ Q.immersion = Q.immersion |
| 70 | rw [he] |
| 71 | change Spec.map (𝟙 Q.residueRing) ≫ Q.immersion = Q.immersion |
| 72 | rw [Spec.map_id, Category.id_comp] |
| 73 | dp_comp := inverse_isDPMorphism p k X f ha hr |
| 74 | |
| 75 | def iso : P ≅ Q where |
| 76 | hom := f |
| 77 | inv := inverse p k X f ha hr |
| 78 | hom_inv_id := by |
| 79 | apply Site.Object.Hom.ext |
| 80 | · ext x |
| 81 | exact AlgEquiv.ofBijective_apply_symm_apply f.reducedMap hr x |
| 82 | · ext x |
| 83 | exact AlgEquiv.ofBijective_apply_symm_apply f.ambientMap ha x |
| 84 | inv_hom_id := by |
| 85 | apply Site.Object.Hom.ext |
| 86 | · ext x |
| 87 | exact AlgEquiv.ofBijective_symm_apply_apply f.reducedMap hr x |
| 88 | · ext x |
| 89 | exact AlgEquiv.ofBijective_symm_apply_apply f.ambientMap ha x |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Isomorphisms.CrystallineIsomorphisms |