All proofs
Project-declaredLean 4.33.0-rc1 · mathlib@169c26b52a38

Segment lower bound

Nat.segment_lower_bound

Plain-language statement

For a strictly monotonic function f : ℕ → ℕ with f 0 = 0, f (segment f k) ≤ k for all k : ℕ.

Exact Lean statement

theorem segment_lower_bound (hm : StrictMono f) (h0 : f 0 = 0) (k : ℕ) :
    f (segment f k) ≤ k

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem segment_lower_bound (hm : StrictMono f) (h0 : f 0 = 0) (k : ) :    f (segment f k)  k := by  classical  rw [nth_of_strictMono hm (segment f k), segment]  rcases Classical.em (k  range f) with h_k | h_k  · simp_all [count_succ_eq_succ_count]  · have h1 : count (·  range f) k > 0 := count_notMem_range_pos h0 k h_k    have h2 : count (·  range f) (k + 1) = count (·  range f) k :=      count_succ_eq_count h_k    rw [h2]    suffices _ : nth (·  range f) (count (·  range f) k - 1) < k by omega    apply nth_lt_of_lt_count    omega
Project
Lean Computer Science Library
License
Apache-2.0
Commit
f36649cff2c9
Source
Cslib/Foundations/Data/Nat/Segment.lean:137-149

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.33.0-rc1

Unique minimal

Cslib.Automata.DA.FinAcc.unique_minimal

Plain-language statement

The minimal DFA M accepting the language l is unique up to unique isomorphism.

computer sciencecomputabilityprogram semantics

Source project: Lean Computer Science Library

Person-level attribution pending.

View proof record
Project-declaredLean 4.33.0-rc1

Buchi Family cover

Cslib.Automata.NA.Buchi.buchiFamily_cover

Project documentation

na.buchiFamily is a cover if na has only finitely many states. This theorem uses the Ramsey theorem for infinite graphs and does not depend on any details of na.BuchiCongruence other than that it is of finite index.

computer sciencecomputabilityprogram semantics

Source project: Lean Computer Science Library

Person-level attribution pending.

View proof record