Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

definitions: missing check and AssertionError #44

Open
erniecohen opened this issue Oct 18, 2019 · 0 comments
Open

definitions: missing check and AssertionError #44

erniecohen opened this issue Oct 18, 2019 · 0 comments

Comments

@erniecohen
Copy link

The manual says that definitions are equivalent to axioms. However, the following verifies, and when the definition is changed to an axiom, it gets a syntax error for assigning to a function used in an axiom:

function f(T:bool) : bool definition f(T:bool) = T after init { f(T) := false; }
I assume that definitions should give the same error.

Moreover, if you add an assertion at the end of the initializer above, ivy_check gets an AssertionError.

kenmcmil added a commit that referenced this issue Oct 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant