Use this theorem
Create a project
lake +leanprover/lean4:v4.35.0 new myproject std.toml cd myprojectStandard template, not
math: themathtemplate adds its own Mathlib requirement pinned to the Lean release tag, not to the Mathlib commit this package is built and tested with, so you would get a second, different Mathlib. Mathlib comes in through this package. Skip this step in an existing project with the same Lean and Mathlib.Add the dependency to
lakefile.toml[[require]] name = "formalizations" git = "https://github.com/karlesmarin/formalizations" rev = "v0.15.0"Import the minimal module
import Formalizations.Reusable.AnalysisIn a file of the project, e.g.
Example.lean.Paste the example
open Formalizations.Reusable Real Set open MeasureTheory ProbabilityTheory in /-- Zieliński–Zych at `α = 1` (the Margolus–Levitin case): `0 ≤ x − π/2 + (π/2) cos x + sin x` for `x ≥ 0`. -/ example {x : ℝ} (hx : 0 ≤ x) : 0 ≤ x - π / 2 + π / 2 * Real.cos x + Real.sin x := by have h := zielinski_zych_inequality one_pos hx simpa using hSteps 3 and 4 together are a complete Lean file:
FormalizationsTest/ReusableAnalysisExample.leanat v0.15.0, compiled by the CI.Fetch and check
lake update lake lean Example.leanlake updatefetches this package and Mathlib, and Mathlib's update hook downloads the compiled Mathlib (lake exe cache get).lake lean Example.leanbuilds the imports of the file (steps 3 and 4) and checks it. If the file belongs to alean_libof your project,lake build <lib>does the same. Avoid a barelake buildin a project from the standard template: its default target is the executable, whose link compiles every imported Mathlib module to native code. Same versions required: Leanv4.35.0, Mathlibf0b4c81.
Alternative: import Formalizations.Reusable imports the whole layer (all areas).
The Zieliński–Zych inequality: for every α > 0 and x ≥ 0, 0 ≤ x^α − π^α/2 + (π^α/2) cos x + α π^(α−1) sin x; the analytic core of the fractional-moment speed limit π^α ≤ 2 M_α τ^α (α = 1 is Margolus–Levitin).
Lean statement
theorem zielinski_zych_inequality {α x : ℝ} (hα : 0 < α) (hx : 0 ≤ x) :
0 ≤ x ^ α - Real.pi ^ α / 2 + Real.pi ^ α / 2 * Real.cos x +
α * Real.pi ^ (α - 1) * Real.sin xLinks
Lean docstring
The Zieliński–Zych inequality. For every α > 0 and x ≥ 0, 0 ≤ x^α − π^α/2 + (π^α/2) cos x + α π^(α−1) sin x. It is the analytic core of the fractional-moment quantum speed limit π^α ≤ 2 M_α τ^α; α = 1 is the Margolus–Levitin case.
- Archive:
QSL.zz_inequality_all(Formalizations.Physics.QuantumMechanics.SpeedLimit.ZielinskiZych; the archive proves it for0 < α ≤ 1by a harmonic-mean bound and forα ≥ 1by Bernoulli plus a split oftan); the module cites no paper DOI of ours. - Classical reference: the inequality is stated (without proof) in M. Zieliński, M. Zych, Phys. Rev. A 74, 034301 (2006), as cited in the archive module.
- Example:
α = 1, the inequality0 ≤ x − π/2 + (π/2) cos x + sin xbehind the Margolus–Levitin bound.
Upstream
a specific inequality of quantum speed-limit theory, not a lemma of an existing Mathlib theory
Depends on, in this repository
None besides the archive module (repo_dependencies = []).