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

try to eliminate datatype acost #2

Open
maxhaslbeck opened this issue May 11, 2020 · 0 comments
Open

try to eliminate datatype acost #2

maxhaslbeck opened this issue May 11, 2020 · 0 comments

Comments

@maxhaslbeck
Copy link
Collaborator

Type ('a, 'b) acost is introduced ...

datatype ('a, 'b) acost = acostC (the_acost: "'a \<Rightarrow> 'b")

... to wrap functions in order to enable type class lifting of addition for functions in monoid_add ...

instantiation acost :: (type, monoid_add) monoid_add

... to not clash with the lifting addition for functions in sep_algebra.

By defining a type class capturing resources which are always disjoint (i.e. x ## y := True), sep_algebra's addition definition can be reused without a clash.
That means monoid_add + "resource algebra" might be sublocale of separation_algebra?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant