Change of Base¶
Change of base reinterprets each weight in another
Algebra and keeps the finite input and output objects. BoolToFuzzy includes Boolean weights
among fuzzy scores and keeps the entries 0 and 1. A conversion commutes with composition only when
it preserves the operations composition uses
(Kelly, 1982). The module gives the BaseChange interface and the instance BoolToFuzzy.
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.
A subclass is a base change only if its value map is lax monoidal:
I_W ≤ F(I_V), F(a) ⊗ F(b) ≤ F(a ⊗ b), and order-preserving
[Kelly (1982), §1.10]. Thresholding [0, 1] → {0, 1} at an interior
point is not (two entries above the threshold can have a product below
it), so it is offered only as the carrier map
quivers.core.algebra_morphisms.Threshold, not as a base change.
This module provides:
BaseChange (abstract)
└── BoolToFuzzy — inclusion {0,1} ↪ [0,1]
References
Kelly, G. M. (1982). Basic Concepts of Enriched Category Theory. Cambridge University Press. Reprinted in Reprints in Theory and Applications of Categories, 10 (2005). TAC reprint
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
¶
Cited sources¶
G. M. Kelly. Basic Concepts of Enriched Category Theory. Cambridge University Press, 1982. Reprinted in Reprints in Theory and Applications of Categories 10 (2005), 1–136. URL: https://www.tac.mta.ca/tac/reprints/articles/10/tr10abs.html.