Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

`BookProof.ChapterF4.misraGries_bound` (k : ℕ) (hk : 0 < k) (xs : List ι) (x : ι) : (mgRun k xs).1 x ≤ xs.count x ∧ xs.count x ≤ (mgRun k xs).1 x + xs.length / k

Proved
BookProof.ChapterF4.misraGries_bound

by leonardopedro · Oct 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

theoremstimepiece

Prove the following Lean 4 theorem from ChapterF4.

BookProof.ChapterF4.misraGries_bound (k : ℕ) (hk : 0 < k) (xs : List ι) (x : ι) : (mgRun k xs).1 x ≤ xs.count x ∧ xs.count x ≤ (mgRun k xs).1 x + xs.length / k

Formalization note: Lean 4 identifier BookProof.ChapterF4.misraGries_bound.

Preamble
-- Generated from ChapterF4.lean — theorem BookProof.ChapterF4.misraGries_bound
import Mathlib
import Definitions.Def_ChapterF4
open BookProof.ChapterF4


open scoped BigOperators Matrix

variable {d k : ℕ}
variable {A : Type*} [NormedRing A] [NormedAlgebra ℂ A] [StarRing A] [ContinuousStar A]
  [CompleteSpace A] [StarModule ℂ A]
variable {α κ Ω : Type*} [Fintype α] [DecidableEq α] [Fintype κ] [DecidableEq κ]
  {mΩ : MeasurableSpace Ω}
variable {ι : Type*} [Fintype ι] [DecidableEq ι]
Formal statement
theorem BookProof.ChapterF4.misraGries_bound (k : ℕ) (hk : 0 < k) (xs : List ι) (x : ι) :
    (mgRun k xs).1 x ≤ xs.count x ∧
      xs.count x ≤ (mgRun k xs).1 x + xs.length / k := by sorry

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me