{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Distance",
 "ref": "Distance#dfdf",
 "hash": "sema:Distance#mh:SHA-256:dfdfe0610f91741e27f87042fc396eab765c4e48aa20fdfc0dfa7152d1333893",
 "stub": "dfdf",
 "layer": "Physics",
 "type": "Primitives",
 "summary": "Metric-axiom function d(x,y) on a space — substrate for similarity, proximity, and spatial reasoning",
 "mechanism": "A function d(x, y) on a space that assigns a non-negative real number to each pair of points, satisfying the metric axioms: (1) non-negativity, d ≥ 0; (2) identity of indiscernibles, d(x, y) = 0 iff x = y; (3) symmetry, d(x, y) = d(y, x); (4) triangle inequality, d(x, z) ≤ d(x, y) + d(y, z). The substrate of 'how close' in any space — geographic, vector-embedding, cognitive-similarity, network-hop, graph-theoretic. Every metric space has a distance function; agents cannot redefine what metric-ness requires. Pseudo-metrics (which relax identity of indiscernibles) and quasi-metrics (which relax symmetry) are distinct descendants, not specializations of Distance itself.",
 "invariants": [
  "Non-negativity: d(x, y) ≥ 0 for all x, y in the space.",
  "Identity of indiscernibles: d(x, y) = 0 if and only if x = y.",
  "Symmetry: d(x, y) = d(y, x).",
  "Triangle inequality: d(x, z) ≤ d(x, y) + d(y, z)."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Distance",
 "builds_on": [],
 "related": [],
 "used_by": [
  {
   "slug": "ConceptBlend",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ConceptBlend"
  },
  {
   "slug": "DriftWatch",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DriftWatch"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Distance",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Distance.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
