/-
Copyright (c) 2021 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
public import Mathlib.Data.Vector.Basic
public import Mathlib.Logic.Small.Basic
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Instances for `Small (List α)` and `Small (Vector α)`.
These must not be in `Logic.Small.Basic` as this is very low in the import hierarchy,
and is used by category theory files which do not need everything imported by `Data.Vector.Basic`.
-/
public section
universe u v
open Mathlib
instance smallVector {α : Type v} {n : ℕ} [Small.{u} α] : Small.{u} (List.Vector α n) :=
small_of_injective (Equiv.vectorEquivFin α n).injective
instance smallList {α : Type v} [Small.{u} α] : Small.{u} (List α) := by
let e : (Σ n, List.Vector α n) ≃ List α := Equiv.sigmaFiberEquiv List.length
exact small_of_surjective e.surjective
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland