Base Change¶
The BaseChange interface and the BoolToFuzzy and FuzzyToBool
changes of enrichment.
base_change
¶
Change of enrichment (change of base) for V-enriched categories.
A lax monoidal functor F: V → W between algebras induces a change-of-base 2-functor from V-Cat to W-Cat. This transforms all morphism tensors by applying F elementwise, changing the enrichment algebra from V to W.
This module provides:
BaseChange (abstract)
├── BoolToFuzzy — inclusion {0,1} ↪ [0,1]
└── FuzzyToBool — thresholding [0,1] → {0,1}
BaseChange
¶
Bases: ABC
Abstract change of enrichment from algebra V to algebra W.
Subclasses must implement source, target, and apply_to_values. apply_to_morphism is derived.
apply_to_values
abstractmethod
¶
apply_to_morphism
¶
apply_to_morphism(morph: Morphism) -> ObservedMorphism
Transform a V-morphism to a W-morphism.
Applies the value-level map to the morphism's tensor and returns an observed morphism with the target algebra.
| PARAMETER | DESCRIPTION |
|---|---|
morph
|
A morphism enriched over V.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
ObservedMorphism
|
The same morphism re-enriched over W. |
Source code in src/quivers/categorical/base_change.py
BoolToFuzzy
¶
Bases: BaseChange
Inclusion of the boolean algebra into the fuzzy algebra.
The identity map {0, 1} ↪ [0, 1]. Boolean-valued tensors are already valid fuzzy-valued tensors, so this is the identity on tensor values.
apply_to_values
¶
FuzzyToBool
¶
Bases: BaseChange
Thresholding from the fuzzy algebra to the boolean algebra.
Applies a threshold: values >= threshold become 1, others become 0. This is a right adjoint to BoolToFuzzy.
| PARAMETER | DESCRIPTION |
|---|---|
threshold
|
The threshold value. Must be in (0, 1). Default 0.5.
TYPE:
|