-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: display diagnostic information at term and tactic `set_option d…
…iagnostics true` (#4048) We don't need to include reduction info at `simp` diagnostic information.
- Loading branch information
1 parent
5f72769
commit 5f1c4df
Showing
14 changed files
with
103 additions
and
37 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
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
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
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,53 @@ | ||
opaque q : Nat → Nat | ||
def f (x : Nat) : Nat := | ||
match x with | ||
| 0 => 1 | ||
| x+1 => q (f x) | ||
|
||
theorem f_eq : f (x + 1) = q (f x) := rfl | ||
|
||
set_option trace.Meta.debug true | ||
|
||
/-- | ||
info: [reduction] unfolded declarations (max: 15, num: 6): | ||
Nat.rec ↦ 15 | ||
⏎ | ||
Add.add ↦ 10 | ||
⏎ | ||
HAdd.hAdd ↦ 10 | ||
⏎ | ||
Nat.add ↦ 10 | ||
⏎ | ||
f ↦ 5 | ||
⏎ | ||
OfNat.ofNat ↦ 5[reduction] unfolded instances (max: 5, num: 1): | ||
instOfNatNat ↦ 5[reduction] unfolded reducible declarations (max: 15, num: 1): | ||
Nat.casesOn ↦ 15use `set_option diagnostics.threshold <num>` to control threshold for reporting counters | ||
-/ | ||
#guard_msgs in | ||
example : f (x + 5) = q (q (q (q (q (f x))))) := | ||
set_option diagnostics.threshold 4 in | ||
set_option diagnostics true in | ||
rfl | ||
|
||
/-- | ||
info: [reduction] unfolded declarations (max: 15, num: 6): | ||
Nat.rec ↦ 15 | ||
⏎ | ||
Add.add ↦ 10 | ||
⏎ | ||
HAdd.hAdd ↦ 10 | ||
⏎ | ||
Nat.add ↦ 10 | ||
⏎ | ||
f ↦ 5 | ||
⏎ | ||
OfNat.ofNat ↦ 5[reduction] unfolded instances (max: 5, num: 1): | ||
instOfNatNat ↦ 5[reduction] unfolded reducible declarations (max: 15, num: 1): | ||
Nat.casesOn ↦ 15use `set_option diagnostics.threshold <num>` to control threshold for reporting counters | ||
-/ | ||
#guard_msgs in | ||
example : f (x + 5) = q (q (q (q (q (f x))))) := by | ||
set_option diagnostics.threshold 4 in | ||
set_option diagnostics true in | ||
rfl |
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