-
Notifications
You must be signed in to change notification settings - Fork 297
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
feat(logic): make some decidability proofs [inline] #1393
Conversation
Perhaps we should add a test that demonstrates that inlining is working? It may be hard to do this without generating output, I'm not sure. |
A little bit crazy, but the test could have (in the expression |
Let's not have the standard test suite play with the local file system,
please. :-)
…On Mon, Sep 9, 2019 at 7:48 PM Keeley Hoek ***@***.***> wrote:
A little bit crazy, but the test could have (in the expression a and b) a
just evaluate to true, and b create a file called sadness.txt or
something, and then the test could be decided by whether the file exists at
the end.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1393?email_source=notifications&email_token=AADUWBFZ3GT7DKE3LDZEL7DQIYLWNA5CNFSM4ITI72D2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6G5VRQ#issuecomment-529390278>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADUWBELBVF6LCJI4DTHJBDQIYLWNANCNFSM4ITI72DQ>
.
|
Not to fear, @semorrison, the following line suffices as a test #eval if ff ∧ (@undefined_core bool "uh-oh") then tt else tt It fails without the inlining. |
I mean, I guess we could also just check whether those defns have the But I've pushed a test for |
All of the other logical connectives don't eagerly evaluate (or there is no notion of such), as far as I could see (the only interesting case is |
Travis successfully checked that your test fails without inlining. :) EDIT: Thanks for adding a test, that is useful to have indeed. If Travis succeeds now: I think this PR is good to go. |
…nity#1393) * feat(logic): make some decidability proofs [inline] * inline more decidability proofs * test * import logic.basic in test
See https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/sanity.20check
@digama0: do we need to make more declarations
inline
?For reviewers: code review check list