Compile higher-math constraints and typed contraction against Edric - #46
Closed
isomorphisms wants to merge 21 commits into
Closed
Compile higher-math constraints and typed contraction against Edric#46isomorphisms wants to merge 21 commits into
isomorphisms wants to merge 21 commits into
Conversation
Preserve Idriç source mode, make identity restriction definitionally reduce, move rejection checks into compiler-native failing blocks, and carry the pinned Chez path through focused test execution.
This was referenced Aug 29, 2026
Owner
Author
|
Classification: SUPERSEDED by #51. #51 retained the named-space distinction, separate vector/covector representations, contraction machinery, and presheaf identity/composition laws, while reconciling them with the competing Euclidean geometry line. No unique implementation from this PR remains pending outside the unified model in #51. This PR remains the historical record of the named-space design. |
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
Turn the research branch into a real compiler-checked experiment without broadening the semantic claims beyond what these finite models establish.
Verified contraction boundary
The checked interface remains space-indexed:
The receipt now covers:
PlaneSpace/ThreeSpacerejection diagnostic;PlaneSpace/ImagePlaneSpacedespite their equal coordinate counts, pinning the constraint to nominal space identity rather than rank;These checks do not introduce or claim a general
Group/Module/Tensorhierarchy.Verified presheaf tensor restriction boundary
The example is explicitly a finite formal model of elementary-generator pairs for
Section(U) tensor Section(U)overWhole,Patch, andPoint.The compiler checks:
This is not a balanced tensor-product quotient, arbitrary presheaves
FandG, sheafification, or a function-extensionality theorem.Receipt hardening
.idricextension when staging fixtures so the filename-scoped→syntax is actually exercised.failingblocks../edric test --only idris2/basic/edric008with the bootstrapped Chez executable pinned throughCHEZ.Idriçand every default-branch push, without duplicate feature-branch push receipts.Bad.idrprobe, whose stdout/stderr assumptions did not reliably observe the compiler diagnostic.Exact-head receipt
Head:
c2e5945e209cbf9ab055e3c127c4b981313242fcidris2/basic/edric008: success;1/1 tests successful.CHEZpin, bootstrap delegation, and focused test delegation.The executable receipt prints:
Still deferred / research-only
Actual compiler lexer/elaborator support for the proposed glyph syntax, compiler IR/planning integration, theorem-aware inference, a general tensor-product construction, and sheafification remain unimplemented and are not claimed by this PR.
Relation to the geometry stack
This PR is independent of the #44 → #45 → #47 stack. That stack models rank-indexed Euclidean coordinate vectors with a direct dot product; this PR models nominally named spaces and permits contraction only between
Covector spaceandVector space, with no implicit metric. Both usetests/idris2/basic/edric008, so their fixture collision and mathematical disagreement must be resolved deliberately rather than by selecting the branch with more code.