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.Affine.FramedOpenControlTree |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Affine.CurveFixedControlTree |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Smooth.DifferentialMap |
| 4 | import OAI.AlgebraicGeometry.Resolution.Blowups.Smooth.DifferentialOrderBound |
| 5 | |
| 6 | /-! # Curve Framed Open -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Affine.CurveFramedOpen.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite fixed-control curve resolution with actual local coordinate frames at every center. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | attribute [local instance] Relative.DifferentialBlowup.Construction.blowupRelativeBaseAlgebra |
| 19 | |
| 20 | variable (k : Type u) [Field k] [CharZero k] [IsAlgClosed k] |
| 21 | |
| 22 | /-- Every finite differential bound on a smooth affine curve produces a |
| 23 | finite tree of actual open refinements and coordinate-center blowups, with |
| 24 | the same prescribed positive control throughout and bounded blowup depth. -/ |
| 25 | theorem exists_bounded_curve_framed_open_control_tree (b : ℕ) (hb : 0 < b) (n : ℕ) : |
| 26 | ∀ (R : CommRingCat.{u}) [Algebra k R] [Algebra ℚ R] [IsNoetherianRing R] |
| 27 | [Algebra.Smooth k R] (J : Ideal R), ringKrullDim R ≤ 1 → |
| 28 | Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k J n = ⊤ → |
| 29 | ∃ T : FramedOpenControlTree.Construction.AffineFramedOpenControlTree k b R J, T.blowupDepth ≤ n := by |
| 30 | classical |
| 31 | induction n with |
| 32 | | zero => |
| 33 | intro R _ _ _ _ J _ hbound |
| 34 | have h := Coefficient.UnitCriterion.Construction.iteratedRelativeDifferentialIdeal_monotone_order k J (Nat.zero_le (b - 1)) |
| 35 | rw [hbound] at h |
| 36 | exact ⟨.terminal (top_le_iff.mp h), Nat.zero_le _⟩ |
| 37 | | succ n ih => |
| 38 | intro R _ _ _ _ J hd hbound |
| 39 | by_cases hbn : b ≤ n + 1 |
| 40 | · let I := Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k J n |
| 41 | have hI : Relative.DifferentialBlowup.Construction.firstRelativeDifferentialIdeal k I = ⊤ := |
| 42 | (Curve.IntrinsicStep.Construction.first_iteratedRelativeDifferentialIdeal k J n).trans hbound |
| 43 | obtain ⟨s, C, hcover⟩ := Curve.CenterFiniteFrameCover.Construction.exists_finite_curve_center_frame_cover k hd I hI |
| 44 | have hchildren (i : s) : ∃ T : FramedOpenControlTree.Construction.AffineFramedOpenControlTree k b (C i).carrier |
| 45 | (J.map (C i).map.toRingHom), T.blowupDepth ≤ n + 1 := by |
| 46 | let S := (C i).carrier |
| 47 | let f : R →ₐ[k] S := (C i).map |
| 48 | let L := J.map f.toRingHom |
| 49 | let : Algebra ℚ S := ((algebraMap k S).comp (algebraMap ℚ k)).toAlgebra |
| 50 | let : IsNoetherianRing S := Algebra.FiniteType.isNoetherianRing k S |
| 51 | have het : Etale (Spec.map (CommRingCat.ofHom f.toRingHom)) := inferInstance |
| 52 | have hf : f.toRingHom.Etale := (HasRingHomProperty.Spec_iff (P := @Etale)).mp het |
| 53 | have hdim : ringKrullDim S ≤ 1 := |
| 54 | (OpenDimension.Construction.ringKrullDim_le_of_spec_openImmersion f.toRingHom).trans hd |
| 55 | have hnextbound : Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k L (n + 1) = ⊤ := by |
| 56 | rw [← Blowups.Smooth.DifferentialMap.Construction.smooth_iteratedRelativeDifferentialIdeal_map k f hf J (n + 1), hbound, Ideal.map_top] |
| 57 | have hmap : I.map f.toRingHom = Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k L n := |
| 58 | Blowups.Smooth.DifferentialMap.Construction.smooth_iteratedRelativeDifferentialIdeal_map k f hf J n |
| 59 | rcases (C i).center with hunit | ⟨g, D, hgen, hD⟩ |
| 60 | · obtain ⟨T, hT⟩ := ih S L hdim (hmap.symm.trans hunit) |
| 61 | exact ⟨T, hT.trans (Nat.le_succ n)⟩ |
| 62 | · let g' : ULift.{u} Unit → S := fun _ => g |
| 63 | let D' : ULift.{u} Unit → Derivation k S S := fun _ => D |
| 64 | have hframe : ∀ a c, D' a (g' c) = if a = c then 1 else 0 := by |
| 65 | intro a c |
| 66 | rw [ite_eq_left (Subsingleton.elim a c)] |
| 67 | exact hD |
| 68 | have hspan : Ideal.span (Set.range g') = Ideal.span {g} := by |
| 69 | congr 1 |
| 70 | exact Set.range_const |
| 71 | have hcenter : Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k L n = Ideal.span (Set.range g') := |
| 72 | hmap.symm.trans (hgen.trans hspan.symm) |
| 73 | obtain ⟨hperm, _, hπ, hdrop⟩ := CurveFixedControlStep.Construction.affine_curve_fixed_control_step k hdim L n b hb hbn hnextbound |
| 74 | rw [hcenter] at hperm hπ hdrop |
| 75 | let K := Ideal.span (Set.range g') |
| 76 | let : IsIso (ReesGrading.Construction.affineBlowupToSpec K) := hπ |
| 77 | have hleaf (j : ULift.{u} Unit) : |
| 78 | ∃ T : FramedOpenControlTree.Construction.AffineFramedOpenControlTree k b |
| 79 | (.of (Blowup.Charts.Construction.blowupChart K ⟨g' j, Ideal.subset_span ⟨j, rfl⟩⟩)) |
| 80 | (ControlledTransform.Construction.blowupControlledTransform K L b ⟨g' j, Ideal.subset_span ⟨j, rfl⟩⟩), |
| 81 | T.blowupDepth ≤ n := by |
| 82 | let a : K := ⟨g' j, Ideal.subset_span ⟨j, rfl⟩⟩ |
| 83 | let : IsNoetherianRing (Blowup.Charts.Construction.blowupChart K a) := NoetherianCoordinateTransform.Construction.blowupChart_isNoetherian K a |
| 84 | let : Algebra.Smooth k (Blowup.Charts.Construction.blowupChart K a) := CurveChart.Construction.blowupChart_smooth_of_isIso k K a |
| 85 | exact ih (.of (Blowup.Charts.Construction.blowupChart K a)) (ControlledTransform.Construction.blowupControlledTransform K L b a) |
| 86 | ((OpenDimension.Construction.blowupChart_ringKrullDim_le_of_isIso K a).trans hdim) (hdrop a) |
| 87 | refine ⟨.blowup (ULift.{u} Unit) g' D' hframe hb hperm (fun j => (hleaf j).choose), ?_⟩ |
| 88 | change (Finset.univ.sup fun j => (hleaf j).choose.blowupDepth) + 1 ≤ n + 1 |
| 89 | exact Nat.add_le_add_right (Finset.sup_le (fun j _ => (hleaf j).choose_spec)) 1 |
| 90 | have hsurj (p : PrimeSpectrum R) : ∃ i : s, ∃ q : PrimeSpectrum (C i).carrier, |
| 91 | PrimeSpectrum.comap (C i).map.toRingHom q = p := by |
| 92 | have hp : p ∈ ⨆ i, (C i).openRange := by rw [hcover]; trivial |
| 93 | obtain ⟨i, hi⟩ := TopologicalSpace.Opens.mem_iSup.mp hp |
| 94 | exact ⟨i, hi⟩ |
| 95 | refine ⟨.refineOpen s (fun i => (C i).carrier) (fun i => (C i).map) |
| 96 | (fun i => (C i).isOpenImmersion) hsurj (fun i => (hchildren i).choose), ?_⟩ |
| 97 | change (Finset.univ.sup fun i => (hchildren i).choose.blowupDepth) ≤ n + 1 |
| 98 | exact Finset.sup_le (fun i _ => (hchildren i).choose_spec) |
| 99 | · have h := Coefficient.UnitCriterion.Construction.iteratedRelativeDifferentialIdeal_monotone_order k J |
| 100 | (show n + 1 ≤ b - 1 by omega) |
| 101 | rw [hbound] at h |
| 102 | exact ⟨.terminal (top_le_iff.mp h), Nat.zero_le _⟩ |
| 103 | |
| 104 | /-- In particular every nonzero ideal on a smooth integral affine curve |
| 105 | admits such a finite framed tree at every positive fixed control. -/ |
| 106 | theorem exists_curve_framed_open_control_tree (b : ℕ) (hb : 0 < b) |
| 107 | (R : CommRingCat.{u}) [Algebra k R] [IsDomain R] [Algebra.Smooth k R] |
| 108 | (J : Ideal R) (hd : ringKrullDim R ≤ 1) (hJ : J ≠ ⊥) : |
| 109 | Nonempty (FramedOpenControlTree.Construction.AffineFramedOpenControlTree k b R J) := by |
| 110 | let : Algebra ℚ R := ((algebraMap k R).comp (algebraMap ℚ k)).toAlgebra |
| 111 | let : IsNoetherianRing R := Algebra.FiniteType.isNoetherianRing k R |
| 112 | obtain ⟨n, hn⟩ := Blowups.Smooth.DifferentialOrderBound.Construction.exists_smooth_relative_differential_order_bound k J hJ |
| 113 | obtain ⟨T, _⟩ := exists_bounded_curve_framed_open_control_tree k b hb n R J hd hn |
| 114 | exact ⟨T⟩ |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.AlgebraicGeometry.Resolution.Blowups.Affine.CurveFramedOpen.Construction |