@[reducible, inline]
Equivalent of Float by enforcing the IEEE 754 standard, see also Cvc.AnyFloat.
Equations
- Cvc.Float = Cvc.AnyFloat 11 53
Instances For
def
Cvc.TMap.ofRBMap
{Idx : Type}
[Ord Idx]
{Elm : Type}
(toRBMap : RBMap Idx Elm)
:
Cvc.TMap Idx Elm
Constructor.
Equations
- Cvc.TMap.ofRBMap toRBMap = { toOrd := inferInstance, toRBMap := toRBMap }
Instances For
@[reducible, inline]
A total map with unknown values for all indices.
Instances For
The known value of an index if any.
Equations
- array.get idx = Batteries.RBMap.find? array.toRBMap idx
Instances For
Constructor.
Equations
- Cvc.Bag.ofRBMap toRBMap = { toOrd := inferInstance, toRBMap := toRBMap }
Instances For
Empty bag constructor.
Equations
- Cvc.Bag.empty = { toOrd := inferInstance, toRBMap := Cvc.RBMap.empty }
Instances For
Number of distinct elements in the map.
Equations
- bag.distinctSize = Batteries.RBMap.size bag.toRBMap
Instances For
Retrieves the multiplicity of an element.
Equations
- bag.getMult elm = (Batteries.RBMap.find? bag.toRBMap elm).getD 0
Instances For
Passes the multiplicity of an element to a function.
Equations
- bag.countDo elm f = f (Batteries.RBMap.findD bag.toRBMap elm 0)
Instances For
Constructor.
Equations
- Cvc.Set.ofRBSet toRBSet = { toOrd := inferInstance, toRBSet := toRBSet }
Instances For
Empty set.
Equations
Instances For
Size of the set.
Equations
Instances For
True if the element is in the set.
Equations
- set.contains elm = Batteries.RBSet.contains set.toRBSet elm
Instances For
@[reducible, inline]
Type corresponding to an Srt.
Equations
- (Cvc.Srt.abstract kind).toType = Cvc.Abstract kind
- (idx.array elm).toType = Cvc.TMap idx.toType elm.toType
- elm.bag.toType = Cvc.Bag elm.toType
- Cvc.Srt.bool.toType = Bool
- (Cvc.Srt.bitVec n).toType = BitVec n
- (Cvc.Srt.finiteField n).toType = Cvc.FiniteField n
- (Cvc.Srt.float exp sig).toType = Cvc.AnyFloat exp sig
- (dom.function cod).toType = (dom.toType → cod.toType)
- Cvc.Srt.int.toType = Int
- (lft.prod rgt).toType = (lft.toType × rgt.toType)
- Cvc.Srt.real.toType = Rat
- Cvc.Srt.regex.toType = Cvc.Regex
- Cvc.Srt.roundingMode.toType = Cvc.RoundingMode
- elm.seq.toType = Array elm.toType
- elm.set.toType = Cvc.Set elm.toType
- Cvc.Srt.string.toType = String
- Cvc.Srt.unit.toType = Unit
- (Cvc.Srt.uninterpreted cons).toType = Cvc.Uninterpreted cons
Instances For
Equations
- Cvc.Srt.instCoeSortType = { coe := Cvc.Srt.toType }