Sets #
The Lean type denoting an SMT set. It is a Std.TreeSet, so its element type must be ordered —
which is why the set operators take an Ord instance on it.
Converting a set to a term and back is done by Cvc.Untyped.Theory.Set and
Cvc.Typed.Theory.Set.
@[reducible, inline]
An SMT set: a Std.TreeSet, so its elements must be ordered.
Equations
- Cvc.Set α = Std.TreeSet α compare
Instances For
Creates a new empty tree set. It is also possible and recommended to
use the empty collection notations ∅ and {} to create an empty tree set. simp replaces
empty with ∅.
Equations
Instances For
Transforms an array into a tree set.
Equations
Instances For
@[instance_reducible]
Equations
- Cvc.Set.instToTyp = { typ := Cvc.Typ.set (Cvc.Typ?.typ (Cvc.ToTyp.typ α)) }
@[instance_reducible]
Equations
- Cvc.Set.instToString = { toString := Cvc.Set.toString }
@[instance_reducible]
Equations
- Cvc.Set.instOrd = { compare := Cvc.Set.compare }