-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
.yesWithDeltaI
behavior (#3816)
It should not increase the transparency level from `reducible` to `instances`. See new test.
- Loading branch information
1 parent
0ba2126
commit 4a317ae
Showing
4 changed files
with
30 additions
and
4 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,19 @@ | ||
structure Foo where | ||
x : Nat | ||
y : Nat := 10 | ||
|
||
@[instance] | ||
def f (x : Nat) : Foo := | ||
{ x := x + x } | ||
|
||
@[instance] | ||
def g (x : Nat) : Foo := | ||
{ x := x + x } | ||
|
||
opaque q : Nat → Prop | ||
|
||
example (h : q (f x).1) : q (g x).1 := by | ||
-- Projections must not bump transparency setting from `reducible` to `instances` | ||
-- Thus, the following tactic must fail | ||
fail_if_success simp [h] | ||
assumption |