Mathlib Map

Theorems · Definition · combinatorics

List.sublistsLen

{α : Type u} → ℕ → List α → List (List α)

The list of all sublists of a list l that are of length n. For instance, for l = [0, 1, 2, 3] and n = 2, one gets [[2, 3], [1, 3], [1, 2], [0, 3], [0, 2], [0, 1]].

Defined in
Mathlib.Data.List.Sublists
Cited by
19 results in Mathlib
Foundations
Depth 10 from the axioms · uses no axioms

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites1

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Cited by19

Results whose statement or proof uses this declaration.