How gulzat-dev/blalgebra works
This research codebase computes homomorphism counts (and, for one Hájek variant, explicit maps) for finite algebras associated with Łukasiewicz, Gödel, and Hájek/BL logics. The typical workflow loads example algebra data, converts forest data when needed, applies a logic-specific recurrence or counting rule, and prints a result; Gödel also visualizes its forests. The graph separates the shared loader, the three logic implementations, and the supplied examples. Relationships are limited to calls and file reads visible in the excerpts; no unsampled behavior is assumed.
Main entry points: godel.py Gödel runner · hajecForestToForest.py BL forest counting · hajecTreeToTree.py BL map enumeration · lukasiewicz_logic.py MV runner
Components 12
Shared forest input
- Forest examples
src - Forest loader
forestLoader/forestLoader.py
Gödel counting
- Gödel runner
godel/godel.py - Forest count recurrence
godel/godel.py - Forest visualization
godel/godel.py
Hájek BL methods
- BL forest counting
hajec/hajecForestToForest.py - BL map enumeration
hajec/hajecTreeToTree.py
Łukasiewicz MV
- MV runner
lukasiewicz/lukasiewicz_logic.py - Labelled-set counting
lukasiewicz/lukasiewicz_logic.py - MV examples
src/lukaseiwich
Other components
- Researcher
- Printed result
Connections 18
- Researcher → Gödel runner: runs
- Researcher → BL forest counting: runs
- Researcher → BL map enumeration: runs
- Researcher → MV runner: runs
- Gödel runner → Forest examples: reads examples
godel/godel.py - Gödel runner → Forest loader: loads forests
godel/godel.py - Gödel runner → Forest visualization: visualizes forests
godel/godel.py - Gödel runner → Forest count recurrence: counts maps
godel/godel.py - Gödel runner → Printed result: prints count
godel/godel.py - BL forest counting → Forest examples: reads examples
hajec/hajecForestToForest.py - BL forest counting → Forest loader: loads forests
hajec/hajecForestToForest.py - BL forest counting → Printed result: prints count
hajec/hajecForestToForest.py - BL map enumeration → Forest examples: reads examples
hajec/hajecTreeToTree.py - BL map enumeration → Forest loader: loads forests
hajec/hajecTreeToTree.py - BL map enumeration → Printed result: prints maps and count
hajec/hajecTreeToTree.py - MV runner → MV examples: reads examples
lukasiewicz/lukasiewicz_logic.py - MV runner → Labelled-set counting: calculates count
lukasiewicz/lukasiewicz_logic.py - MV runner → Printed result: prints count
lukasiewicz/lukasiewicz_logic.py