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.Support.Map |
| 2 | |
| 3 | /-! # Fiber Degree -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.FiberDegree |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restricting to an open target preserves fiber points and every |
| 10 | native residue-degree weight. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | variable {X Y : Scheme} (f : X ⟶ Y) (U : Y.Opens) |
| 18 | |
| 19 | theorem degree (x : (f ⁻¹ᵁ U).toScheme) : (f ∣_ U).residueDegree x = f.residueDegree x.val := by |
| 20 | rw [← Support.Map.residueDegree_post_immersion (f ∣_ U) U.ι x, morphismRestrict_ι, |
| 21 | Support.Map.residueDegree_pre_immersion] |
| 22 | rfl |
| 23 | |
| 24 | theorem point (x : (f ⁻¹ᵁ U).toScheme) : ((f ∣_ U) x).val = f x.val := by |
| 25 | exact congrArg (fun g : (f ⁻¹ᵁ U).toScheme ⟶ Y => g x) (morphismRestrict_ι f U) |
| 26 | |
| 27 | def equiv (y : U.toScheme) : (f ∣_ U) ⁻¹' ({y} : Set U.toScheme) ≃ f ⁻¹' ({y.val} : Set Y) where |
| 28 | toFun x := ⟨x.val.val, (point f U x.val).symm.trans |
| 29 | (congrArg Subtype.val (show (f ∣_ U) x.val = y from x.property))⟩ |
| 30 | invFun x := ⟨⟨x.val, by change f x.val ∈ U; rw [show f x.val = y.val from x.property]; exact y.property⟩, |
| 31 | Subtype.ext ((point f U _).trans (show f x.val = y.val from x.property))⟩ |
| 32 | left_inv _ := rfl |
| 33 | right_inv _ := rfl |
| 34 | |
| 35 | theorem sum (y : U.toScheme) [Fintype ((f ∣_ U) ⁻¹' ({y} : Set U.toScheme))] |
| 36 | [Fintype (f ⁻¹' ({y.val} : Set Y))] : |
| 37 | ∑ x : (f ∣_ U) ⁻¹' ({y} : Set U.toScheme), (f ∣_ U).residueDegree x.val = |
| 38 | ∑ x : f ⁻¹' ({y.val} : Set Y), f.residueDegree x.val := by |
| 39 | rw [← (equiv f U y).sum_comp (fun x => f.residueDegree x.val)] |
| 40 | exact Finset.sum_congr rfl (fun x _ => degree f U x.val) |
| 41 | |
| 42 | theorem generic_degree [IsIntegral X] [Nonempty (f ⁻¹ᵁ U)] : |
| 43 | (f ∣_ U).residueDegree (genericPoint (f ⁻¹ᵁ U).toScheme) = f.residueDegree (genericPoint X) := by |
| 44 | rw [degree] |
| 45 | exact congrArg f.residueDegree (genericPoint_eq_of_isOpenImmersion (f ⁻¹ᵁ U).ι) |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.FiberDegree |