---
library: "bootstrap"
slug: "ThreeLevelCollision"
name: "ThreeLevelCollision"
ref: "ThreeLevelCollision#11d6"
hash: "sema:ThreeLevelCollision#mh:SHA-256:11d62af6f35377784694f7fc381b41369cd99da2b7480c3fe33ef8132a77f88f"
type: "Protocols"
layer: "Society"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/ThreeLevelCollision"
---

# ThreeLevelCollision

Stub, hash, and homograph collisions are different threats

Society · Protocols

## Mechanism

Distinguishes three collision classes and assigns specific defenses: (1) Stub Collision (Namespace exhaustion) -> Defended by full-hash verification. (2) Hash Collision (Cryptographic failure) -> Defended by SHA-256 entropy. (3) Homograph Collision (Semantic spoofing) -> Defended by Social Uptake and Reputation. A collision that cannot be resolved at its own level applies [FailClosed](https://semahash.org/vocabularies/bootstrap/patterns/FailClosed.md).

## Invariants

- L1 Defense: Stub match is NOT verification. Full hash check is mandatory.
- L3 Defense: [Equivalence](https://semahash.org/vocabularies/bootstrap/patterns/Equivalence.md) is decided by Content, not Handle. A 'spoofed' pattern is simply a different pattern with zero reputation.

## Preconditions

- Sema Hashing Algorithm (SHA-256) is secure

## Postconditions

- Appropriate verification logic applied
- Threat level identified

## Failure modes

- Stub Confusion: Relying on 4-char stub (#a1b2) for security instead of convenience.
- Homograph Attack: Malicious actor mints a pattern with a trusted Handle but malicious Definition (social engineering).
- Pre-image Attack: Theoretical break of SHA-256 (renders Level 2 defense void).

## Where this came from

—

## Builds on

- [Equivalence](https://semahash.org/vocabularies/bootstrap/patterns/Equivalence.md) (references)
- [FailClosed](https://semahash.org/vocabularies/bootstrap/patterns/FailClosed.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: ThreeLevelCollision#11d6
- Hash: sema:ThreeLevelCollision#mh:SHA-256:11d62af6f35377784694f7fc381b41369cd99da2b7480c3fe33ef8132a77f88f

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/ThreeLevelCollision
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/ThreeLevelCollision.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
