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]
'a fset.
Equations
Instances For
elems s: the elements of s, as a list (in some order).
Equations
- s.elems = Finset.toList s
Instances For
pick s: some element of s (EasyCrypt leaves which one unspecified), witness for the
empty set.
Equations
- s.pick = if h : Finset.Nonempty s then Exists.choose h else default