Repository navigation
psi: let a stored value deliver the content domains its destination displays - #6310
Merged
Merged
Conversation
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.
Requested by Jarod · project thread
omega --check source/library/allocation/main.omgstopped atbump/bump.omg:60,strategy.tail = parts.rest;, with "a named default has no complete storage predicate theory". The field is aVacantStorage, anExtentinGranted & Vacant, and both domains have a content projection. The store moves a whole owned value whose type carries those same two domains into the field, so it delivers them. Nothing about the strategy's content is left to prove.The default-requirement inventory already knew this.
append_lostkeeps only the domains the displayed destination does not show, because the transfer judgment makes a stored value deliver exactly the destination's domains. But it computed every domain's clauses first and filtered after. For a content domain, computing the clauses refuses on restoration, before the filter could drop it.append_lostnow passes the displayed domains toat_except, which skips them before that check. Every other caller passes none, so the result is unchanged everywhere except a refusal for a domain that would have been filtered out.a_whole_stored_value_delivers_the_content_domain_its_destination_displaysinstructural_qualifications/default_requirement_tests.rs. A lender whose whole value is in a content domain owes nothing when the displayed destination shows that domain. Its twin displays only an element, which does not show the domain, and is still refused with the same message.inventory_keeps_a_content_domains_predicate_without_proving_a_changed_valuestill refuses a store beneath the value.bump.omg:60and stops at five other refusals, each its own gap. Two are inreset: "cannot prove requires contract for call merge_vacant_extents" and "cannot prove requires clause 1 of a data type ... return value". One is in core'ssplit_vacant_extentensures ("requested != 0 || result.rest.base == whole.base"), read through allocation. Two are unsupported constructs invec: "a call whose static arguments no pass specializes yet" instore_cell::change, and "type record application whose reference regions are not retained" foraccess::view_extent_mut.Gate: RC-SOURCE-SEMANTICS | a whole stored value delivers the content domains its destination displays without a storage predicate proof
Spec: wiki/spec/language/domains.md
Proof:
mbx test -p terminal-semantics --lib(333 passed);mbx test -p omega --test content_projection_domains(11 passed);omega --check source/library/core/main.omgpasses;omega --check source/library/allocation/main.omgpassesbump.omg:60and stops at the five refusals above;mbx clippy -p terminal-semantics --all-targets --no-deps -- -D warningsclean |mbx xtask sample-gate --filter samples/cli/facts/contentfails all 38 in stage 03, before this judgment ("this call has no visible declaration in its source scope" and "this value's type carries no domain and the field it initializes declaresRegion::Owned"); not compared against mainAgent: Claude Code | Model: claude-opus-5-5 | Effort: medium | Tokens: 46.36M in (46.08M cached), 93.5k out | Steps: 212 | Time: 59m13s | Steers: 0
Generated by Claude Code