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.AffineSection.EquivRestriction |
| 2 | |
| 3 | /-! # Equiv Reduction -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffineSection.EquivReduction.Geometry |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A specified equivalence compatible with the original reduction |
| 10 | maps transports every smaller affine open to the same reduced open. -/ |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | set_option backward.defeqAttrib.useBackward true |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | universe u |
| 16 | variable (R : Type u) [CommRing R] |
| 17 | (X₁ X₂ : Over (Spec (CommRingCat.of R))) |
| 18 | (U₁ : X₁.left.Opens) (U₂ : X₂.left.Opens) |
| 19 | (hU₁ : IsAffineOpen U₁) (hU₂ : IsAffineOpen U₂) |
| 20 | (e : EquivGeometry.ring R X₁ U₁ ≃ₐ[R] EquivGeometry.ring R X₂ U₂) |
| 21 | {Y : Scheme.{u}} (f₁ : Y ⟶ X₁.left) (f₂ : Y ⟶ X₂.left) |
| 22 | (h : f₁ ⁻¹ᵁ U₁ = f₂ ⁻¹ᵁ U₂) |
| 23 | (he : CommRingCat.ofHom e.toRingHom ≫ f₂.appLE U₂ (f₁ ⁻¹ᵁ U₁) h.le = f₁.app U₁) |
| 24 | |
| 25 | def commonLift : (f₁ ⁻¹ᵁ U₁).toScheme ⟶ (EquivGeometry.common R X₁ U₁).left := |
| 26 | (f₁ ⁻¹ᵁ U₁).toSpecΓ ≫ Spec.map (f₁.app U₁) |
| 27 | |
| 28 | theorem commonLift_left : commonLift R X₁ U₁ f₁ ≫ EquivGeometry.left R X₁ U₁ hU₁ = |
| 29 | (f₁ ⁻¹ᵁ U₁).ι ≫ f₁ := by |
| 30 | change ((f₁ ⁻¹ᵁ U₁).toSpecΓ ≫ Spec.map (f₁.app U₁)) ≫ hU₁.fromSpec = _ |
| 31 | rw [Scheme.Opens.toSpecΓ_naturality, Category.assoc, IsAffineOpen.toSpecΓ_fromSpec, |
| 32 | morphismRestrict_ι] |
| 33 | |
| 34 | include he in |
| 35 | theorem commonLift_right : commonLift R X₁ U₁ f₁ ≫ EquivGeometry.right R X₁ X₂ U₁ U₂ hU₂ e = |
| 36 | (f₁ ⁻¹ᵁ U₁).ι ≫ f₂ := by |
| 37 | have hinv : CommRingCat.ofHom e.symm.toRingHom ≫ f₁.app U₁ = |
| 38 | f₂.appLE U₂ (f₁ ⁻¹ᵁ U₁) h.le := by |
| 39 | rw [← he, ← Category.assoc] |
| 40 | have hi : CommRingCat.ofHom e.symm.toRingHom ≫ CommRingCat.ofHom e.toRingHom = 𝟙 _ := by |
| 41 | ext a |
| 42 | exact e.apply_symm_apply a |
| 43 | rw [hi, Category.id_comp] |
| 44 | change ((f₁ ⁻¹ᵁ U₁).toSpecΓ ≫ Spec.map (f₁.app U₁)) ≫ |
| 45 | (Spec.map (CommRingCat.ofHom e.symm.toRingHom) ≫ hU₂.fromSpec) = _ |
| 46 | calc |
| 47 | _ = (f₁ ⁻¹ᵁ U₁).toSpecΓ ≫ |
| 48 | Spec.map (CommRingCat.ofHom e.symm.toRingHom ≫ f₁.app U₁) ≫ hU₂.fromSpec := by |
| 49 | rw [Spec.map_comp] |
| 50 | simp only [Category.assoc] |
| 51 | _ = _ := by |
| 52 | rw [hinv, Scheme.Opens.toSpecΓ_SpecMap_appLE_assoc, |
| 53 | IsAffineOpen.toSpecΓ_fromSpec, Scheme.Hom.resLE_comp_ι] |
| 54 | |
| 55 | include he in |
| 56 | theorem target_preimage (V : X₁.left.Opens) (hVU : V ≤ U₁) : |
| 57 | f₁ ⁻¹ᵁ V = f₂ ⁻¹ᵁ EquivGeometry.targetOpen R X₁ X₂ U₁ U₂ hU₁ hU₂ e V := by |
| 58 | let a := commonLift R X₁ U₁ f₁ |
| 59 | let L := EquivGeometry.left R X₁ U₁ hU₁ |
| 60 | let G := EquivGeometry.right R X₁ X₂ U₁ U₂ hU₂ e |
| 61 | have hl := commonLift_left R X₁ U₁ hU₁ f₁ |
| 62 | have hr := commonLift_right R X₁ X₂ U₁ U₂ hU₂ e f₁ f₂ h he |
| 63 | apply le_antisymm |
| 64 | · intro y hy |
| 65 | have hyU : y ∈ f₁ ⁻¹ᵁ U₁ := hVU hy |
| 66 | let v : (f₁ ⁻¹ᵁ U₁).toScheme := ⟨y,hyU⟩ |
| 67 | have hlv : L (a v) = f₁ y := congrArg (fun k => k v) hl |
| 68 | have hrv : G (a v) = f₂ y := congrArg (fun k => k v) hr |
| 69 | refine ⟨a v, ?_, hrv⟩ |
| 70 | change L (a v) ∈ V |
| 71 | rw [hlv] |
| 72 | exact hy |
| 73 | · intro y hy |
| 74 | have hyU₂ : y ∈ f₂ ⁻¹ᵁ U₂ := EquivGeometry.target_below R X₁ X₂ U₁ U₂ hU₁ hU₂ e V hy |
| 75 | have hyU₁ : y ∈ f₁ ⁻¹ᵁ U₁ := h.ge hyU₂ |
| 76 | let v : (f₁ ⁻¹ᵁ U₁).toScheme := ⟨y,hyU₁⟩ |
| 77 | have hlv : L (a v) = f₁ y := congrArg (fun k => k v) hl |
| 78 | have hrv : G (a v) = f₂ y := congrArg (fun k => k v) hr |
| 79 | obtain ⟨x,hx,hxy⟩ := hy |
| 80 | have hxv : x = a v := G.isOpenEmbedding.injective (hxy.trans hrv.symm) |
| 81 | rw [hxv] at hx |
| 82 | change L (a v) ∈ V at hx |
| 83 | change f₁ y ∈ V |
| 84 | rw [← hlv] |
| 85 | exact hx |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffineSection.EquivReduction.Geometry |