Skip to content

new solver: write canonicalization chapter #1595

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

Merged
merged 7 commits into from
Feb 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
whatever
  • Loading branch information
lcnr committed Feb 14, 2023
commit 4d2e7e1bff7b60734f75c886af8fa19b079c0524
2 changes: 1 addition & 1 deletion src/solve/canonicalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ TODO: link to code once the PR lands and elaborate
considering universes
- generic parameters in the input get treated as placeholders in the root universe
- all regions in the input get all mapped to existentially bound vars and we "uniquify" them.
`T: Trait<'a, 'a>` gets canonicalized to `exists<'0, '1> T: Trait<'0, '1>`. We do not care
`&'a (): Trait<'a>` gets canonicalized to `exists<'0, '1> &'0 (): Trait<'1>`. We do not care
about their universes and simply put all regions into the highest universe of the input.
- once we collected all canonical vars we compress their universes, see comment in `finalize`.
- in the output everything in a universe of the caller gets put into the root universe and only
Expand Down