Shay
|
a4b4d22987
|
Add alignment graph, cross-language edges, and HolonomyAlignmentCase tests
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
|
2026-05-13 14:43:17 -07:00 |
|