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.NumberTheory.PadicHodge.IntegralComparison.PairedOpenSectionEquiv |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.SectionBase |
| 3 | |
| 4 | /-! # Equiv Geometry -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffineSection.EquivGeometry |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Realize a specified affine section-algebra equivalence by two |
| 11 | open embeddings of its original affine spectrum. Smaller neighborhoods |
| 12 | are transported through that same equivalence. -/ |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | variable (R : Type u) [CommRing R] |
| 19 | (X₁ X₂ : Over (Spec (CommRingCat.of R))) |
| 20 | (U₁ : X₁.left.Opens) (U₂ : X₂.left.Opens) |
| 21 | (hU₁ : IsAffineOpen U₁) (hU₂ : IsAffineOpen U₂) |
| 22 | |
| 23 | abbrev ring (X : Over (Spec (CommRingCat.of R))) (U : X.left.Opens) := |
| 24 | (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X).obj (op U) |
| 25 | |
| 26 | def common : Over (Spec (CommRingCat.of R)) := |
| 27 | Over.mk (Spec.map (CommRingCat.ofHom (algebraMap R (ring R X₁ U₁)))) |
| 28 | |
| 29 | def left : (common R X₁ U₁).left ⟶ X₁.left := hU₁.fromSpec |
| 30 | |
| 31 | variable (e : ring R X₁ U₁ ≃ₐ[R] ring R X₂ U₂) |
| 32 | |
| 33 | def right : (common R X₁ U₁).left ⟶ X₂.left := |
| 34 | Spec.map (CommRingCat.ofHom e.symm.toRingHom) ≫ hU₂.fromSpec |
| 35 | |
| 36 | instance left_open : IsOpenImmersion (EquivGeometry.left R X₁ U₁ hU₁) := by |
| 37 | dsimp only [EquivGeometry.left] |
| 38 | infer_instance |
| 39 | |
| 40 | instance right_open : IsOpenImmersion (right R X₁ X₂ U₁ U₂ hU₂ e) := by |
| 41 | let : IsIso (Spec.map (CommRingCat.ofHom e.symm.toRingHom)) := |
| 42 | (Scheme.Spec.mapIso e.toRingEquiv.toCommRingCatIso.op).isIso_inv |
| 43 | dsimp only [right] |
| 44 | infer_instance |
| 45 | |
| 46 | theorem left_over : EquivGeometry.left R X₁ U₁ hU₁ ≫ X₁.hom = (common R X₁ U₁).hom := |
| 47 | AffineOpen.SectionBase.overBase R X₁ U₁ hU₁ |
| 48 | |
| 49 | theorem right_over : right R X₁ X₂ U₁ U₂ hU₂ e ≫ X₂.hom = (common R X₁ U₁).hom := by |
| 50 | rw [right, Category.assoc, AffineOpen.SectionBase.overBase, ← Spec.map_comp] |
| 51 | congr 1 |
| 52 | ext r |
| 53 | exact e.symm.commutes r |
| 54 | |
| 55 | theorem left_range : (EquivGeometry.left R X₁ U₁ hU₁).opensRange = U₁ := hU₁.opensRange_fromSpec |
| 56 | |
| 57 | theorem right_range : (right R X₁ X₂ U₁ U₂ hU₂ e).opensRange = U₂ := by |
| 58 | let : IsIso (Spec.map (CommRingCat.ofHom e.symm.toRingHom)) := |
| 59 | (Scheme.Spec.mapIso e.toRingEquiv.toCommRingCatIso.op).isIso_inv |
| 60 | exact (Scheme.Hom.opensRange_comp_of_isIso |
| 61 | (Spec.map (show Γ(X₂.left,U₂) ⟶ Γ(X₁.left,U₁) from CommRingCat.ofHom e.symm.toRingHom)) |
| 62 | hU₂.fromSpec).trans hU₂.opensRange_fromSpec |
| 63 | |
| 64 | variable (V : X₁.left.Opens) (hV : IsAffineOpen V) (hVU : V ≤ U₁) |
| 65 | |
| 66 | def sourceOpen : (common R X₁ U₁).left.Opens := (EquivGeometry.left R X₁ U₁ hU₁) ⁻¹ᵁ V |
| 67 | |
| 68 | def targetOpen : X₂.left.Opens := |
| 69 | (right R X₁ X₂ U₁ U₂ hU₂ e) ''ᵁ sourceOpen R X₁ U₁ hU₁ V |
| 70 | |
| 71 | include hV hVU in |
| 72 | theorem source_affine : IsAffineOpen (sourceOpen R X₁ U₁ hU₁ V) := |
| 73 | hV.preimage_of_isOpenImmersion (EquivGeometry.left R X₁ U₁ hU₁) ((left_range R X₁ U₁ hU₁).symm ▸ hVU) |
| 74 | |
| 75 | include hV hVU in |
| 76 | theorem target_affine : IsAffineOpen (targetOpen R X₁ X₂ U₁ U₂ hU₁ hU₂ e V) := |
| 77 | (source_affine R X₁ U₁ hU₁ V hV hVU).image_of_isOpenImmersion |
| 78 | (right R X₁ X₂ U₁ U₂ hU₂ e) |
| 79 | |
| 80 | include hVU in |
| 81 | theorem source_image : (EquivGeometry.left R X₁ U₁ hU₁) ''ᵁ sourceOpen R X₁ U₁ hU₁ V = V := by |
| 82 | rw [sourceOpen, Scheme.Hom.image_preimage_eq_opensRange_inf, left_range, inf_eq_right.mpr hVU] |
| 83 | |
| 84 | theorem target_below : targetOpen R X₁ X₂ U₁ U₂ hU₁ hU₂ e V ≤ U₂ := by |
| 85 | exact (show targetOpen R X₁ X₂ U₁ U₂ hU₁ hU₂ e V ≤ |
| 86 | (right R X₁ X₂ U₁ U₂ hU₂ e).opensRange from Set.image_subset_range _ _).trans |
| 87 | (right_range R X₁ X₂ U₁ U₂ hU₂ e).le |
| 88 | |
| 89 | def sectionIso : (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X₁).obj (op V) ≅ |
| 90 | (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X₂).obj |
| 91 | (op (targetOpen R X₁ X₂ U₁ U₂ hU₁ hU₂ e V)) := |
| 92 | (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X₁).mapIso |
| 93 | (eqToIso (source_image R X₁ U₁ hU₁ V hVU)).op ≪≫ |
| 94 | PairedOpenSectionEquiv.iso R (common R X₁ U₁) X₁ X₂ |
| 95 | (EquivGeometry.left R X₁ U₁ hU₁) (right R X₁ X₂ U₁ U₂ hU₂ e) |
| 96 | (left_over R X₁ U₁ hU₁) (right_over R X₁ X₂ U₁ U₂ hU₂ e) |
| 97 | (sourceOpen R X₁ U₁ hU₁ V) |
| 98 | |
| 99 | def sectionEquiv : ring R X₁ V ≃ₐ[R] |
| 100 | ring R X₂ (targetOpen R X₁ X₂ U₁ U₂ hU₁ hU₂ e V) := |
| 101 | CommAlgCat.algEquivOfIso (sectionIso R X₁ X₂ U₁ U₂ hU₁ hU₂ e V hVU) |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffineSection.EquivGeometry |