-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail if nonterminal Aesop made no progress
fixes #85
- Loading branch information
Showing
5 changed files
with
79 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/- | ||
Copyright (c) 2023 Jannis Limperg. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Jannis Limperg | ||
-/ | ||
|
||
import Aesop | ||
|
||
set_option aesop.check.all true | ||
|
||
def T := True | ||
|
||
example : T := by | ||
aesop | ||
|
||
@[aesop norm simp] | ||
def F := False | ||
|
||
example : F := by | ||
aesop | ||
|
||
def F' := False | ||
|
||
@[aesop safe apply] | ||
theorem F'_def : False → F' := id | ||
|
||
example : F' := by | ||
aesop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests/NoProgress.lean:14:2: error: tactic 'aesop' failed, made no progress | ||
⊢ T | ||
tests/NoProgress.lean:20:2: warning: aesop: failed to prove the goal after exhaustive search. | ||
tests/NoProgress.lean:19:15: error: unsolved goals | ||
⊢ False | ||
tests/NoProgress.lean:28:2: warning: aesop: failed to prove the goal after exhaustive search. | ||
tests/NoProgress.lean:27:16: error: unsolved goals | ||
⊢ False |