---
library: "bootstrap"
slug: "Compress"
name: "Compress"
ref: "Compress#b585"
hash: "sema:Compress#mh:SHA-256:b585b8c462691d24d55deee575c5ade6d6510d9f99f9c59c38d2ff025ad3721c"
type: "Primitives"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Compress"
---

# Compress

Lossy or lossless reduction

Infrastructure · Primitives

## Mechanism

Reducing the size of information while preserving the meaning that matters to its consumer. Which meaning matters is the caller's to state; whether the reduction can be undone is the compressor's to declare. No coder shrinks every input.

## Invariants

- States whether exact reconstruction of its input is available.
- Where reconstruction is declared available, Inverse(Output) == Input bit-for-bit.
- A compressor that cannot reduce an input reports that rather than emitting an expanded output as compressed.

## Where this came from

—

## Used by

- [ChunkMerge](https://semahash.org/vocabularies/bootstrap/patterns/ChunkMerge.md) (references)
- [ContextCompress](https://semahash.org/vocabularies/bootstrap/patterns/ContextCompress.md) (references)
- [Summarize](https://semahash.org/vocabularies/bootstrap/patterns/Summarize.md) (references)
- [Taper](https://semahash.org/vocabularies/bootstrap/patterns/Taper.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Compress#b585
- Hash: sema:Compress#mh:SHA-256:b585b8c462691d24d55deee575c5ade6d6510d9f99f9c59c38d2ff025ad3721c

## Links

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