forked from google-research/dex-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically abstract interfaces required by annotated lambda binders
With this change, we automatically elaborate a type such as ``` (n : Type) ?-> (a : Type) ?-> Table n a -> a ``` into ``` (n : Type) ?-> (a : Type) ?-> Ix n ?=> Table n a -> a ``` (assuming `def Table (n : Type) (_ : Ix n) ?=> (a : Type) : Type = n=>a`) In the near future this should let us start enforcing the index set constraints in a backwards-compatible and non-verbose way, since any type appearing to the left of `=>` will get constrained automatically. This will be convenient for associated types too, because e.g. mentioning `TangentSpace a` in a type will automatically add a constraint `Manifold a` to the type signature.
- Loading branch information
Showing
3 changed files
with
115 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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