This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(library/init/meta/injection_tactic): fixes #1805
- Loading branch information
1 parent
0dc9d1b
commit 8a10d4c
Showing
4 changed files
with
42 additions
and
12 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,20 @@ | ||
example (x y z x' y' z': ℕ) (h : (x, y, z) = (x', y', z')) : false := | ||
begin | ||
injection h, | ||
guard_hyp h_1 := x = x', | ||
guard_hyp h_2 := (y, z) = (y', z'), | ||
injection h_2, | ||
guard_hyp h_3 := y = y', | ||
guard_hyp h_4 := z = z', | ||
admit | ||
end | ||
|
||
example (x y z x' y' z': ℕ) (h : (x, y, z) = (x', y', z')) : false := | ||
begin | ||
injections, | ||
guard_hyp h_1 := x = x', | ||
guard_hyp h_2 := (y, z) = (y', z'), | ||
guard_hyp h_3 := y = y', | ||
guard_hyp h_4 := z = z', | ||
admit | ||
end |