List properties #
This file contains useful custom definitions and lemmas about Lists.
Equiv #
Equations
- List.«term_≡_» = Lean.ParserDescr.trailingNode `List.«term_≡_» 50 51 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ≡ ") (Lean.ParserDescr.cat `term 51))
Instances For
Sorted #
- nil {β : Type u_1} {α : Type u_2} [LT β] {f : α → β} : SortedBy f []
- cons_nil {β : Type u_1} {α : Type u_2} [LT β] {f : α → β} {x : α} : SortedBy f [x]
- cons_cons {β : Type u_1} {α : Type u_2} [LT β] {f : α → β} {x y : α} {ys : List α} : f x < f y → SortedBy f (y :: ys) → SortedBy f (x :: y :: ys)
Instances For
theorem
List.mem_of_sortedBy_unique
{α : Type u_1}
{β : Type u_2}
[LT β]
[Cedar.Data.StrictLT β]
[DecidableLT β]
[DecidableEq β]
{f : α → β}
{x y : α}
{xs : List α}
:
theorem
List.mem_of_sortedBy_implies_find?
{α : Type u_1}
{β : Type u_2}
[LT β]
[Cedar.Data.StrictLT β]
[DecidableLT β]
[DecidableEq β]
{f : α → β}
{x : α}
{xs : List α}
:
theorem
List.filter_sortedBy
{β : Type u_1}
{α : Type u_2}
[LT β]
[Cedar.Data.StrictLT β]
[DecidableLT β]
{f : α → β}
(p : α → Bool)
{xs : List α}
:
theorem
List.isSortedBy_correct
{α : Type u_1}
{β : Type u_2}
[LT β]
[DecidableLT β]
{l : List α}
{f : α → β}
: