Comparing Commitment Sets #
SE.Persistence.Commitment.Compare
Two bodies of same-commitments P and Q generate two identity relations. This
module says when one is contained in the other and, when they differ, that the
difference is always pinned to a single commitment.
- Containment is checked on generators:
Generated Pis contained inGenerated Qexactly when every pair ofPis generated byQ. - If it is not contained, some single pair of
Pis not generated byQ.
So a disagreement between two rules about who is the same as whom is never diffuse. Some specific asserted pair on one side accounts for it.
The identity generated by P is contained in the identity generated by Q.
Equations
- SE.Persistence.GeneratedLE P Q = ∀ (x y : C), SE.Persistence.Generated P x y → SE.Persistence.Generated Q x y
Instances For
Containment of generated identities is checked on generators.
Containment is reflexive.
theorem
SE.Persistence.GeneratedLE.trans
{C : Type}
{P Q R : C → C → Prop}
(h1 : GeneratedLE P Q)
(h2 : GeneratedLE Q R)
:
GeneratedLE P R
Containment is transitive.
theorem
SE.Persistence.exists_generator_difference
{C : Type}
{P Q : C → C → Prop}
(h : ¬(GeneratedLE P Q ∧ GeneratedLE Q P))
:
If P and Q generate different identity relations, a single asserted pair
on one side accounts for the difference.