-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pretty print
Array DiscrTree.Key
(#4208)
- Loading branch information
1 parent
ee0bcc8
commit 4d2ff6f
Showing
4 changed files
with
69 additions
and
29 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,21 @@ | ||
namespace Ex1 | ||
opaque f : Nat → Nat → Nat | ||
|
||
@[simp] theorem foo : f x (x, y).2 = y := by sorry | ||
|
||
example : f a b ≤ b := by | ||
fail_if_success simp -- should fail | ||
set_option diagnostics true in | ||
simp (config := { index := false }) | ||
|
||
end Ex1 | ||
|
||
namespace Ex2 | ||
opaque f : Nat → Nat → Nat | ||
|
||
@[simp] theorem foo : f x (no_index (x, y).2) = y := by sorry | ||
|
||
example : f a b ≤ b := by | ||
simp -- should work since `foo` is using `no_index` | ||
|
||
end Ex2 |