Add exact units, signed time, and interval type-system core - #44
Open
isomorphisms wants to merge 7 commits into
Open
Add exact units, signed time, and interval type-system core#44isomorphisms wants to merge 7 commits into
isomorphisms wants to merge 7 commits into
Conversation
isomorphisms
commented
Aug 29, 2026
isomorphisms
left a comment
Owner
Author
There was a problem hiding this comment.
Self-check boundary: this PR intentionally implements only the exact rational/unit, signed-duration/instant, and additive interval kernels. Do not broaden it to calendar semantics, probability distributions, general uncertainty, or algebraic interface inheritance merely to make the first slice feel complete. Compiler failures should be repaired minimally without weakening the pinned equations.
isomorphisms
commented
Aug 29, 2026
This was referenced Aug 29, 2026
This was referenced Aug 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Small tests-first implementation of the algebraically settled slice from #28, #30, and #31.
Exact quantities / dimensions
gallon / secondtypechecks asVolume / Timewithout a special compound-unit class.Time
Instantkept distinct from signedDuration;No Group/Semigroup inheritance hierarchy is added. The algebraic classification can remain knowledge available to later computer-science/AICI reasoning while ordinary source only sees the operations it needs.
Intervals
+epsilon/-epsilonboundary vocabulary;epsilon^2 = 0) remains a separate type and is deliberately not ordered;Deliberately deferred: interval multiplication/division, outward floating rounding, correlated uncertainty (
x-xdependency), probability/Gaussian inference, calendar time, and the broader open-ended uncertainty design.Tests-first history
ae6bcfbf0e7ccae46f57a171be40b0c78fc73ab957de2109ff81b4f4bf7f2610a63d34b5278b3804edric007, now included by./edric testa3ffc1c03e040e31a0867d473611b1bf8960cca0Verification
VERIFIED on the exact current PR head in the pull-request merge context.
a3ffc1c03e040e31a0867d473611b1bf8960cca059ad1d9c83028ca1dbdb8ba50f486cdd7dca9425Edric type-system smoke3327750290899166698046./edric allbootstrap completed successfullyidris2/basic/edric007: success 00.854s1/1 tests successfulThe only correction made after the first semantic green run was making the
edric007/runharness file executable; no mathematical/type semantics were weakened or changed.Related: #28, #30, #31, #42.