The diagonal ring homomorphism into the all-place completed adeles.
Source context 4 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
namespace FunctionField.AdeleRing
variable (k K : Type*) [Field k] [Field K] [Algebra k K]
[AlgebraicCurve.HasPrincipalDivisors k K]def principalAdele : K →+* AdeleRing k K where
toFun x := ⟨fun v => algebraMap K v.adicCompletion x, by
by_cases hx : x = 0
· subst x
exact Filter.Eventually.of_forall fun v => by
change algebraMap K v.adicCompletion 0 ∈ v.adicCompletionIntegers
rw [map_zero]
exact v.adicCompletionIntegers.zero_mem
· exact (IdeleGroup.principalIdele k K (Units.mk0 x hx)).2.mono fun v hv => hv.1⟩
map_zero' := by
apply RestrictedProduct.ext
intro v
exact map_zero (algebraMap K v.adicCompletion)
map_one' := by
apply RestrictedProduct.ext
intro v
exact map_one (algebraMap K v.adicCompletion)
map_add' x y := by
apply RestrictedProduct.ext
intro v
exact map_add (algebraMap K v.adicCompletion) x y
map_mul' x y := by
apply RestrictedProduct.ext
intro v
exact map_mul (algebraMap K v.adicCompletion) x y