---
library: "bootstrap"
slug: "Generalize"
name: "Generalize"
ref: "Generalize#29f1"
hash: "sema:Generalize#mh:SHA-256:29f133fe83dfe2cd7d2b432390f59e3a64a84866b964a2ca6199f8134ba64e7e"
type: "Reasoning"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Generalize"
---

# Generalize

Inductive pattern extraction

Mind · Reasoning

## Mechanism

Pattern Extraction: Given multiple instances, identify shared structure. Replace specific values with variables. [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md) the invariant that holds across all instances. Test: does pattern predict behavior of new instances? Refine until predictive. The canonical form of [Induction](https://semahash.org/vocabularies/bootstrap/patterns/Induction.md) in sema's reasoning taxonomy — probable conclusions from specific observations. It employs [AnalogyBridge](https://semahash.org/vocabularies/bootstrap/patterns/AnalogyBridge.md) to map specific instances to abstract schemata, validating the invariant across the set.

## Invariants

- The abstract rule covers every instance it was drawn from.
- Drawn from at least `min_instances` instances.
- Tested against instances not used to form it.

## Parameters

- min_instances: type=PositiveInteger, range=[2, 100], description=Instances required before a shared structure counts as a pattern.

## Preconditions

- Set of specific instances

## Postconditions

- General principle extracted

## Failure modes

- Overfitting: the extracted pattern includes noise or coincidence from the instances it was drawn from.
- Over-generalisation: the rule covers the instances and also cases it should exclude.

## Where this came from

—

## Builds on

- [Induction](https://semahash.org/vocabularies/bootstrap/patterns/Induction.md) (references)
- [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md) (references)
- [AnalogyBridge](https://semahash.org/vocabularies/bootstrap/patterns/AnalogyBridge.md) (references)

## Used by

- [Almostnot](https://semahash.org/vocabularies/bootstrap/patterns/Almostnot.md) (references)
- [CapacityPressure](https://semahash.org/vocabularies/bootstrap/patterns/CapacityPressure.md) (references)
- [PatternEmergence](https://semahash.org/vocabularies/bootstrap/patterns/PatternEmergence.md) (references)
- [Specialize](https://semahash.org/vocabularies/bootstrap/patterns/Specialize.md) (references)

## Related

- [Specialize](https://semahash.org/vocabularies/bootstrap/patterns/Specialize.md)
- [Almostnot](https://semahash.org/vocabularies/bootstrap/patterns/Almostnot.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Generalize#29f1
- Hash: sema:Generalize#mh:SHA-256:29f133fe83dfe2cd7d2b432390f59e3a64a84866b964a2ca6199f8134ba64e7e

## Links

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