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.Resolution.Blowups.Open.ComparisonAt |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.TerminalSourcePrefixComparison |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Global.ResidualNeighborhood |
| 4 | |
| 5 | /-! # Compatibility Order Complement -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Open compatibility only needs construction on the order support; its complement is automatic. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | theorem Smooth.ControlPrefix.Construction.SmoothControlPrefix.openComparisonAt_of_not_mem_order |
| 16 | {n : ℕ} {X U V Y Z : Scheme} [IsIntegral U] [IsLocallyNoetherian U] |
| 17 | (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [Smooth f] (J : X.IdealSheafData) |
| 18 | (j : U ⟶ X) (l : V ⟶ X) [IsOpenImmersion j] [IsOpenImmersion l] |
| 19 | {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {h : Z ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {K : Y.IdealSheafData} {L : Z.IdealSheafData} |
| 20 | (P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix (n + 1) U (j ≫ f) (J.comap j) Y g K) |
| 21 | (Q : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix (n + 1) V (l ≫ f) (J.comap l) Z h L) |
| 22 | (hN : P.stepCount = Q.stepCount) (x : U) (y : V) (hxy : j x = l y) |
| 23 | (hx : j x ∉ (Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf f J n).support) : P.OpenComparisonAt Q j l x y := by |
| 24 | obtain ⟨z, hzx, hzy⟩ := Scheme.exists_preimage_of_isPullback (IsPullback.of_hasPullback j l) x y hxy |
| 25 | let : Nonempty ↥(pullback j l : Scheme) := ⟨z⟩ |
| 26 | let : IsIntegral (pullback j l) := isIntegral_of_isOpenImmersion (pullback.fst j l) |
| 27 | let : IsLocallyNoetherian (pullback j l) := LocallyOfFiniteType.isLocallyNoetherian (pullback.fst j l) |
| 28 | let q : pullback j l ⟶ X := pullback.fst j l ≫ j |
| 29 | let v := q ≫ f |
| 30 | let B := J.comap q |
| 31 | let O : Scheme.Opens (pullback j l) := (Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf v B n).support.compl |
| 32 | have hz : z ∈ O := by |
| 33 | change z ∉ (Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf (q ≫ f) (J.comap q) n).support |
| 34 | rw [← Blowups.Smooth.GlobalCoefficientEtalePullback.Construction.smoothDifferentialIdealSheaf_comap_etale, Scheme.IdealSheafData.support_comap] |
| 35 | change j (pullback.fst j l z) ∉ (Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf f J n).support |
| 36 | rwa [hzx] |
| 37 | let : Nonempty O.toScheme := ⟨⟨z, hz⟩⟩ |
| 38 | let : IsIntegral O.toScheme := isIntegral_of_isOpenImmersion O.ι |
| 39 | let : IsLocallyNoetherian O.toScheme := LocallyOfFiniteType.isLocallyNoetherian O.ι |
| 40 | let a := O.ι ≫ pullback.fst j l |
| 41 | let b := O.ι ≫ pullback.snd j l |
| 42 | have hcomm : a ≫ j = b ≫ l := by |
| 43 | dsimp only [a, b] |
| 44 | rw [Category.assoc, Category.assoc, pullback.condition] |
| 45 | have haf : a ≫ (j ≫ f) = O.ι ≫ v := by simp only [a, v, q, Category.assoc] |
| 46 | have hbf : b ≫ (l ≫ f) = O.ι ≫ v := by rw [← Category.assoc, ← hcomm, Category.assoc, haf] |
| 47 | have haJ : (J.comap j).comap a = B.comap O.ι := by |
| 48 | simp only [a, B, q, ← Scheme.IdealSheafData.comap_comp, Category.assoc] |
| 49 | have hbJ : (J.comap l).comap b = B.comap O.ι := by |
| 50 | rw [← Scheme.IdealSheafData.comap_comp, ← hcomm, Scheme.IdealSheafData.comap_comp, haJ] |
| 51 | have ht : Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf (O.ι ≫ v) (B.comap O.ι) n = ⊤ := by |
| 52 | rw [← Blowups.Smooth.DifferentialSheafRestriction.Construction.smoothDifferentialIdealSheaf_comap_open] |
| 53 | exact Global.ResidualNeighborhood.Construction.idealSheaf_comap_supportComplement_eq_top _ |
| 54 | obtain ⟨W, w, M, R, r, s, hr, hs⟩ := P.exists_common_program_of_terminal_source Q hN |
| 55 | (O.ι ≫ v) (B.comap O.ι) ht a b haf hbf haJ hbJ |
| 56 | exact ⟨O.toScheme, W, O.ι ≫ v, w, B.comap O.ι, M, R, a, b, r, s, ⟨z, hz⟩, |
| 57 | hzx, hzy, hcomm, hr, hs⟩ |
| 58 | |
| 59 | theorem Smooth.ControlPrefix.Construction.SmoothControlPrefix.openCompatible_of_order_comparisons |
| 60 | {n : ℕ} {X U V Y Z : Scheme} [IsIntegral U] [IsLocallyNoetherian U] |
| 61 | (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [Smooth f] (J : X.IdealSheafData) |
| 62 | (j : U ⟶ X) (l : V ⟶ X) [IsOpenImmersion j] [IsOpenImmersion l] |
| 63 | {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {h : Z ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {K : Y.IdealSheafData} {L : Z.IdealSheafData} |
| 64 | (P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix (n + 1) U (j ≫ f) (J.comap j) Y g K) |
| 65 | (Q : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix (n + 1) V (l ≫ f) (J.comap l) Z h L) |
| 66 | (hN : P.stepCount = Q.stepCount) |
| 67 | (H : ∀ (x : U) (y : V), j x = l y → j x ∈ (Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf f J n).support → |
| 68 | P.OpenComparisonAt Q j l x y) : P.OpenCompatible Q j l := by |
| 69 | intro x y hxy |
| 70 | by_cases hx : j x ∈ (Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf f J n).support |
| 71 | · exact H x y hxy hx |
| 72 | · exact Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.openComparisonAt_of_not_mem_order f J j l P Q hN x y hxy hx |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.Resolution.Blowups |