Prefixes, suffixes, infixes #
This file proves properties about
List.isPrefix:l₁is a prefix ofl₂ifl₂starts withl₁.List.isSuffix:l₁is a suffix ofl₂ifl₂ends withl₁.List.isInfix:l₁is an infix ofl₂ifl₁is a prefix of some suffix ofl₂.List.inits: The list of prefixes of a list.List.tails: The list of prefixes of a list.inserton lists
All those (except insert) are defined in Mathlib.Data.List.Defs.
Notation #
l₁ <+: l₂:l₁is a prefix ofl₂.l₁ <:+ l₂:l₁is a suffix ofl₂.l₁ <:+: l₂:l₁is an infix ofl₂.
prefix, suffix, infix #
Alias of the reverse direction of List.reverse_prefix.
Alias of the reverse direction of List.reverse_suffix.
Alias of the reverse direction of List.reverse_infix.
Alias of the reverse direction of List.reverse_prefix.
Alias of the reverse direction of List.reverse_prefix.
Alias of the reverse direction of List.reverse_suffix.
Alias of the reverse direction of List.reverse_suffix.
Alias of the reverse direction of List.reverse_infix.
Alias of the reverse direction of List.reverse_infix.
Alias of the forward direction of List.infix_nil.
Alias of the forward direction of List.prefix_nil.
Alias of the forward direction of List.suffix_nil.
Alias of List.IsPrefix.filterMap.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯