Lemmas about List.Subset
, List.Sublist
, List.IsPrefix
, List.IsSuffix
, and List.IsInfix
. #
isPrefixOf #
@[simp]
isSuffixOf #
Subset #
List subset #
instance
List.instTransSubsetMem
{α : Type u_1}
:
Trans (fun (l₁ l₂ : List α) => l₂ ⊆ l₁) Membership.mem Membership.mem
Equations
- List.instTransSubsetMem = { trans := ⋯ }
Sublist and isSublist #
instance
List.instTransSublistMem
{α : Type u_1}
:
Trans (fun (l₁ l₂ : List α) => l₂.Sublist l₁) Membership.mem Membership.mem
Equations
- List.instTransSublistMem = { trans := ⋯ }
Equations
- l₁.instDecidableSublistOfDecidableEq l₂ = decidable_of_iff (l₁.isSublist l₂ = true) ⋯
IsPrefix / IsSuffix / IsInfix #
@[reducible, inline, deprecated List.prefix_iff_getElem (since := "2025-05-27")]
Equations
Instances For
@[reducible, inline, deprecated List.prefix_filter_iff (since := "2025-05-27")]
Equations
Instances For
@[reducible, inline, deprecated List.suffix_filter_iff (since := "2025-05-27")]
Equations
Instances For
@[reducible, inline, deprecated List.infix_filter_iff (since := "2025-05-27")]
Equations
Instances For
@[reducible, inline, deprecated List.prefix_map_iff (since := "2025-05-27")]
abbrev
List.isPrefix_map_iff
{α : Type u_1}
{β : Type u_2}
{f : α → β}
{l₁ : List α}
{l₂ : List β}
:
Equations
Instances For
@[reducible, inline, deprecated List.suffix_map_iff (since := "2025-05-27")]
abbrev
List.isSuffix_map_iff
{α : Type u_1}
{β : Type u_2}
{f : α → β}
{l₁ : List α}
{l₂ : List β}
:
Equations
Instances For
@[reducible, inline, deprecated List.infix_map_iff (since := "2025-05-27")]
Equations
Instances For
@[reducible, inline, deprecated List.prefix_replicate_iff (since := "2025-05-27")]
Instances For
@[reducible, inline, deprecated List.suffix_replicate_iff (since := "2025-05-27")]
Instances For
@[reducible, inline, deprecated List.infix_replicate_iff (since := "2025-05-27")]
Equations
Instances For
Equations
- l₁.instDecidableIsPrefixOfDecidableEq l₂ = decidable_of_iff (l₁.isPrefixOf l₂ = true) ⋯
Equations
- l₁.instDecidableIsSuffixOfDecidableEq l₂ = decidable_of_iff (l₁.isSuffixOf l₂ = true) ⋯