Documentation

FormaleSystemeInLean.Set

def Set (α : Type u) :
Equations
Instances For
    Equations
    instance instMembershipSet {α : Type u_1} :
    Membership α (Set α)
    Equations
    instance instUnionSet {α : Type u_1} :
    Union (Set α)
    Equations
    instance instInterSet {α : Type u_1} :
    Inter (Set α)
    Equations
    instance instHasSubsetSet {α : Type u_1} :
    Equations
    instance instHasSSubsetSet {α : Type u_1} :
    Equations
    instance instSDiffSet {α : Type u_1} :
    SDiff (Set α)
    Equations
    def List.toSet {α : Type u_1} (l : List α) :
    Set α
    Equations
    Instances For
      def Set.powerset (α : Type u) (S x : Set α) :
      Equations
      Instances For
        def Set.map {α : Type u_1} {β : Type u_2} (f : αβ) (S : Set α) [Fintype α] :
        Set β
        Equations
        Instances For
          theorem Set.ext {α : Type u_1} (X Y : Set α) :
          (∀ (e : α), e X e Y)X = Y
          theorem Set.inter_commutative {α : Type u_1} (X Y : Set α) :
          X Y = Y X
          theorem Set.union_commutative {α : Type u_1} (X Y : Set α) :
          X Y = Y X
          theorem Set.distr_inter_union {α : Type u_1} (X Y Z : Set α) :
          X (Y Z) = X Y X Z
          theorem Set.distr_union_inter {α : Type u_1} (X Y Z : Set α) :
          X Y Z = (X Y) (X Z)
          theorem Set.not_empty_contains_element {α : Type u_1} (X : Set α) :
          X (e : α), e X
          theorem Set.empty_eq {α : Type u_1} (A : Set α) :
          (∀ (x : α), ¬x A)A =
          theorem Set.empty_iff {α : Type u_1} (A : Set α) :
          A = ∀ (a : α), ¬a A
          theorem Set.ne_empty_contains_element {α : Type u_1} (B : Set α) [DecidableEq (Set α)] :
          (B != ) = true (a : α), a B
          theorem Set.empty_set_if_empty_type {α : Type u_1} (T : Fintype α) (S : Set α) :
          theorem Set.complete_set_iff {α : Type u_1} [Fintype α] (S : Set α) :
          (S = fun (x : α) => True) ∀ (x : α), x S
          theorem Set.complete_set_eq_fintype_elems {α : Type u_1} (T : Fintype α) :
          Fintype.elems.toSet = fun (x : α) => True
          theorem Set.exists_not_mem_if_ne_complete_set {α : Type u_1} (T : Fintype α) (S : Set α) :
          (S fun (x : α) => True) → (a : α), ¬a S
          theorem Set.ssubset_of_complete_set {α : Type u_1} (T : Fintype α) (S : Set α) :
          (S fun (x : α) => True) → S fun (x : α) => True
          theorem Set.mem_iff {α : Type u_1} {S : Set α} (x : α) :
          x S S x