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.Etale.RefinementHelpers |
| 2 | |
| 3 | /-! # Principal Open Factorization -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.PrincipalOpenFactorization.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Refine an actual affine open around a specified point by an original-ring principal open. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | theorem exists_pointed_principal_open_factorization |
| 16 | {k : Type u} [CommRing k] (R S : CommRingCat.{u}) [Algebra k R] [Algebra k S] |
| 17 | (f : R →ₐ[k] S) [IsOpenImmersion (Spec.map (CommRingCat.ofHom f.toRingHom))] |
| 18 | (p : PrimeSpectrum R) (P : PrimeSpectrum S) (hP : PrimeSpectrum.comap f.toRingHom P = p) : |
| 19 | ∃ r ∉ p.asIdeal, ∃ g : S →ₐ[k] Localization.Away r, |
| 20 | IsOpenImmersion (Spec.map (CommRingCat.ofHom g.toRingHom)) ∧ |
| 21 | g.comp f = IsScalarTower.toAlgHom k R (Localization.Away r) := by |
| 22 | let j := Spec.map (CommRingCat.ofHom f.toRingHom) |
| 23 | have hp : p ∈ j.opensRange := ⟨P, hP⟩ |
| 24 | obtain ⟨_, ⟨r, rfl⟩, hr, hsub⟩ := |
| 25 | PrimeSpectrum.isTopologicalBasis_basic_opens.isOpen_iff.mp j.opensRange.isOpen p hp |
| 26 | let A := Localization.Away r |
| 27 | let l : Spec (.of A) ⟶ Spec R := Spec.map (CommRingCat.ofHom (algebraMap R A)) |
| 28 | have hsubset : Set.range l ⊆ Set.range j := by |
| 29 | have hl : l.opensRange = PrimeSpectrum.basicOpen r := |
| 30 | Scheme.Hom.opensRange_localizationAway (R := R) r |
| 31 | have hl' : Set.range l = (PrimeSpectrum.basicOpen r : Set (PrimeSpectrum R)) := |
| 32 | congrArg (fun U : TopologicalSpace.Opens (Spec R) => (U : Set (Spec R))) hl |
| 33 | rw [hl'] |
| 34 | exact hsub |
| 35 | let a := IsOpenImmersion.lift j l hsubset |
| 36 | have ha : a ≫ j = l := IsOpenImmersion.lift_fac j l hsubset |
| 37 | let : IsOpenImmersion l := IsOpenImmersion.of_isLocalization r |
| 38 | let : IsOpenImmersion (a ≫ j) := by rw [ha]; infer_instance |
| 39 | let : IsOpenImmersion a := IsOpenImmersion.of_comp a j |
| 40 | let φ : S →+* A := (Spec.preimage a).hom |
| 41 | have hφ : Spec.map (CommRingCat.ofHom φ) = a := Spec.map_preimage a |
| 42 | have hφf : φ.comp f.toRingHom = algebraMap R A := by |
| 43 | have he : CommRingCat.ofHom (φ.comp f.toRingHom) = CommRingCat.ofHom (algebraMap R A) := by |
| 44 | apply Spec.map_injective |
| 45 | change Spec.map (CommRingCat.ofHom f.toRingHom ≫ CommRingCat.ofHom φ) = l |
| 46 | rw [Spec.map_comp, hφ] |
| 47 | exact ha |
| 48 | exact congrArg CommRingCat.Hom.hom he |
| 49 | let g : S →ₐ[k] A := |
| 50 | { __ := φ |
| 51 | commutes' := by |
| 52 | intro c |
| 53 | calc |
| 54 | φ (algebraMap k S c) = φ (f (algebraMap k R c)) := congrArg φ (f.commutes c).symm |
| 55 | _ = algebraMap R A (algebraMap k R c) := RingHom.congr_fun hφf _ |
| 56 | _ = algebraMap k A c := (IsScalarTower.algebraMap_apply k R A c).symm } |
| 57 | refine ⟨r, hr, g, ?_, ?_⟩ |
| 58 | · change IsOpenImmersion (Spec.map (CommRingCat.ofHom φ)) |
| 59 | rw [hφ] |
| 60 | infer_instance |
| 61 | · ext x |
| 62 | exact RingHom.congr_fun hφf x |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.Resolution.Blowups.PrincipalOpenFactorization.Construction |