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.Boundary.MonomialCoordinates |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Etale.MonomialLeaves |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Etale.RelativeOrder |
| 4 | import OAI.AlgebraicGeometry.Resolution.Blowups.BoundaryModel.ModelRestriction |
| 5 | import OAI.AlgebraicGeometry.Resolution.Blowups.BoundaryModel.Operations |
| 6 | import OAI.AlgebraicGeometry.Resolution.Blowups.BoundaryModel.Smooth |
| 7 | import OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.Schedule |
| 8 | import OAI.AlgebraicGeometry.Resolution.Blowups.Smooth.ClosedPointChartTransport |
| 9 | import OAI.AlgebraicGeometry.Resolution.Blowups.UnitBoundaryPrincipalNeighborhood |
| 10 | import OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.IntersectionCenters |
| 11 | |
| 12 | /-! # Monomial Terminal -/ |
| 13 | |
| 14 | namespace OAI.AlgebraicGeometry.Resolution.Blowups |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | /-! Low weights on the recorded boundary faces imply the actual monomial order locus is empty. -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 21 | |
| 22 | universe u v t |
| 23 | |
| 24 | theorem Boundary.MonomialTerminal.Construction.partialBoundaryMonomialExponents_sum_le {ι : Type v} {σ : Type t} |
| 25 | [Fintype ι] [Fintype σ] (r : ι → Option σ) (a : ι → ℕ) : |
| 26 | (∑ s, Boundary.MonomialCoordinates.Construction.partialBoundaryMonomialExponents r a s) ≤ ∑ j, a j := by |
| 27 | classical |
| 28 | unfold Boundary.MonomialCoordinates.Construction.partialBoundaryMonomialExponents |
| 29 | rw [Finset.sum_comm] |
| 30 | apply Finset.sum_le_sum |
| 31 | intro j _ |
| 32 | cases r j <;> simp |
| 33 | |
| 34 | theorem Etale.BoundaryModel.Construction.EtaleBoundaryModel.monomial_differential_bound |
| 35 | {k R : Type u} [Field k] [CharZero k] [IsAlgClosed k] [CommRing R] [Algebra k R] |
| 36 | {ι : Type v} [Fintype ι] {w : ι → R} (M : Blowups.Etale.BoundaryModel.Construction.EtaleBoundaryModel k R ι w) (a : ι → ℕ) : |
| 37 | Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k (Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a}) (∑ j, a j) = ⊤ := by |
| 38 | let : Algebra (MvPolynomial M.indices k) R := M.map.toAlgebra |
| 39 | let : Algebra.Etale (MvPolynomial M.indices k) R := RingHom.etale_algebraMap.mp M.etale |
| 40 | let : IsScalarTower k (MvPolynomial M.indices k) R := |
| 41 | IsScalarTower.of_algebraMap_eq (fun c => (M.ground c).symm) |
| 42 | rw [M.boundary_monomial_ideal a] |
| 43 | have hb := (Blowups.Etale.RelativeOrder.Construction.etale_relative_differential_top_iff (σ := M.indices) (K := k) |
| 44 | ((Ideal.span {MonomialBlowupChart.Construction.coordinateMonomial (R := k) (Boundary.MonomialCoordinates.Construction.partialBoundaryMonomialExponents M.coordinate a)}).map M.map) |
| 45 | (∑ s, Boundary.MonomialCoordinates.Construction.partialBoundaryMonomialExponents M.coordinate a s)).mpr |
| 46 | (Blowups.Etale.MonomialLeaves.Construction.etaleCoordinateMonomial_differential_bound (S := R) (Boundary.MonomialCoordinates.Construction.partialBoundaryMonomialExponents M.coordinate a)) |
| 47 | have hle := Coefficient.UnitCriterion.Construction.iteratedRelativeDifferentialIdeal_monotone_order k |
| 48 | ((Ideal.span {MonomialBlowupChart.Construction.coordinateMonomial (R := k) (Boundary.MonomialCoordinates.Construction.partialBoundaryMonomialExponents M.coordinate a)}).map M.map) |
| 49 | (Boundary.MonomialTerminal.Construction.partialBoundaryMonomialExponents_sum_le M.coordinate a) |
| 50 | rw [hb] at hle |
| 51 | exact top_le_iff.mp hle |
| 52 | |
| 53 | theorem Boundary.MonomialTerminal.Construction.boundaryMonomial_ideal_remove_unit_labels |
| 54 | {R : Type u} [CommRing R] {ι : Type v} [Fintype ι] |
| 55 | (w : ι → R) (a : ι → ℕ) (S : Finset ι) (hu : ∀ j, j ∉ S → IsUnit (w j)) : |
| 56 | Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a} = |
| 57 | Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement (fun j : S => w j.val) (fun j => a j.val)} := by |
| 58 | classical |
| 59 | have hprod : LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a = |
| 60 | (∏ j ∈ S, w j ^ a j) * ∏ j ∈ Finset.univ \ S, w j ^ a j := |
| 61 | (Finset.prod_mul_prod_compl S (fun j => w j ^ a j)).symm |
| 62 | have hunit : IsUnit (∏ j ∈ Finset.univ \ S, w j ^ a j) := by |
| 63 | apply IsUnit.prod_iff.mpr |
| 64 | intro j hj |
| 65 | exact (hu j (Finset.mem_sdiff.mp hj).2).pow (a j) |
| 66 | rw [hprod, Ideal.span_singleton_mul_right_unit hunit] |
| 67 | apply congrArg (fun x : R => Ideal.span {x}) |
| 68 | exact (Finset.prod_coe_sort S (fun j => w j ^ a j)).symm |
| 69 | |
| 70 | theorem Etale.BoundaryModel.Construction.EtaleBoundaryModel.monomial_bound_of_unit_complement |
| 71 | {k R : Type u} [Field k] [CharZero k] [IsAlgClosed k] [CommRing R] [Algebra k R] |
| 72 | {ι : Type v} [Fintype ι] {w : ι → R} (M : Blowups.Etale.BoundaryModel.Construction.EtaleBoundaryModel k R ι w) |
| 73 | (a : ι → ℕ) (S : Finset ι) (hu : ∀ j, j ∉ S → IsUnit (w j)) : |
| 74 | Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k (Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a}) |
| 75 | (Boundary.MonomialSchedule.Construction.boundaryFaceWeight a S) = ⊤ := by |
| 76 | rw [Boundary.MonomialTerminal.Construction.boundaryMonomial_ideal_remove_unit_labels w a S hu] |
| 77 | let e : S ↪ ι := ⟨Subtype.val, Subtype.val_injective⟩ |
| 78 | have h := (M.reindex e).monomial_differential_bound (fun j => a j.val) |
| 79 | change Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k |
| 80 | (Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement (fun j : S => w j.val) (fun j => a j.val)}) |
| 81 | (∑ j : S, a j.val) = ⊤ at h |
| 82 | simpa only [Finset.sum_coe_sort, Boundary.MonomialSchedule.Construction.boundaryFaceWeight] using h |
| 83 | |
| 84 | theorem Etale.BoundaryModel.Construction.EtaleBoundaryModel.monomial_point_order_bound |
| 85 | {k R : Type u} [Field k] [CharZero k] [IsAlgClosed k] [CommRing R] [Algebra k R] |
| 86 | {ι : Type v} [Fintype ι] {w : ι → R} (M : Blowups.Etale.BoundaryModel.Construction.EtaleBoundaryModel k R ι w) |
| 87 | (a : ι → ℕ) (p : PrimeSpectrum R) (S : Finset ι) |
| 88 | (hS : ∀ j, w j ∈ p.asIdeal → j ∈ S) (b : ℕ) (hb : Boundary.MonomialSchedule.Construction.boundaryFaceWeight a S < b) : |
| 89 | ¬ (Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a}).map (algebraMap R (Localization.AtPrime p.asIdeal)) ≤ |
| 90 | IsLocalRing.maximalIdeal (Localization.AtPrime p.asIdeal) ^ b := by |
| 91 | classical |
| 92 | obtain ⟨t, ht, hunit⟩ := UnitBoundaryPrincipalNeighborhood.Construction.exists_unit_boundary_principal_neighborhood |
| 93 | (fun j : {j : ι // j ∉ S} => w j.val) p (fun j hj => j.property (hS j.val hj)) |
| 94 | obtain ⟨Q, hQ⟩ := Blowups.Etale.RefinementHelpers.Construction.exists_localization_away_prime t p ht |
| 95 | let A := Localization.Away t |
| 96 | let γ : R →ₐ[k] A := IsScalarTower.toAlgHom k R A |
| 97 | have hγ : γ.toRingHom.Etale := RingHom.etale_algebraMap.mpr inferInstance |
| 98 | let N := M.baseChange γ hγ |
| 99 | have hu : ∀ j, j ∉ S → IsUnit (γ (w j)) := fun j hj => hunit ⟨j, hj⟩ |
| 100 | have hmap : (Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a}).map γ.toRingHom = |
| 101 | Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement (fun j => γ (w j)) a} := by |
| 102 | rw [Ideal.map_span, Set.image_singleton] |
| 103 | congr 1 |
| 104 | simp only [LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement, map_prod, map_pow] |
| 105 | rfl |
| 106 | have hrel : Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k |
| 107 | ((Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a}).map γ.toRingHom) (Boundary.MonomialSchedule.Construction.boundaryFaceWeight a S) = ⊤ := by |
| 108 | rw [hmap] |
| 109 | exact N.monomial_bound_of_unit_complement a S hu |
| 110 | have hord : DifferentialIdealTransform.Construction.iteratedDifferentialIdeal |
| 111 | ((Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a}).map γ.toRingHom) (Boundary.MonomialSchedule.Construction.boundaryFaceWeight a S) = ⊤ := by |
| 112 | apply top_le_iff.mp |
| 113 | rw [← hrel] |
| 114 | exact Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal_le_ordinary k _ _ |
| 115 | have hpoint : p.asIdeal = Q.asIdeal.comap γ.toRingHom := |
| 116 | (congrArg PrimeSpectrum.asIdeal hQ).symm |
| 117 | intro h |
| 118 | have h' := (Blowups.Etale.PrimeOrderNaturality.Construction.etale_map_prime_order_iff γ.toRingHom hγ _ p.asIdeal Q.asIdeal hpoint b).mpr h |
| 119 | exact DifferentialLocalBound.Construction.local_order_lt_of_differential_top _ (Boundary.MonomialSchedule.Construction.boundaryFaceWeight a S) hord Q.asIdeal |
| 120 | (h'.trans (Ideal.pow_le_pow_right (by omega))) |
| 121 | |
| 122 | theorem Boundary.Schedule.Construction.BoundaryFacesCover.monomial_order_bound |
| 123 | {k : Type u} [Field k] [CharZero k] [IsAlgClosed k] |
| 124 | {R : CommRingCat.{u}} [Algebra k R] {ι : Type v} [Fintype ι] |
| 125 | {w : ι → R} {L : List (Finset ι)} (h : Boundary.Schedule.Construction.BoundaryFacesCover w L) |
| 126 | (hboundary : LocalBoundaryProperty.Construction.HasEtaleBoundaryCharts k R w) (a : ι → ℕ) (b : ℕ) |
| 127 | (hbound : ∀ S ∈ L, Boundary.MonomialSchedule.Construction.boundaryFaceWeight a S < b) (p : PrimeSpectrum R) : |
| 128 | ¬ (Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a}).map (algebraMap R (Localization.AtPrime p.asIdeal)) ≤ |
| 129 | IsLocalRing.maximalIdeal (Localization.AtPrime p.asIdeal) ^ b := by |
| 130 | obtain ⟨S, hS, hw⟩ := h p |
| 131 | obtain ⟨B⟩ := hboundary p |
| 132 | have hB : B.map.toRingHom.Etale := (HasRingHomProperty.Spec_iff (P := @Etale)).mp |
| 133 | (inferInstance : Etale (Spec.map (CommRingCat.ofHom B.map.toRingHom))) |
| 134 | have hpoint : p.asIdeal = B.point.asIdeal.comap B.map.toRingHom := |
| 135 | (congrArg PrimeSpectrum.asIdeal B.point_over).symm |
| 136 | have hactive : ∀ j, B.map (w j) ∈ B.point.asIdeal → j ∈ S := by |
| 137 | intro j hj |
| 138 | apply hw j |
| 139 | rw [hpoint] |
| 140 | exact hj |
| 141 | have hmap : (Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a}).map B.map.toRingHom = |
| 142 | Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement (fun j => B.map (w j)) a} := by |
| 143 | rw [Ideal.map_span, Set.image_singleton] |
| 144 | congr 1 |
| 145 | simp only [LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement, map_prod, map_pow] |
| 146 | rfl |
| 147 | intro h |
| 148 | have h' := (Blowups.Etale.PrimeOrderNaturality.Construction.etale_map_prime_order_iff B.map.toRingHom hB _ p.asIdeal B.point.asIdeal hpoint b).mpr h |
| 149 | rw [hmap] at h' |
| 150 | exact B.model.monomial_point_order_bound a B.point S hactive b (hbound S hS) h' |
| 151 | |
| 152 | theorem Boundary.Schedule.Construction.BoundaryFacesCover.monomial_terminal |
| 153 | {k : Type u} [Field k] [CharZero k] [IsAlgClosed k] |
| 154 | {R : CommRingCat.{u}} [Algebra k R] [Algebra.Smooth k R] |
| 155 | {ι : Type v} [Fintype ι] {w : ι → R} {L : List (Finset ι)} (h : Boundary.Schedule.Construction.BoundaryFacesCover w L) |
| 156 | (hboundary : LocalBoundaryProperty.Construction.HasEtaleBoundaryCharts k R w) (a : ι → ℕ) (b : ℕ) (hb : 0 < b) |
| 157 | (hbound : ∀ S ∈ L, Boundary.MonomialSchedule.Construction.boundaryFaceWeight a S < b) : |
| 158 | Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k (Ideal.span {LabelledBoundaryMonomialTransform.Construction.boundaryMonomialElement w a}) (b - 1) = ⊤ := by |
| 159 | apply (Blowups.Smooth.ClosedPointChartTransport.Construction.smooth_relative_differential_bound_iff_closedPoint_bound k _ (b - 1)).mpr |
| 160 | intro q _ |
| 161 | simpa only [Nat.sub_add_cancel hb] using |
| 162 | h.monomial_order_bound hboundary a b hbound ⟨q, inferInstance⟩ |
| 163 | |
| 164 | end |
| 165 | |
| 166 | end OAI.AlgebraicGeometry.Resolution.Blowups |