-
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.
closes #2916 Remark: this PR also renames `Expr.natLit?` ==> `Expr.rawNatLit?`. Motivation: consistent naming convention: `Expr.isRawNatLit`.
- Loading branch information
1 parent
46cc00d
commit 5302b78
Showing
6 changed files
with
115 additions
and
20 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,77 @@ | ||
set_option pp.coercions false -- Show `OfNat.ofNat` when present for clarity | ||
|
||
/-- | ||
warning: declaration uses 'sorry' | ||
--- | ||
info: x : Nat | ||
⊢ OfNat.ofNat 2 = x | ||
-/ | ||
#guard_msgs in | ||
example : nat_lit 2 = x := by | ||
simp only | ||
trace_state | ||
sorry | ||
|
||
/-- | ||
warning: declaration uses 'sorry' | ||
--- | ||
info: x : Nat | ||
⊢ OfNat.ofNat 2 = x | ||
-/ | ||
#guard_msgs in | ||
example : nat_lit 2 = x := by | ||
dsimp only -- dsimp made no progress | ||
trace_state | ||
sorry | ||
|
||
/-- | ||
warning: declaration uses 'sorry' | ||
--- | ||
info: α : Nat → Type | ||
f : (n : Nat) → α n | ||
x : α (OfNat.ofNat 2) | ||
⊢ f (OfNat.ofNat 2) = x | ||
-/ | ||
#guard_msgs in | ||
example (α : Nat → Type) (f : (n : Nat) → α n) (x : α 2) : f (nat_lit 2) = x := by | ||
simp only | ||
trace_state | ||
sorry | ||
|
||
/-- | ||
info: x : Nat | ||
f : Nat → Nat | ||
h : f (OfNat.ofNat 2) = x | ||
⊢ f (OfNat.ofNat 2) = x | ||
--- | ||
info: x : Nat | ||
f : Nat → Nat | ||
h : f (OfNat.ofNat 2) = x | ||
⊢ f 2 = x | ||
-/ | ||
#guard_msgs in | ||
example (f : Nat → Nat) (h : f 2 = x) : f 2 = x := by | ||
trace_state | ||
simp [OfNat.ofNat] | ||
trace_state | ||
assumption | ||
|
||
/-- | ||
warning: declaration uses 'sorry' | ||
--- | ||
info: α : Nat → Type | ||
f : (n : Nat) → α n | ||
x : α (OfNat.ofNat 2) | ||
⊢ f (OfNat.ofNat 2) = x | ||
--- | ||
info: α : Nat → Type | ||
f : (n : Nat) → α n | ||
x : α (OfNat.ofNat 2) | ||
⊢ f 2 = x | ||
-/ | ||
#guard_msgs in | ||
example (α : Nat → Type) (f : (n : Nat) → α n) (x : α 2) : f 2 = x := by | ||
trace_state | ||
simp [OfNat.ofNat] | ||
trace_state | ||
sorry |
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