Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/Order/Fin/     Datei vom 15.10.2026 mit Größe 560 B image not shown  

Quelle  Clamp.lean   Sprache: Lean

 

/-
Copyright (c) 2026 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/

module

public import Mathlib.Order.Fin.Basic

import Batteries.Data.Fin.Lemmas
import Mathlib.Order.MinMax

/-!
# Lemmas about `Fin.clamp`
-/


namespace Fin

public lemma clamp_monotone {m : ℕ} : Monotone (fun n ↦ clamp n m) := by
  intro a b h
  rw [le_iff_val_le_val]
  exact min_le_min_right m h

public lemma clamp_eq_last (n m : ℕ) (hmn : m ≤ n) :
    clamp n m = last _ := by
  ext
  simpa

end Fin

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland