Documentation

FormaleSystemeInLean.Fintype

Fintype related definitions and results.

class Fintype (α : Type u) :

Fintype is used to express that a type is finite by requiring a list that contains all elements of this type. (inspired by mathlib)

Instances
    def subtype_of_list {α : Type u_1} (l : List α) :
    Type u_1

    Subtype of α containing elements of l

    Equations
    Instances For
      instance instFintypeSubtype_of_list {α : Type u_1} {l : List α} :

      A subtype of α created from the list l is finite.

      Equations
      instance instFintypeOption {α : Type u_1} [T : Fintype α] :

      If α is finite then Option α is finite as well.

      Equations