Skip to content

feat(k3): add bounded native Kaskad integer engine - #425

Merged
Ivan-VHS merged 26 commits into
mainfrom
feat/kaskad-k3-bounded-native-v1
Dec 2, 2026
Merged

Ivan-VHS merged 26 commits into
mainfrom
feat/kaskad-k3-bounded-native-v1

Conversation

@Ivan-VHS

@Ivan-VHS Ivan-VHS commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

Add a standalone native C11 implementation of the strict canonical Kaskad K3 integer profile, built as a Pytyliki library and CLI.

Delivered functionality

  • Strict canonical K3 parser and canonical formatter (radix 1000, coefficients 0..999, terminal k contributes one implicit low zero).
  • Checked signed addition, subtraction and multiplication.
  • Fixed input/output bounds, no heap allocation, no floating-point arithmetic.
  • Explicit syntax, invalid-argument, overflow and buffer-capacity statuses.
  • pytyliki-k3 CLI with parse, format, add, sub, mul and check operations; emits a versioned JSON result with decimal as a string.
  • CTest coverage for canonical notation, zero and sign handling, INT64_MIN/INT64_MAX, strict negative cases, overflow, buffer capacity, round trips and CLI smoke tests.

Provenance and epistemic boundary

The bounded port is derived from Kaskad commit 4bdd61024e8f719222d1cda4651294b9e16c23ec, including its canonical syntax, integer arithmetic and reference-vector definitions. The implementation does not copy Python into Pytyliki and does not require Kaskad as a runtime dependency.

This is deliberately a signed-int64 subset, not an arbitrary-precision implementation. K3-PAD, K3-RAW, rationals, claim/proof graph processing and general theorem evaluation remain outside this change. A passing computational test does not promote any mathematical claim to theorem status.

Verification

C11 CI, Windows/MSVC C11 CI, architecture/quality contracts and repository guards must pass before merge. No merge is performed by this change.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-02T12:58:48.466806Z
We couldn’t complete this review. Comment @codex review to try again.
d7a825b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Ivan-VHS
Ivan-VHS merged commit 6ed8dba into main Dec 2, 2026
45 of 51 checks passed
@Ivan-VHS
Ivan-VHS deleted the feat/kaskad-k3-bounded-native-v1 branch December 2, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant