Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Triangle inequality for ∥⋅∥\|\cdot\|∥⋅∥

Proved
CircleMethod.nrm_triangle

by tabbott · Sep 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorycircle-methodexponential-sumsnumber-theory

The distance to the nearest integer satisfies the triangle inequality:

∥x+y∥≤∥x∥+∥y∥.\|x+y\|\le\|x\|+\|y\|.∥x+y∥≤∥x∥+∥y∥.

Together with ∥θ∥=0  ⟺  θ∈Z\|\theta\|=0\iff\theta\in\mathbb{Z}∥θ∥=0⟺θ∈Z and evenness, this makes (x,y)↦∥x−y∥(x,y)\mapsto\|x-y\|(x,y)↦∥x−y∥ a genuine metric on R/Z\mathbb{R}/\mathbb{Z}R/Z. In the circle method it is the tool for propagating a rational approximation: from ∥qα−a∥\|q\alpha - a\|∥qα−a∥ small one deduces bounds on ∥kqα∥\|kq\alpha\|∥kqα∥ for small multiples kkk.

Preamble
import Definitions.Def_CircleMethod_char
open Finset
Formal statement
namespace CircleMethod

theorem nrm_triangle (x y : ℝ) : nrm (x + y) ≤ nrm x + nrm y := by sorry

end CircleMethod
Source
R. C. Vaughan, The Hardy-Littlewood Method, 2nd ed., Cambridge Tracts in Mathematics 125, Cambridge University Press, 1997, Chapter 2, Section 2.1 (Lemma 2.1 and the surrounding elementary estimates for linear exponential sums), together with Chapter 1 for the notation e(x) = exp(2*pi*i*x) and ||x|| for the distance to the nearest integer.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me