Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(library/init/meta/interactive): give
sorry
tactic ignored itac…
…tic block (#689) This supports being able to "comment out" parts of a tactic proof, which is useful during proof development when there are slow subproofs. For example, to skip over the first subproof: ``` example (p : Prop) : p ↔ p := begin split, sorry { intro h, assumption, }, { intro h, assumption, }, end ```
- Loading branch information
Showing
4 changed files
with
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
example (p : Prop) : p ↔ p := | ||
begin | ||
split, | ||
sorry { intro h, assumption, }, | ||
{ intro h, assumption, }, | ||
end | ||
|
||
example (p : Prop) : p ↔ p := | ||
begin | ||
split, | ||
sorry, | ||
{ intro h, assumption, }, | ||
end | ||
|
||
-- Make sure other ways to comment out blocks still work: | ||
|
||
example (p : Prop) : p ↔ p := | ||
begin | ||
split, | ||
sorry; { intro h, assumption, }, | ||
{ intro h, assumption, }, | ||
end | ||
|
||
example (p : Prop) : p ↔ p := | ||
begin | ||
split, | ||
sorry <|> { intro h, assumption, }, | ||
{ intro h, assumption, }, | ||
end |
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,4 @@ | ||
sorry_itactic.lean:1:0: warning: declaration '[anonymous]' uses sorry | ||
sorry_itactic.lean:8:0: warning: declaration '[anonymous]' uses sorry | ||
sorry_itactic.lean:17:0: warning: declaration '[anonymous]' uses sorry | ||
sorry_itactic.lean:24:0: warning: declaration '[anonymous]' uses sorry |