{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Compare",
 "ref": "Compare#15a0",
 "hash": "sema:Compare#mh:SHA-256:15a079e73bd3c280efbe2b35ab4b082b2302ab65e5dd5eb1c4fba1a5f554cebe",
 "stub": "15a0",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Relational check",
 "mechanism": "Evaluate relation between two values: Equal, Less, Greater, Incomparable.",
 "invariants": [
  "Single outcome: Compare(A, B) returns exactly one of Equal, Less, Greater, or Incomparable.",
  "Reflexive: A equals A.",
  "Operand reversal: Compare(B, A) preserves Equal and Incomparable, and swaps Less with Greater.",
  "Exact equality is transitive; a tolerance-based Equal does not carry this guarantee."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Tolerance chaining: under near-equality A≈B and B≈C without A≈C, so grouping by equality becomes order-dependent.",
  "Undeclared coercion: values are converted by a rule the comparator did not declare, producing Equal, Less, or Greater where its declared relation would return Incomparable."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Compare",
 "builds_on": [],
 "related": [
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "Webtrace",
   "ref": "Webtrace#8a90",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Webtrace"
  }
 ],
 "used_by": [
  {
   "slug": "ParetoFront",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ParetoFront"
  },
  {
   "slug": "TranslationProxy",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/TranslationProxy"
  },
  {
   "slug": "Webtrace",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Webtrace"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Compare",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Compare.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
