Documentation

Pretty.Supports.Basic

Basic lemmas about built-in types #

theorem List.fold_max_max_eq_max_fold_max {xs : List } {a : } {b : } :
List.foldl max (max a b) xs = max a (List.foldl max b xs)
theorem List.get_index_eq {α : Type u_1} {xs : List α} {i : } {j : } (hi : i < List.length xs) (h : i = j) :
hj, List.get xs { val := i, isLt := hi } = List.get xs { val := j, isLt := hj }
theorem List.get_zero_eq_head {α : Type u_1} {xs : List α} (hn : xs []) :
List.get xs { val := 0, isLt := (_ : 0 < List.length xs) } = List.head xs hn
theorem Nat.not_lt_of_lt {a : } {b : } (h : a < b) :
¬b < a
theorem Nat.mul_lt_mul₀ {a : } {b : } {c : } {d : } (h1 : a < c) (h2 : b < d) :
a * b < c * d
theorem Nat.sub_lt_sub_right {a : } {b : } {c : } (h0 : a < b) (h1 : c a) :
a - c < b - c
theorem Nat.sub_sub_eq {a : } {b : } {c : } (h : a b) :
c + a - b = c - (b - a)