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

Generating triples and unconditional form for a DM4F effect #758

Open
kyoDralliam opened this issue Nov 5, 2016 · 0 comments
Open

Generating triples and unconditional form for a DM4F effect #758

kyoDralliam opened this issue Nov 5, 2016 · 0 comments

Comments

@kyoDralliam
Copy link
Contributor

It would not be really difficult to have FStar generate for each DM4F effect MYEFFECT an effect

effect MyEffectTriple (a:Type) (pre: MYEFFECT.pre) (post: MYEFFECT.post a) =
  MYEFFECT a (fun x1 .. xn p -> pre x1 ... xn /\
            (forall y1 .. ym . pre x1 ... xn /\ post y1 ... ym ==> p y1 ... ym))

as well as

effect MyEffectNull (a:Type) =
  MYEFFECT a MYEFFECT.null_wp

The main "technical problem" to solve is how we give access to them after generation. Should we declare
new effects MYEFFECTTRIPLE and MYEFFECTNULL, or should we access them through MYEFFECT.Null/MYEFFECT.Triple (one caveat of this last approach is that MYEFFECT is not a namespace...)

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

No branches or pull requests

2 participants