AnabelianGeometry.KummerTheory.ratFunc_exists_function_rationalPlace_pair
Source context 5 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
attribute [local instance] Classical.propDecidable
open AlgebraicCurve
namespace AnabelianGeometry.KummerTheoryLean source · full declaration
theorem ratFunc_exists_function_rationalPlace_pair
{k : Type*} [Field k]
(V₀ Vinf : Place k (RatFunc k))
(hV₀ : V₀.IsRational) (hVinf : Vinf.IsRational) :
∃ f : RatFunc k, f ≠ 0 ∧ ∀ V : Place k (RatFunc k),
V.ord f = (if V = V₀ then 1 else 0) - (if V = Vinf then 1 else 0) := by
classical
let D : Divisor k (RatFunc k) := Finsupp.single V₀ 1 - Finsupp.single Vinf 1
have hD : Divisor.degree D = 0 := by
change Divisor.degree (Finsupp.single V₀ 1 - Finsupp.single Vinf 1) = 0
rw [map_sub, Divisor.degree_single, Divisor.degree_single,
(Place.isRational_iff_deg_eq_one V₀).mp hV₀,
(Place.isRational_iff_deg_eq_one Vinf).mp hVinf, sub_self]
obtain ⟨f, hf, hord⟩ := RationalFunctionField.isPrincipal_of_degree_eq_zero D hD
refine ⟨f, hf, fun V => ?_⟩
rw [← hord V]
simp only [D, Finsupp.sub_apply, Finsupp.single_apply, eq_comm]