English
Given f: M → K with IsIntegral for all x, the corresponding function M → 𝓞_K is defined by x ↦ (f x, proof).
Русский
Дано \(f:M\\to K\) такой что для всех x выполняется IsIntegral ℤ (f x); соответствующая функция \(M\\to \\mathcal{O}_K\) определяется как x ↦ (f x, доказательство).
LaTeX
$$$\\text{restrict}(f,h): M \\to \\mathcal{O}_K$ with $h(x): IsIntegral\\,ℤ(f(x))$$$
Lean4
/-- Given `f : M → K` such that `∀ x, IsIntegral ℤ (f x)`, the corresponding function
`M → 𝓞 K`. -/
def restrict (f : M → K) (h : ∀ x, IsIntegral ℤ (f x)) (x : M) : 𝓞 K :=
⟨f x, h x⟩