/-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kyle Miller
-/
module
public import Mathlib.Data.Set.Finite.Lattice
import Mathlib.Data.Fintype.Vector
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Finiteness of sets of lists
## Tags
finite sets
-/
public section
assert_not_exists IsOrderedRing MonoidWithZero
namespace List
variable (α : Type*) [Finite α] (n : ℕ)
lemma finite_length_eq : {l : List α | l.length = n}.Finite :=
inferInstanceAs <| Finite (Vector α n)
lemma finite_length_lt : {l : List α | l.length < n}.Finite := by
convert (Finset.range n).finite_toSet.biUnion fun i _ ↦ finite_length_eq α i; simp
lemma finite_length_le : {l : List α | l.length ≤ n}.Finite := by
simpa [Nat.lt_succ_iff] using finite_length_lt α (n + 1)
end List
¤ Dauer der Verarbeitung: 0.13 Sekunden
¤
*© Formatika GbR, Deutschland