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.AdaptedCenterChart |
| 2 | |
| 3 | /-! # Adapted Center Extension -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.AdaptedCenterExtension.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Add one exact boundary equation to an already adapted actual center chart. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable (k : Type u) [CommRing k] |
| 16 | |
| 17 | /-- A transverse first boundary equation extends a chart retaining the |
| 18 | remaining equations. The new map is still an actual open immersion |
| 19 | through the original point and defines exactly the original center there. -/ |
| 20 | theorem extend_boundary_adapted_center_chart |
| 21 | (R : CommRingCat.{u}) [Algebra k R] (I : Ideal R) {n : ℕ} |
| 22 | (w : Fin (n + 1) → R) (p : PrimeSpectrum R) (hIp : I ≤ p.asIdeal) |
| 23 | (E : Derivation k R R) (hE0 : E (w 0) = 1) (hEtail : ∀ j : Fin n, E (w j.succ) = 0) |
| 24 | (hw0 : w 0 ∈ I) |
| 25 | (C : AdaptedCenterChart.Construction.BoundaryAdaptedCenterOpenChart k R I (fun j : Fin n => w j.succ) p) : |
| 26 | Nonempty (AdaptedCenterChart.Construction.BoundaryAdaptedCenterOpenChart k R I w p) := by |
| 27 | classical |
| 28 | let A := C.carrier |
| 29 | have het : Etale (Spec.map (CommRingCat.ofHom C.map.toRingHom)) := inferInstance |
| 30 | have hf : C.map.toRingHom.Etale := |
| 31 | (HasRingHomProperty.Spec_iff (P := @Etale)).mp het |
| 32 | let E' : Derivation k A A := Blowups.Etale.DerivationHom.Construction.extendEtaleRingDerivationHom k C.map.toRingHom hf C.map.commutes E |
| 33 | have hE' (r : R) : E' (C.map r) = C.map (E r) := |
| 34 | Blowups.Etale.DerivationHom.Construction.extendEtaleRingDerivationHom_apply k C.map.toRingHom hf C.map.commutes E r |
| 35 | have hcomap : C.point.asIdeal.comap C.map.toRingHom = p.asIdeal := congrArg PrimeSpectrum.asIdeal C.point_over |
| 36 | have hIpoint : I.map C.map.toRingHom ≤ C.point.asIdeal := by |
| 37 | rw [Ideal.map_le_iff_le_comap, hcomap] |
| 38 | exact hIp |
| 39 | have hg (j : C.indices) : C.generators j ∈ C.point.asIdeal := |
| 40 | hIpoint (C.centerSpan ▸ Ideal.subset_span ⟨j, rfl⟩) |
| 41 | have hz : C.map (w 0) ∈ Ideal.span (Set.range C.generators) := by |
| 42 | rw [C.centerSpan] |
| 43 | exact Ideal.mem_map_of_mem C.map.toRingHom hw0 |
| 44 | have hEz : E' (C.map (w 0)) ∉ C.point.asIdeal := by |
| 45 | rw [hE', hE0, map_one] |
| 46 | exact C.point.isPrime.one_notMem |
| 47 | let B : Finset C.indices := Finset.univ.image C.boundaryIndex |
| 48 | have hEB (j : C.indices) (hj : j ∈ B) : E' (C.generators j) = 0 := by |
| 49 | obtain ⟨t, _, rfl⟩ := Finset.mem_image.mp hj |
| 50 | rw [C.boundaryCoordinates] |
| 51 | rw [hE', hEtail, map_zero] |
| 52 | obtain ⟨s, hs, i, hiB, F, hcenter, hF⟩ := Pointed.BoundaryCenterReplacement.Construction.exists_pointed_boundary_center_replacement |
| 53 | C.generators C.derivations C.dual (C.map (w 0)) hz E' C.point.asIdeal hg hEz B hEB |
| 54 | let S := Localization.Away s |
| 55 | let f₂ : A →ₐ[k] S := IsScalarTower.toAlgHom k A S |
| 56 | let f : R →ₐ[k] S := f₂.comp C.map |
| 57 | have hopen : IsOpenImmersion (Spec.map (CommRingCat.ofHom f.toRingHom)) := by |
| 58 | let : IsOpenImmersion (Spec.map (CommRingCat.ofHom f₂.toRingHom)) := IsOpenImmersion.of_isLocalization s |
| 59 | change IsOpenImmersion (Spec.map (CommRingCat.ofHom C.map.toRingHom ≫ CommRingCat.ofHom f₂.toRingHom)) |
| 60 | rw [Spec.map_comp] |
| 61 | infer_instance |
| 62 | obtain ⟨Q, hQ⟩ := Blowups.Etale.RefinementHelpers.Construction.exists_localization_away_prime s C.point hs |
| 63 | have hpoint : PrimeSpectrum.comap f.toRingHom Q = p := by |
| 64 | apply PrimeSpectrum.ext |
| 65 | change Q.asIdeal.comap ((algebraMap A S).comp C.map.toRingHom) = p.asIdeal |
| 66 | have hQI : Q.asIdeal.comap (algebraMap A S) = C.point.asIdeal := congrArg PrimeSpectrum.asIdeal hQ |
| 67 | rw [← Ideal.comap_comap, hQI, hcomap] |
| 68 | have hi (j : Fin n) : i ≠ C.boundaryIndex j := by |
| 69 | intro he |
| 70 | apply hiB |
| 71 | exact Finset.mem_image.mpr ⟨j, Finset.mem_univ j, he.symm⟩ |
| 72 | let G := CenterGeneratorReplacement.Construction.centerReplacementFamily (fun j => algebraMap A S (C.generators j)) i |
| 73 | (algebraMap A S (C.map (w 0))) |
| 74 | have hspan : Ideal.span (Set.range G) = I.map f.toRingHom := by |
| 75 | rw [hcenter, C.centerSpan, Ideal.map_map] |
| 76 | rfl |
| 77 | refine ⟨{ carrier := .of S |
| 78 | algebra := inferInstance |
| 79 | map := f |
| 80 | isOpenImmersion := hopen |
| 81 | point := Q |
| 82 | point_over := hpoint |
| 83 | indices := Option {j : C.indices // i ≠ j} |
| 84 | finite := inferInstance |
| 85 | decidableEq := inferInstance |
| 86 | generators := G |
| 87 | derivations := F |
| 88 | dual := hF |
| 89 | centerSpan := hspan |
| 90 | boundaryIndex := AdaptedCenterChart.Construction.insertRetainedCenterIndex C.boundaryIndex i hi |
| 91 | boundaryCoordinates := ?_ }⟩ |
| 92 | intro j |
| 93 | refine Fin.cases ?_ (fun t => ?_) j |
| 94 | · rw [AdaptedCenterChart.Construction.insertRetainedCenterIndex_zero] |
| 95 | rfl |
| 96 | · rw [AdaptedCenterChart.Construction.insertRetainedCenterIndex_succ] |
| 97 | change algebraMap A S (C.generators (C.boundaryIndex t)) = f (w t.succ) |
| 98 | rw [C.boundaryCoordinates] |
| 99 | rfl |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.AdaptedCenterExtension.Construction |