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.IntersectionTheory.ProjectionFormula.Finite.PrimeLocalization |
| 2 | |
| 3 | /-! # Unit Fractions -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.UnitFractions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Prime avoidance combines finitely many local unit fractions into |
| 10 | one numerator and denominator avoiding every selected prime. No normality |
| 11 | or dimension assumption on the domain is required. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable (R : Type u) [CommRing R] [IsDomain R] |
| 18 | (K : Type v) [Field K] [Algebra R K] [IsFractionRing R K] |
| 19 | {ι : Type w} [Fintype ι] [Nonempty ι] (P : ι → PrimeSpectrum R) |
| 20 | |
| 21 | theorem exists_fraction (z : K) |
| 22 | (hlocal : ∀ i, ∃ a b : R, a ∉ (P i).asIdeal ∧ b ∉ (P i).asIdeal ∧ |
| 23 | z = algebraMap R K a / algebraMap R K b) : |
| 24 | ∃ a b : R, (∀ i, a ∉ (P i).asIdeal ∧ b ∉ (P i).asIdeal) ∧ |
| 25 | z = algebraMap R K a / algebraMap R K b := by |
| 26 | obtain ⟨a, b, hb, hab⟩ := IsFractionRing.div_surjective R z |
| 27 | have hb₀ : b ≠ 0 := mem_nonZeroDivisors_iff_ne_zero.mp hb |
| 28 | have hbK : algebraMap R K b ≠ 0 := |
| 29 | (map_ne_zero_iff _ (IsFractionRing.injective R K)).mpr hb₀ |
| 30 | let I : Ideal R := (Ideal.span {b}).colon {a} |
| 31 | have hD (i : ι) : ∃ d : R, d ∈ I ∧ d ∉ (P i).asIdeal := by |
| 32 | obtain ⟨c, d, _, hd, he⟩ := hlocal i |
| 33 | have hd₀ : d ≠ 0 := fun h => hd (h ▸ (P i).asIdeal.zero_mem) |
| 34 | have hdK : algebraMap R K d ≠ 0 := |
| 35 | (map_ne_zero_iff _ (IsFractionRing.injective R K)).mpr hd₀ |
| 36 | have hcross : a * d = c * b := by |
| 37 | apply IsFractionRing.injective R K |
| 38 | simpa only [map_mul] using (div_eq_div_iff hbK hdK).mp (hab.trans he) |
| 39 | refine ⟨d, ?_, hd⟩ |
| 40 | rw [Submodule.mem_colon_singleton, smul_eq_mul, Ideal.mem_span_singleton] |
| 41 | exact ⟨c, by rw [mul_comm d a, hcross, mul_comm c b]⟩ |
| 42 | have hnot : ¬ (I : Set R) ⊆ ⋃ i ∈ (Finset.univ : Finset ι), ((P i).asIdeal : Set R) := by |
| 43 | intro hs |
| 44 | obtain ⟨i, _, hi⟩ := (Ideal.subset_union_prime (Classical.choice ‹Nonempty ι›) |
| 45 | (Classical.choice ‹Nonempty ι›) (fun i _ _ _ => (P i).isPrime)).mp hs |
| 46 | obtain ⟨d, hdI, hd⟩ := hD i |
| 47 | exact hd (hi hdI) |
| 48 | obtain ⟨d, hdI, hdout⟩ := Set.not_subset.mp hnot |
| 49 | have hd (i : ι) : d ∉ (P i).asIdeal := fun h => |
| 50 | hdout (Set.mem_iUnion.mpr ⟨i, Set.mem_iUnion.mpr ⟨Finset.mem_univ i, h⟩⟩) |
| 51 | have hd₀ : d ≠ 0 := fun h => hd (Classical.choice ‹Nonempty ι›) |
| 52 | (h ▸ (P _).asIdeal.zero_mem) |
| 53 | have hdK : algebraMap R K d ≠ 0 := |
| 54 | (map_ne_zero_iff _ (IsFractionRing.injective R K)).mpr hd₀ |
| 55 | obtain ⟨c, hc⟩ := (Ideal.mem_span_singleton.mp |
| 56 | ((Submodule.mem_colon_singleton).mp hdI)) |
| 57 | have hfrac : z = algebraMap R K c / algebraMap R K d := by |
| 58 | rw [← hab] |
| 59 | apply (div_eq_div_iff hbK hdK).mpr |
| 60 | change algebraMap R K a * algebraMap R K d = algebraMap R K c * algebraMap R K b |
| 61 | rw [← map_mul, ← map_mul] |
| 62 | apply congrArg (algebraMap R K) |
| 63 | change d * a = b * c at hc |
| 64 | calc |
| 65 | a * d = d * a := mul_comm _ _ |
| 66 | _ = b * c := hc |
| 67 | _ = c * b := mul_comm _ _ |
| 68 | refine ⟨c, d, fun i => ⟨?_, hd i⟩, hfrac⟩ |
| 69 | obtain ⟨u, v, hu, hv, he⟩ := hlocal i |
| 70 | have hv₀ : v ≠ 0 := fun h => hv (h ▸ (P i).asIdeal.zero_mem) |
| 71 | have hvK : algebraMap R K v ≠ 0 := |
| 72 | (map_ne_zero_iff _ (IsFractionRing.injective R K)).mpr hv₀ |
| 73 | have hcross : c * v = u * d := by |
| 74 | apply IsFractionRing.injective R K |
| 75 | simpa only [map_mul] using (div_eq_div_iff hdK hvK).mp (hfrac.symm.trans he) |
| 76 | intro hcp |
| 77 | have hm : u * d ∈ (P i).asIdeal := hcross ▸ (P i).asIdeal.mul_mem_right v hcp |
| 78 | exact ((P i).isPrime.mem_or_mem hm).elim hu (hd i) |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.UnitFractions |