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.BoundaryModel.ModelRestriction |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.NamedActiveContainedCenter |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Mixed.CenterRestoreInactiveLabels |
| 4 | import OAI.AlgebraicGeometry.Resolution.Blowups.UnitBoundaryPrincipalNeighborhood |
| 5 | import OAI.AlgebraicGeometry.Resolution.Blowups.MixedBoundary.CenterComposition |
| 6 | import OAI.AlgebraicGeometry.Resolution.Blowups.Modeled.MixedBoundaryFamily |
| 7 | |
| 8 | /-! # Contained Hypersurface Center -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.Resolution.Blowups |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! A contained transverse hypersurface is compatible with the full modeled center and boundary. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | theorem Etale.BoundaryModel.Construction.EtaleBoundaryModel.contained_hypersurface_center_chart |
| 21 | {k : Type u} [Field k] {R : CommRingCat.{u}} [Algebra k R] |
| 22 | {ι : Type v} [Fintype ι] [DecidableEq ι] {w : ι → R} |
| 23 | (M : Blowups.Etale.BoundaryModel.Construction.EtaleBoundaryModel k R ι w) (C : Finset M.indices) (F : Finset ι) |
| 24 | (hF : ∀ j, j ∈ F ↔ ∃ s ∈ C, M.coordinate j = some s) |
| 25 | (p : PrimeSpectrum R) (hC : (SubsetCoordinateBlowup.Construction.subsetCoordinateIdeal C).map M.map ≤ p.asIdeal) |
| 26 | (z : R) (hz : z ∈ (SubsetCoordinateBlowup.Construction.subsetCoordinateIdeal C).map M.map) |
| 27 | (E : Derivation k R R) (hE : E ∈ Relative.LogarithmicIdeal.Construction.relativeLogarithmicDerivations k w) (hEz : E z ∉ p.asIdeal) : |
| 28 | Nonempty (MixedBoundary.CenterCharts.Construction.MixedBoundaryCoordinateCenterOpenChart k R ((SubsetCoordinateBlowup.Construction.subsetCoordinateIdeal C).map M.map) |
| 29 | (fun j : Option ι => match j with | none => z | some j => w j) |
| 30 | (insert none (F.image some)) p) := by |
| 31 | classical |
| 32 | let I := (SubsetCoordinateBlowup.Construction.subsetCoordinateIdeal C).map M.map |
| 33 | let B : Finset ι := Finset.univ.filter (fun j => w j ∈ p.asIdeal) |
| 34 | have hB (j : ι) : j ∈ B ↔ w j ∈ p.asIdeal := by simp only [B, Finset.mem_filter, Finset.mem_univ, true_and] |
| 35 | have hFB : F ⊆ B := by |
| 36 | intro j hj |
| 37 | exact (hB j).mpr (hC (M.coordinateCenter_boundary_mem C F hF j hj)) |
| 38 | obtain ⟨f, hf, hu⟩ := UnitBoundaryPrincipalNeighborhood.Construction.exists_unit_boundary_principal_neighborhood |
| 39 | (fun j : {j : ι // j ∉ B} => w j.val) p (fun j => by |
| 40 | intro h |
| 41 | exact j.property ((hB j.val).mpr h)) |
| 42 | let A := Localization.Away f |
| 43 | let γ : R →ₐ[k] A := IsScalarTower.toAlgHom k R A |
| 44 | let : Algebra.Etale R A := Algebra.Etale.of_isLocalizationAway f |
| 45 | have hγ : γ.toRingHom.Etale := RingHom.etale_algebraMap.mpr inferInstance |
| 46 | let : IsOpenImmersion (Spec.map (CommRingCat.ofHom γ.toRingHom)) := IsOpenImmersion.of_isLocalization f |
| 47 | obtain ⟨Q, hQ⟩ := Blowups.Etale.RefinementHelpers.Construction.exists_localization_away_prime f p hf |
| 48 | have hQI : Q.asIdeal.comap (algebraMap R A) = p.asIdeal := congrArg PrimeSpectrum.asIdeal hQ |
| 49 | let eB : B ↪ ι := ⟨Subtype.val, Subtype.val_injective⟩ |
| 50 | let N := (M.reindex eB).baseChange γ hγ |
| 51 | let G := ActiveBoundaryLabelRestriction.Construction.restrictedBoundaryDividedLabels B F |
| 52 | have hG (j : B) : j ∈ G ↔ ∃ s ∈ C, N.coordinate j = some s := by |
| 53 | change j ∈ ActiveBoundaryLabelRestriction.Construction.restrictedBoundaryDividedLabels B F ↔ ∃ s ∈ C, M.coordinate j.val = some s |
| 54 | simp only [ActiveBoundaryLabelRestriction.Construction.restrictedBoundaryDividedLabels, Finset.mem_filter, Finset.mem_univ, true_and] |
| 55 | exact hF j.val |
| 56 | have hmap : I.map γ.toRingHom = (SubsetCoordinateBlowup.Construction.subsetCoordinateIdeal C).map N.map := by |
| 57 | change ((SubsetCoordinateBlowup.Construction.subsetCoordinateIdeal C).map M.map).map γ.toRingHom = |
| 58 | (SubsetCoordinateBlowup.Construction.subsetCoordinateIdeal C).map (γ.toRingHom.comp M.map) |
| 59 | rw [Ideal.map_map] |
| 60 | have hcenter : I.map γ.toRingHom ≤ Q.asIdeal := by |
| 61 | rw [Ideal.map_le_iff_le_comap] |
| 62 | change I ≤ Q.asIdeal.comap (algebraMap R A) |
| 63 | rw [hQI] |
| 64 | exact hC |
| 65 | have hwA (j : B) : γ (w j.val) ∈ Q.asIdeal := by |
| 66 | change w j.val ∈ Q.asIdeal.comap (algebraMap R A) |
| 67 | rw [hQI] |
| 68 | exact (hB j.val).mp j.property |
| 69 | let D := Blowups.Etale.Derivation.Construction.extendEtaleRingDerivation (S := A) E |
| 70 | have hD : D ∈ Relative.LogarithmicIdeal.Construction.relativeLogarithmicDerivations k (fun j : B => γ (w j.val)) := by |
| 71 | have h := Relative.LogarithmicBoundary.Construction.extendEtaleRingDerivation_relative_logarithmic (S := A) k w ⟨E, hE⟩ |
| 72 | intro j |
| 73 | exact h j.val |
| 74 | have hDz : D (γ z) ∉ Q.asIdeal := by |
| 75 | change Blowups.Etale.Derivation.Construction.extendEtaleRingDerivation (S := A) E (algebraMap R A z) ∉ Q.asIdeal |
| 76 | rw [Blowups.Etale.Derivation.Construction.extendEtaleRingDerivation_algebraMap] |
| 77 | intro h |
| 78 | apply hEz |
| 79 | have h' : E z ∈ Q.asIdeal.comap (algebraMap R A) := h |
| 80 | rwa [hQI] at h' |
| 81 | have hzA : γ z ∈ I.map γ.toRingHom := Ideal.mem_map_of_mem γ.toRingHom hz |
| 82 | have hlocal := Blowups.Etale.BoundaryModel.Construction.EtaleBoundaryModel.named_active_contained_hypersurface_center_chart (R := .of A) |
| 83 | N (I.map γ.toRingHom) C hmap G hG Q hcenter hwA (γ z) hzA D hD hDz |
| 84 | obtain ⟨O⟩ := hlocal |
| 85 | dsimp only [eB, G] at O |
| 86 | simp only [Function.Embedding.coeFn_mk] at O |
| 87 | let O' := MixedBoundary.CenterCharts.Construction.MixedBoundaryCoordinateCenterOpenChart.restoreInactiveWithNormal |
| 88 | (k := k) (R := .of A) (I := I.map γ.toRingHom) (p := Q) |
| 89 | B F hFB (γ z) (fun j => γ (w j)) (fun j hj => hu ⟨j, hj⟩) (by |
| 90 | convert O using 1 |
| 91 | funext j |
| 92 | cases j <;> rfl) |
| 93 | let v : Option ι → R := fun j => match j with | none => z | some j => w j |
| 94 | have heq : (fun j : Option ι => match j with | none => γ z | some j => γ (w j)) = |
| 95 | (fun j => γ (v j)) := by |
| 96 | funext j |
| 97 | cases j <;> rfl |
| 98 | have O'' : MixedBoundary.CenterCharts.Construction.MixedBoundaryCoordinateCenterOpenChart k (.of A) (I.map γ.toRingHom) |
| 99 | (fun j => γ (v j)) (insert none (F.image some)) Q := by |
| 100 | convert O' using 1 |
| 101 | exact heq.symm |
| 102 | exact ⟨MixedBoundary.CenterCharts.Construction.MixedBoundaryCoordinateCenterOpenChart.comp (R := R) (S := .of A) |
| 103 | I v (insert none (F.image some)) γ O'' p hQ⟩ |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.Resolution.Blowups |