Replies: 1 comment 1 reply
-
|
Hi, The DM4Free feature comes with various limitations. In particular, the representation of the effect cannot use refinement types. Your definition of STATE_h is parameterized by the type of the state and so does not violate the no-refinements constraints. But, when you instantiate it with You can still do this though: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I have a question about an Error I encountered while trying to create a new effect.
Since I wanted to be able to do some extrinsic proofs (i.e. write a Lemma) and not only rely on intrinsic ones, I decided to use the DM effects, as I figured
reifydoes not work well at the time for LayeredEffects?Anyway, I wanted to use the example of the STATE_h Effect and embedded my own state type.
As I tried to compile, I got the error message:
(Error 172) Tm_refine is outside of the definition language: ..., which I can not make sense of.The state type I want to use is a refinement type (if that causes the problem).
I got the same error when using
natas state type as opposed toint(see below):I would appreciate if anybody could tell me what this error is all about.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions