alignment/graph.py
Lightweight in-memory alignment graph. Loads AlignmentEdge records from
a pack's alignment.jsonl. Exposes edges_from(), aligned_pairs(), and
load_alignment(). No external deps — pure schema + stdlib.
language_packs/data/he_logos_micro_v1/alignment.jsonl
language_packs/data/grc_logos_micro_v1/alignment.jsonl
Seven bidirectional cross-language edges per pack encoding the semantic
resonances already implicit in the lexicon semantic_domains:
דבר↔λόγος, ראשית↔ἀρχή, אור↔φῶς, חיים↔ζωή, אמת↔ἀλήθεια, רוח↔πνεῦμα, ברא↔κτίζω
tests/test_alignment_graph.py
Four tests:
- load returns AlignmentEdge instances with correct structure
- דבר↔λόγος edge weight >= 0.9
- aligned_pairs() filters by relation prefix
- HolonomyAlignmentCase formal proof: positive triple closer than
negative triple, wrapping the geometry already proven in
test_holonomy_resonance.py into the schema's crown proof type
5 lines
182 B
Python
5 lines
182 B
Python
"""Alignment graph — cross-language resonance edges and holonomy proof cases."""
|
|
|
|
from .graph import AlignmentGraph, load_alignment
|
|
|
|
__all__ = ["AlignmentGraph", "load_alignment"]
|