forked from rossberg/1ml
-
Notifications
You must be signed in to change notification settings - Fork 1
Remove T_abs with (Path = T_sub) and add T_abs & T_sub syntax...
#19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
polytypic
wants to merge
2
commits into
1ml-prime
Choose a base branch
from
intersection-sub-to-replace-with
base: 1ml-prime
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
4a4c30a to
229896c
Compare
aff9b3e to
7845dd3
Compare
1d77593 to
b248d00
Compare
7845dd3 to
604881f
Compare
604881f to
5fc4f42
Compare
5fc4f42 to
ea353d3
Compare
6167f5b to
88b09cf
Compare
ea353d3 to
2268faa
Compare
e909120 to
afd4d23
Compare
0fb0880 to
5c75b59
Compare
0b0a19e to
486657d
Compare
21012f8 to
2dc5974
Compare
dcc40ea to
7825b41
Compare
2dc5974 to
6ffef69
Compare
df4bb4c to
8597788
Compare
ec6e7c7 to
8c8671b
Compare
8597788 to
a94dd33
Compare
a94dd33 to
2a76357
Compare
dac23e1 to
ac35709
Compare
59f2865 to
00bc488
Compare
ac35709 to
59631d1
Compare
59631d1 to
ad5f067
Compare
ad5f067 to
1c2a1b9
Compare
...for type refinement.
The new
T_abs & T_sub
mechanism is similar to the old
T_abs with (Path = T_sub)
mechanism and also to the include mechanism
{...T_abs; ...T_sub}
The main difference is that, instead of using a path to target a specific
substructure or requiring that no declarations overlap, an intersection,
`T_int`, of the nested declarations of `T_abs` and `T_sub`, is computed.
Then it is checked whether `T_abs :> T_int` and if so a substitution, `𝛿`, is
obtained. Finally the nested declarations of `𝛿(T_abs)` and `T_sub` are merged.
Also, in `T1 & T2` both `T1` and `T2` are elaborated in the same environment
whereas in `{...T1; ...T2}` the environment for `T2` includes declarations from
`T1` and in `T1 with (P = T2)` the path `P` is specific to `T1`.
When defined, `T1 & T2` is always a subtype of both `T1` and `T2`
T1 & T2 :> T1
T1 & T2 :> T2
1c2a1b9 to
0778534
Compare
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.
Remove
T_abs with (Path = T_sub)and addT_abs & T_subsyntax for type refinement.The new
mechanism is similar to the old
mechanism and also to the include mechanism
The main difference is that, instead of using a path to target a specific substructure or requiring that no declarations overlap, an intersection,
T_int, of the nested declarations ofT_absandT_sub, is computed.Then it is checked whether
T_abs :> T_intand if so a substitution,𝛿, is obtained. Finally the nested declarations of𝛿(T_abs)andT_subare merged.Also, in
T1 & T2bothT1andT2are elaborated in the same environment whereas in{...T1; ...T2}the environment forT2includes declarations fromT1and inT1 with (P = T2)the pathPis specific toT1.When defined,
T1 & T2is always a subtype of bothT1andT2