---
library: "bootstrap"
slug: "Chain"
name: "Chain"
ref: "Chain#3ba0"
hash: "sema:Chain#mh:SHA-256:3ba084dba5cf36bbdd43d03306c187ca75a2e3f448b555e257c26aab9b71c4fb"
type: "Data Structures"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Chain"
---

# Chain

Sequential data container (linked list)

Infrastructure · Data Structures

## Mechanism

A concrete sequential data structure: a list of linked nodes where each node (except the last) points to exactly one successor. Chain is the instantiated storage object — distinct from the more abstract [Sequence](https://semahash.org/vocabularies/bootstrap/patterns/Sequence.md) (which describes temporal ordering semantics) and from the branching [Tree](https://semahash.org/vocabularies/bootstrap/patterns/Tree.md) topology. Chain is the canonical spatial form for strictly sequential, non-branching data.

## Invariants

- Connectivity: Node(N) must point to Node(N+1).
- Acyclicity: No loops permitted.

## Where this came from

—

## Builds on

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

## Used by

- [BackwardChain](https://semahash.org/vocabularies/bootstrap/patterns/BackwardChain.md) (references)
- [ChainOfThought](https://semahash.org/vocabularies/bootstrap/patterns/ChainOfThought.md) (references)
- [ExtendedThinking](https://semahash.org/vocabularies/bootstrap/patterns/ExtendedThinking.md) (references)
- [Parallel](https://semahash.org/vocabularies/bootstrap/patterns/Parallel.md) (references)
- [PerspectiveEnsemble](https://semahash.org/vocabularies/bootstrap/patterns/PerspectiveEnsemble.md) (references)
- [PromptChain](https://semahash.org/vocabularies/bootstrap/patterns/PromptChain.md) (references)
- [ReAct](https://semahash.org/vocabularies/bootstrap/patterns/ReAct.md) (references)
- [Reason](https://semahash.org/vocabularies/bootstrap/patterns/Reason.md) (references)
- [Solution](https://semahash.org/vocabularies/bootstrap/patterns/Solution.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Chain#3ba0
- Hash: sema:Chain#mh:SHA-256:3ba084dba5cf36bbdd43d03306c187ca75a2e3f448b555e257c26aab9b71c4fb

## Links

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