-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It now relies on `binop%` too, and addresses issue reported at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Regression.20in.20coercion.20inference/near/281737387
- Loading branch information
1 parent
1768067
commit 7ce0471
Showing
6 changed files
with
157 additions
and
144 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,11 @@ | ||
theorem ex1 (a : Int) (b c : Nat) : a = ↑b - ↑c := sorry | ||
|
||
#check ex1 | ||
|
||
theorem ex2 (a : Int) (b c : Nat) : a = b - c := sorry | ||
|
||
#check ex2 | ||
|
||
theorem ex3 (a : Int) (b c : Nat) : a = ↑(b - c) := sorry | ||
|
||
#check ex3 |
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,6 @@ | ||
binrel_binop.lean:1:51-1:56: warning: declaration uses 'sorry' | ||
ex1 : ∀ (a : Int) (b c : Nat), a = Int.ofNat b - Int.ofNat c | ||
binrel_binop.lean:5:49-5:54: warning: declaration uses 'sorry' | ||
ex2 : ∀ (a : Int) (b c : Nat), a = Int.ofNat b - Int.ofNat c | ||
binrel_binop.lean:9:52-9:57: warning: declaration uses 'sorry' | ||
ex3 : ∀ (a : Int) (b c : Nat), a = Int.ofNat (b - c) |
Oops, something went wrong.