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.UnramifiedCongruenceNeighborhood |
| 2 | import Mathlib.RingTheory.Localization.Away.Basic |
| 3 | |
| 4 | /-! # Retraction Neighborhood -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Etale.RetractionNeighborhood.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An actual principal neighborhood of a section of an unramified affine morphism. -/ |
| 11 | |
| 12 | variable {H A : Type*} [CommRing H] [CommRing A] [Algebra H A] |
| 13 | [Algebra.EssFiniteType H A] [Algebra.FormallyUnramified H A] |
| 14 | |
| 15 | /-- A retraction of an unramified algebra has an idempotent principal kernel. -/ |
| 16 | theorem unramified_retraction_kernel_idempotent (r : A →ₐ[H] H) : |
| 17 | ∃ e : A, IsIdempotentElem e ∧ RingHom.ker r = Ideal.span {e} := by |
| 18 | let g : A →ₐ[H] A := (Algebra.ofId H A).comp r |
| 19 | obtain ⟨e, he, hspan⟩ := UnramifiedCongruenceNeighborhood.Construction.unramified_differenceIdeal_idempotent (AlgHom.id H A) g |
| 20 | refine ⟨e, he, ?_⟩ |
| 21 | rw [← hspan] |
| 22 | apply le_antisymm |
| 23 | · intro a ha |
| 24 | have hmem : g a - a ∈ Ideal.span (Set.range (fun x : A => g x - x)) := |
| 25 | Ideal.subset_span (Set.mem_range_self a) |
| 26 | have hra : r a = 0 := ha |
| 27 | have heq : g a - a = -a := by simp only [g, AlgHom.comp_apply, hra, map_zero, zero_sub] |
| 28 | rw [heq] at hmem |
| 29 | exact neg_mem_iff.mp hmem |
| 30 | · apply Ideal.span_le.mpr |
| 31 | rintro _ ⟨a, rfl⟩ |
| 32 | change r (g a - a) = 0 |
| 33 | simp [g] |
| 34 | |
| 35 | /-- A single principal neighborhood contains the whole section and removes |
| 36 | the complementary unramified branches. -/ |
| 37 | theorem unramified_retraction_annihilator (r : A →ₐ[H] H) : |
| 38 | ∃ s : A, r s = 1 ∧ ∀ a : A, s * (algebraMap H A (r a) - a) = 0 := by |
| 39 | obtain ⟨e, he, hker⟩ := unramified_retraction_kernel_idempotent r |
| 40 | have hre : r e = 0 := by |
| 41 | change e ∈ RingHom.ker r |
| 42 | rw [hker] |
| 43 | exact Ideal.mem_span_singleton_self e |
| 44 | refine ⟨1 - e, by rw [map_sub, map_one, hre, sub_zero], ?_⟩ |
| 45 | intro a |
| 46 | have ha : algebraMap H A (r a) - a ∈ Ideal.span {e} := by |
| 47 | rw [← hker] |
| 48 | change r (algebraMap H A (r a) - a) = 0 |
| 49 | simp |
| 50 | obtain ⟨b, hb⟩ := Ideal.mem_span_singleton.mp ha |
| 51 | rw [hb, ← mul_assoc, he.one_sub_mul_self, zero_mul] |
| 52 | |
| 53 | /-- After restricting to that principal neighborhood, the section is an |
| 54 | actual algebra isomorphism with the base. -/ |
| 55 | theorem exists_unramified_retraction_localization (r : A →ₐ[H] H) : |
| 56 | ∃ (s : A) (e : Localization.Away s ≃ₐ[H] H), |
| 57 | r s = 1 ∧ e.toRingHom.comp (algebraMap A (Localization.Away s)) = r.toRingHom := by |
| 58 | obtain ⟨s, hs, hann⟩ := unramified_retraction_annihilator r |
| 59 | let B := Localization.Away s |
| 60 | have hu : IsUnit (r s) := hs ▸ isUnit_one |
| 61 | let l : B →ₐ[H] H := IsLocalization.Away.liftAlgHom (f := r) s hu |
| 62 | have hl (a : A) : l (algebraMap A B a) = r a := IsLocalization.Away.lift_eq s hu a |
| 63 | let c : H →ₐ[H] B := Algebra.ofId H B |
| 64 | have hlc : l.comp c = AlgHom.id H H := by |
| 65 | ext |
| 66 | have hcl : c.comp l = AlgHom.id H B := by |
| 67 | apply AlgHom.coe_ringHom_injective |
| 68 | apply IsLocalization.ringHom_ext (Submonoid.powers s) |
| 69 | apply RingHom.ext |
| 70 | intro a |
| 71 | change algebraMap H B (l (algebraMap A B a)) = algebraMap A B a |
| 72 | rw [hl, IsScalarTower.algebraMap_apply H A B] |
| 73 | apply sub_eq_zero.mp |
| 74 | rw [← map_sub] |
| 75 | apply (IsLocalization.Away.algebraMap_isUnit s).mul_left_cancel |
| 76 | rw [mul_zero, ← map_mul, hann, map_zero] |
| 77 | refine ⟨s, AlgEquiv.ofAlgHom l c hlc hcl, hs, ?_⟩ |
| 78 | apply RingHom.ext |
| 79 | exact hl |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.Resolution.Blowups.Etale.RetractionNeighborhood.Construction |