-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tentative, hacky fix for shadowing issue
- Loading branch information
1 parent
fbde368
commit 80f0222
Showing
2 changed files
with
61 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Qpf.Macro.Data | ||
|
||
/-! | ||
## Test for induction principle generation | ||
-/ | ||
|
||
namespace Test | ||
|
||
data QpfList α | ||
| nil | ||
| cons : α → QpfList α → QpfList α | ||
|
||
/-- info: 'Test.QpfList.ind' depends on axioms: [Quot.sound, propext] -/ | ||
#guard_msgs in #print axioms QpfList.ind | ||
|
||
-- The following test might be a bit brittle. | ||
-- Feel free to remove if it gives too many false positives | ||
/-- | ||
info: Test.QpfList.ind {α : Type} {motive : QpfList α → Prop} (nil : motive QpfList.nil) | ||
(cons : ∀ (x : α) (x_1 : QpfList α), motive x_1 → motive (QpfList.cons x x_1)) (val✝ : QpfList α) : motive val✝ | ||
-/ | ||
#guard_msgs in #check QpfList.ind | ||
|
||
end Test |