Library setup: re-exports and helpers #
The empty map.
Equations
Instances For
Builds a map from a list.
Equations
Instances For
Adds a key/val binding in a map, returns the previous value of key if any.
See also RBMap.insert.
Instances For
Adds a key/val binding in a map, none if a binding for key already exists.
Equations
- map.insertNew? key val = match map.insert' key val with | (prev?, map) => Option.map (Cvc.𝕂 map) prev?
Instances For
Map over the values of a map.
Equations
Instances For
Monadic map over the values of a map.
Equations
- Cvc.RBMap.mapValM f map = Cvc.RBMap.filterMapValM (fun (x1 : α) (x2 : β) => some <$> f x1 x2) map
Instances For
Filter/map over the values of a map.
Equations
- Cvc.RBMap.filterMapVal f map = Cvc.RBMap.filterMapValM f map
Instances For
Monadic filter/map over the values of a map into an array of values.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Monadic map over the values of a map into an array of values.
Equations
- Cvc.RBMap.mapValToArrayM f map = Cvc.RBMap.filterMapValToArrayM (fun (x1 : α) (x2 : β) => some <$> f x1 x2) map
Instances For
Map over the values of a map into an array of values.
Equations
- Cvc.RBMap.mapValToArray f map = Cvc.RBMap.mapValToArrayM f map
Instances For
Monadic key-ignoring map over the values of a map.
Equations
- Cvc.RBMap.mapOnlyValM f map = Cvc.RBMap.mapValM (fun (x : α) => f) map
Instances For
Key-ignoring map over the values of a map.
Equations
- Cvc.RBMap.mapOnlyVal f map = Cvc.RBMap.mapVal (fun (x : α) => f) map
Instances For
Key-ignoring monadic filter/map over the values of a map.
Equations
- Cvc.RBMap.filterMapOnlyValM f map = Cvc.RBMap.filterMapValM (fun (x : α) => f) map
Instances For
Key-ignoring filter/map over the values of a map.
Equations
- Cvc.RBMap.filterMapOnlyVal f map = Cvc.RBMap.filterMapOnlyValM f map
Instances For
Key-ignoring filter/map over the values of a map into an array of values.
Equations
- Cvc.RBMap.filterMapOnlyValToArrayM f map = Cvc.RBMap.filterMapValToArrayM (fun (x : α) => f) map
Instances For
Key-ignoring monadic map over the values of a map into an array of values.
Equations
- Cvc.RBMap.mapOnlyValToArrayM f map = Cvc.RBMap.mapValToArrayM (fun (x : α) => f) map
Instances For
Key-ignoring map over the values of a map into an array of values.
Equations
- Cvc.RBMap.mapOnlyValToArray f map = Cvc.RBMap.mapOnlyValToArrayM f map
Instances For
The empty set.
Equations
Instances For
Removes from set the elements elm for which ¬ f elm.
Equations
Instances For
Removes an element from a set.
See also RBSet.erase'.
Equations
- set.erase k = Batteries.RBSet.erase set (compare k)
Instances For
Equations
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
A check-sat result.
- sat : CheckSat
Formulas asserted are satisfiable, i.e. a model exists.
- unsat : CheckSat
Formulas are unsatisfiable, no assignment of the symbols makes them true.
- unknown
(desc : String)
: CheckSat
Solver returned unknown.
- other
(desc : String)
: CheckSat
Solver returned some unexpected result.
Instances For
Conversion to a simple is sat? flag, none on unknown/unexpected results.
Equations
Instances For
Equations
- Cvc.instInhabitedError = { default := Cvc.Error.internal default }
Equations
- Cvc.Error.instAsStringString = { asString := id }
Equations
- Cvc.Error.mapMsg f (Cvc.Error.internal msg) = Cvc.Error.internal (f msg)
- Cvc.Error.mapMsg f (Cvc.Error.unsupported msg) = Cvc.Error.unsupported (f msg)
- Cvc.Error.mapMsg f (Cvc.Error.userError msg) = Cvc.Error.userError (f msg)
Instances For
Equations
- (Cvc.Error.internal "a value is missing").toCvc5 = cvc5.Error.missingValue
- (Cvc.Error.internal msg).toCvc5 = cvc5.Error.error msg
- (Cvc.Error.unsupported msg).toCvc5 = cvc5.Error.unsupported msg
- (Cvc.Error.userError msg).toCvc5 = cvc5.Error.error msg
Instances For
Equations
- Cvc.Error.ofCvc5 cvc5.Error.missingValue = Cvc.Error.internal "a value is missing"
- Cvc.Error.ofCvc5 (cvc5.Error.error msg) = Cvc.Error.internal (toString "" ++ toString msg ++ toString "")
- Cvc.Error.ofCvc5 (cvc5.Error.option msg) = Cvc.Error.internal (toString "option error: " ++ toString msg ++ toString "")
- Cvc.Error.ofCvc5 (cvc5.Error.unsupported msg) = Cvc.Error.unsupported msg
- Cvc.Error.ofCvc5 (cvc5.Error.recoverable msg) = Cvc.Error.internal (toString "recoverable: " ++ toString msg ++ toString "")
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- Cvc.Error.instCoeError = { coe := Cvc.Error.ofCvc5 }
Equations
- (Cvc.Error.internal msg).toString = "internal error: " ++ msg
- (Cvc.Error.unsupported msg).toString = "unsupported: " ++ msg
- (Cvc.Error.userError msg).toString = "user error: " ++ msg
Instances For
Equations
- Cvc.Error.instToString = { toString := Cvc.Error.toString }
Throws an Error.userError.
Equations
- Cvc.throwUser msg = throw (Cvc.Error.userError msg)
Instances For
Throws an Error.internal.
Equations
- Cvc.throwInternal msg = throw (Cvc.Error.internal msg)
Instances For
Throws an Error.internal about unreachable code.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A success value of type α
Equations
Instances For
A failure value of type ε
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Cvc.Res.context s (Except.ok val) = Cvc.Res.ok val
Instances For
Equations
Instances For
Helpers #
Equations
- Cvc.instHashableArrayMin = { hash := Cvc.hashArrayMin✝ }
Equations
- Cvc.ArrayMin.instInhabited = { default := { pref := Array.replicate n default, inv := ⋯ } }
Equations
- Cvc.ArrayMin.instToString = { toString := Cvc.ArrayMin.toString }