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.Open.SectionAlgebraIso |
| 2 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 3 | |
| 4 | /-! # Paired Open Section Equiv -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PairedOpenSectionEquiv |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Restrict an original section-algebra isomorphism represented by |
| 11 | two open embeddings of a common scheme. All smaller maps are induced |
| 12 | by those same embeddings. -/ |
| 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 | (T X₁ X₂ : Over (Spec (CommRingCat.of R))) |
| 20 | (f₁ : T.left ⟶ X₁.left) (f₂ : T.left ⟶ X₂.left) |
| 21 | [IsOpenImmersion f₁] [IsOpenImmersion f₂] |
| 22 | (hf₁ : f₁ ≫ X₁.hom = T.hom) (hf₂ : f₂ ≫ X₂.hom = T.hom) |
| 23 | |
| 24 | def iso (U : T.left.Opens) : |
| 25 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X₁).obj (op (f₁ ''ᵁ U)) ≅ |
| 26 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X₂).obj (op (f₂ ''ᵁ U)) := |
| 27 | (Open.SectionAlgebraIso.component R T X₁ f₁ hf₁ U).symm ≪≫ |
| 28 | Open.SectionAlgebraIso.component R T X₂ f₂ hf₂ U |
| 29 | |
| 30 | def equiv (U : T.left.Opens) := CommAlgCat.algEquivOfIso (iso R T X₁ X₂ f₁ f₂ hf₁ hf₂ U) |
| 31 | |
| 32 | theorem naturality {U V : T.left.Opens} (i : V ⟶ U) : |
| 33 | (iso R T X₁ X₂ f₁ f₂ hf₁ hf₂ U).hom ≫ |
| 34 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X₂).map (f₂.opensFunctor.map i).op = |
| 35 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X₁).map (f₁.opensFunctor.map i).op ≫ |
| 36 | (iso R T X₁ X₂ f₁ f₂ hf₁ hf₂ V).hom := by |
| 37 | have h₁ := (Open.SectionAlgebraIso.iso R T X₁ f₁ hf₁).inv.naturality i.op |
| 38 | have h₂ := (Open.SectionAlgebraIso.iso R T X₂ f₂ hf₂).hom.naturality i.op |
| 39 | change (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X₁).map (f₁.opensFunctor.map i).op ≫ |
| 40 | (Open.SectionAlgebraIso.component R T X₁ f₁ hf₁ V).inv = |
| 41 | (Open.SectionAlgebraIso.component R T X₁ f₁ hf₁ U).inv ≫ |
| 42 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R T).map i.op at h₁ |
| 43 | change (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R T).map i.op ≫ |
| 44 | (Open.SectionAlgebraIso.component R T X₂ f₂ hf₂ V).hom = |
| 45 | (Open.SectionAlgebraIso.component R T X₂ f₂ hf₂ U).hom ≫ |
| 46 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X₂).map (f₂.opensFunctor.map i).op at h₂ |
| 47 | change (iso R T X₁ X₂ f₁ f₂ hf₁ hf₂ U).hom ≫ _ = _ |
| 48 | dsimp only [iso, Iso.trans_hom, Iso.symm_hom] |
| 49 | rw [Category.assoc, ← h₂, ← Category.assoc, ← h₁, Category.assoc] |
| 50 | |
| 51 | omit hf₁ hf₂ in |
| 52 | theorem affine (U : T.left.Opens) (hU : IsAffineOpen U) : |
| 53 | IsAffineOpen (f₁ ''ᵁ U) ∧ IsAffineOpen (f₂ ''ᵁ U) := |
| 54 | ⟨hU.image_of_isOpenImmersion f₁, hU.image_of_isOpenImmersion f₂⟩ |
| 55 | |
| 56 | omit hf₁ hf₂ in |
| 57 | theorem contains {S : Scheme.{u}} (s : S ⟶ T.left) (U : T.left.Opens) |
| 58 | (hs : ⊤ ≤ s ⁻¹ᵁ U) : |
| 59 | (⊤ ≤ (s ≫ f₁) ⁻¹ᵁ (f₁ ''ᵁ U)) ∧ (⊤ ≤ (s ≫ f₂) ⁻¹ᵁ (f₂ ''ᵁ U)) := by |
| 60 | constructor <;> intro x hx |
| 61 | · exact ⟨s x, hs hx, rfl⟩ |
| 62 | · exact ⟨s x, hs hx, rfl⟩ |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PairedOpenSectionEquiv |