Infrastructure · Primitives
Equivalence
Sameness decided by canonical content rather than by label
Definition
Mechanism
Two artifacts are the same thing when their canonical content is identical, regardless of the name each party uses for them. Equivalence is therefore always stated relative to a canonicalization: the normalization that decides which differences are incidental (whitespace, key order, encoding) and which are semantic. Distinct from equality of reference (the same object) and from similarity (near, on some metric): Equivalence is exact, and it is exact about content. This is what lets two parties who never coordinated determine whether they hold the same definition or merely the same word, and it is what makes a name mismatch recoverable while a content mismatch is not.
Invariants
- Reflexivity: every artifact is equivalent to itself under any canonicalization.
- Symmetry: if A is equivalent to B then B is equivalent to A.
- Transitivity: if A is equivalent to B and B to C, then A is equivalent to C.
- Canonicalization-relative: an equivalence claim holds only under a stated canonical form; the same pair may be equivalent under one and distinct under another.
Risks
Failure modes
Label equivalence
two artifacts judged the same because they share a handle rather than because their content matches.
Unstated canonicalization
parties compare content under different normalizations and disagree without either being wrong.
Relationships
Root pattern: builds on nothing in this library.
Used by
References
Mind
Rapid, low-cost decision making via pattern recognition
Safe retries via unique keys
Society
Defensible over ambitious
Mind
Constraint-based novelty enforcement
Society
Stub, hash, and homograph collisions are different threats
Reference
