Documentation

GaudisCrypt.Lib.EC.FSet

EasyCrypt's finite sets (theories/datatypes/FSet.ec) #

'a fset is Mathlib's Finset. Only what ported developments use is here. Names are EasyCrypt's; the operators `|` and `\` are Lean's ∪ and \.

@[reducible, inline]
abbrev GaudisCrypt.EC.FSet (α : Type u_1) :
Type u_1

'a fset.

Equations
Instances For

    fset0: the empty set.

    Equations
    Instances For
      def GaudisCrypt.EC.FSet.fset1 {α : Type u_1} (x : α) :
      FSet α

      fset1 x: the singleton.

      Equations
      Instances For
        noncomputable def GaudisCrypt.EC.FSet.elems {α : Type u_1} (s : FSet α) :
        List α

        elems s: the elements of s, as a list (in some order).

        Equations
        Instances For
          noncomputable def GaudisCrypt.EC.FSet.pick {α : Type u_1} [Inhabited α] (s : FSet α) :
          α

          pick s: some element of s (EasyCrypt leaves which one unspecified), witness for the empty set.

          Equations
          Instances For