Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pcta/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ratios: loc_comments=35:23 imports_exports=4:1 calls_definitions=1:0
"""pcta — **PCTA: Prime Circled Tensor Architecture** (prime-tensor stack layer 2).

Covers circles carried by UCNS objects and composes them into **seeds**. It
Expand Down Expand Up @@ -63,3 +64,4 @@
"coherence_primes_up_to",
"nth_coherence_prime",
]
# ratios: loc_comments=35:23 imports_exports=4:1 calls_definitions=1:0
2 changes: 2 additions & 0 deletions pcta/compose.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ratios: loc_comments=56:36 imports_exports=5:4 calls_definitions=21:4
"""The layer-2 composition operator: circles -> seed.

`compose_seed` is the structural ``⊠`` operator for layer 2. It is **purely
Expand Down Expand Up @@ -105,3 +106,4 @@ def seed_motion(seed: Seed) -> SeedMotion:
anchor_order=seed.anchor_order,
circle_identities=tuple(c.identity for c in seed.circle_tensors()),
)
# ratios: loc_comments=56:36 imports_exports=5:4 calls_definitions=21:4
2 changes: 2 additions & 0 deletions pcta/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ratios: loc_comments=69:90 imports_exports=3:3 calls_definitions=20:6
"""Composition routing and the coherence-prime guard.

`pcta` (**PCTA — Prime Circled Tensor Architecture**) is **layer 2** of the
Expand Down Expand Up @@ -180,3 +181,4 @@ def nth_coherence_prime(n: int) -> int:
if len(ladder) > n:
return ladder[n]
limit *= 2
# ratios: loc_comments=69:90 imports_exports=3:3 calls_definitions=20:6
2 changes: 2 additions & 0 deletions pcta/tensor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ratios: loc_comments=47:37 imports_exports=3:3 calls_definitions=6:10
"""Layer-2 tensor objects: the opaque circle carrier and the seed it produces.

pcta consumes **circle-tensors** (layer-1 / `pcna` output — circles carried by
Expand Down Expand Up @@ -104,3 +105,4 @@ class SeedMotion:
routing_step: int
anchor_order: Tuple[int, ...]
circle_identities: Tuple[Optional[str], ...] = field(default_factory=tuple)
# ratios: loc_comments=47:37 imports_exports=3:3 calls_definitions=6:10
Loading