Documentation

Provenance.Util.ValueType

class ValueType (T : Type) extends Zero T, AddCommSemigroup T, Sub T, Mul T, LinearOrder T :

A value domain. The isNull predicate says which of its values is SQL's NULL; a domain without one answers false everywhere, which is the default, and the three-valued semantics is then the two-valued one. Carrying the test here rather than in a stronger class is what lets one semantics serve both: the results proved over ℕ, where nothing is null, keep saying what they said.

Instances
    Dependency graph
    class NoNulls (T : Type) [ValueType T] :

    A value domain in which nothing is null. The three-valued semantics agrees with the two-valued one there, which is why every statement proved before the null was introduced keeps saying what it said.

    Instances
      Dependency graph
      @[instance_reducible]
      Equations
      • One or more equations did not get rendered due to their size.
      Dependency graph
      @[instance_reducible]
      instance instToStringSum_provenance {V : Type u_1} {K : Type u_2} [ToString V] [ToString K] :
      Equations
      Dependency graph
      Dependency graph