Skip to content

Ring 067: Ternary shift and rotate operations #234

Closed

Description

@gHashTag

Ring 067: Ternary Shift and Rotate Operations

Goal

Define bitwise/tritwise shift and rotate operations for ternary words.

Deliverables

    • Ternary shift spec
  • Left/right shift with zero fill
  • Left/right rotate (circular shift)
  • Arithmetic shift right (sign-preserving)
  • Trit extraction and insertion

Status

✅ Complete

Tests

  • 9 tests for shift/rotate operations
  • 5 invariants (zero fill, preservation, sign preservation)
  • 4 benchmarks for performance

L1-L7 Compliance

  • L1 TRACEABILITY: Links to this issue
  • L2 SOUL-ASCII: .t27 spec is ASCII-only
  • L3 PURITY: No hand-edited generated code
  • L4 TESTABILITY: Contains test/invariant/bench
  • L5 IDENTITY: Shift invariants validated
  • L6 TRINITY-SACRED: No sacred constants modified
  • L7 UNITY: No new shell scripts

φ² + 1/φ² = 3 | TRINITY

Activity

  1. added a commit that references this issue on Apr 7, 2026
    dfa6ce6
  2. added 4 commits that reference this issue on Apr 7, 2026
    9c81466
    a276aae
    ad8025f
    29702fc
  3. added 4 commits that reference this issue on Jun 1, 2026
    4d9f9f4
    70bc4e4
    6f81871
    0497057
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions