Equations
- ImportGraph.Diff.instMeasurableNat = { measure := id }
Equations
Equations
Instances For
Equations
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Apply f to both the initial and final state.
Instances For
The difference between the measures of the final state and initial state.
Equations
- t.delta = ↑(ImportGraph.Diff.measure t.final) - ↑(ImportGraph.Diff.measure t.initial)
Instances For
abbrev for Transition Nat. The result of measuring a Transition with
Transition.measure.
Instances For
Equations
Instances For
A Venn diagram characterizing the changes between some (implicit, unspecified) initial and final state.
- plus : α
What the final state has gained that was not present in the initial state.
- minus : α
What the initial state has lost that is no longer present in the final state.
Instances For
Equations
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Convert a Transition α into a Venn β according to the provided notions of set difference
and interesection. Note that this is slightly more general than using a VennLike α instance, as
it allows changing the type to β and does not require isEmpty.
Equations
Instances For
Provides the structure necessary to view α as "setlike" enough to support Venn, namely a
means of taking the set difference, a means of intersection, and a notion of emptiness. This
typeclass is homogeneous, i.e. we assume that α itself is sufficient for representing both states
and the differences/shared aspects between them.
- sdiff : α → α → α
A "set difference" such that
VennLike.sdiff a btells us whatahas thatbdoes not. - inter : α → α → α
An "intersection" such that
VennLike.inter a btells us what is common to bothaandb. - isEmpty : α → Bool
A notion of emptiness.
VennLike.isEmpty <| VennLike.sdiff a b = trueshould imply that, for the purposes of the Venn diagram,ais a "subset" ofb. (Both directions should indicate equality.) Likewise,VennLike.isEmpty <| VennLike.inter a bshould imply thatais disjoint fromb.
Instances
A v : Venn α represents a change of some kind iff v.plus is not isEmpty orv.minus is not isEmpty.
Equations
- v.isChangedBy isEmpty = !v.isUnchangedBy isEmpty
Instances For
If comparable, the relationship final ≷ initial, according to the provided notion of
isEmpty.
some .gt: theVenndiagram implicitly represents a strict increasesome .lt: theVenndiagram implicitly represents a strict decreasesome .eq: no change in state at allnone: incomparable states (some increase, some decrease)
Equations
- v.compareBy? isEmpty = match isEmpty v.plus, isEmpty v.minus with | true, true => some Ordering.eq | true, false => some Ordering.lt | false, true => some Ordering.gt | false, false => none
Instances For
The net difference between the implicit initial and final state, collapsing the independent
measurements of plus and minus together.
Equations
- v.delta = ↑(ImportGraph.Diff.measure v.plus) - ↑(ImportGraph.Diff.measure v.minus)
Instances For
A v : VennMeasure represents no change iff both v.plus and v.minus satisfy
VennLike.isEmpty.
Equations
Instances For
A v : VennMeasure represents a change of some kind iff either v.plus is not empty or
v.minus is not empty, according to VennLike.isEmpty.
Equations
- v.isChanged = !v.isUnchanged
Instances For
If comparable, the relationship final ≷ initial.
some .gt: theVenndiagram implicitly represents a strict increasesome .lt: theVenndiagram implicitly represents a strict decreasesome .eq: no change in state at allnone: incomparable states (some increase, some decrease)
The presence of a change is determined by VennLike.isEmpty.