Skip to content
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

better overloading inference #665

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

better overloading inference #665

wants to merge 1 commit into from

Conversation

strub
Copy link
Member

@strub strub commented Dec 5, 2024

This draft PR is about using more type information to resolve the overloading of operators. Currently, the following is now accepted:

require import AllCore List.

theory T.
  op o : int.
  op a : int -> int -> int.
end T.

theory U.
  op o : bool.
  op a : bool -> bool -> bool.
end U.

import T U.

op foo : int -> unit.

op bar = foo o.

op plop1 = foldr a false [].

op plop2 = foldr (fun x => a x) false [].

op plop3 = foldr (fun x y => a x y) false [].

@strub
Copy link
Member Author

strub commented Dec 5, 2024

Relates to #630

@strub strub force-pushed the better-ty-checking branch from a58a703 to 61ce35e Compare December 5, 2024 18:13
@strub strub self-assigned this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant