Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat(tactic/by_contra): add by_contra' tactic #9619

Closed
wants to merge 13 commits into from

Conversation

jcommelin
Copy link
Member


Open in Gitpod

@jcommelin jcommelin added awaiting-review The author would like community review of the PR t-meta Tactics, attributes or user commands labels Oct 8, 2021
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
src/tactic/by_contra.lean Outdated Show resolved Hide resolved
src/tactic/by_contra.lean Outdated Show resolved Hide resolved
src/tactic/by_contra.lean Outdated Show resolved Hide resolved
src/tactic/by_contra.lean Outdated Show resolved Hide resolved
@robertylewis robertylewis added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Oct 12, 2021
src/tactic/by_contra.lean Outdated Show resolved Hide resolved
Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
src/tactic/by_contra.lean Outdated Show resolved Hide resolved
@jcommelin jcommelin added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Oct 12, 2021
Copy link
Member

@robertylewis robertylewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reflecting for a second, it seems a little strange that only push_neg is being used to show equivalence in the h : t case. Why not a full simp? push_neg seems right in the case where t is omitted but too restrictive here. @digama0 was there a reason I'm overlooking?

You could even take a finishing tactic as an optional argument, although this is probably overkill.

src/tactic/by_contra.lean Show resolved Hide resolved
src/tactic/by_contra.lean Show resolved Hide resolved
@robertylewis robertylewis added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Oct 12, 2021
@digama0
Copy link
Member

digama0 commented Oct 12, 2021

@robertylewis I just implemented the tactic as specified by Johan. Maybe simp is better, although this will complicate the input since you will want a place to put the simp lemmas. Are all push_neg lemmas also simp lemmas?

Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
@robertylewis
Copy link
Member

Hmm, my guess about how push_neg is implemented was wrong, I figured it used a simp set. What it does now is better. If there are actual use cases using push_neg I don't think it's worth the effort to make up the difference -- this doesn't seem like a commonly used feature either way.

@jcommelin jcommelin removed the awaiting-author A reviewer has asked the author a question or requested changes label Oct 13, 2021
@jcommelin jcommelin added the awaiting-review The author would like community review of the PR label Oct 13, 2021
Copy link
Member

@robertylewis robertylewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors d+

src/tactic/by_contra.lean Outdated Show resolved Hide resolved
@bors
Copy link

bors bot commented Oct 14, 2021

✌️ jcommelin can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Oct 14, 2021
Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
@jcommelin
Copy link
Member Author

Thanks 🎉

bors merge

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Oct 15, 2021
bors bot pushed a commit that referenced this pull request Oct 15, 2021
@bors
Copy link

bors bot commented Oct 15, 2021

Build failed:

@jcommelin
Copy link
Member Author

Thanks 🎉

bors merge

bors bot pushed a commit that referenced this pull request Oct 15, 2021
@bors
Copy link

bors bot commented Oct 15, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(tactic/by_contra): add by_contra' tactic [Merged by Bors] - feat(tactic/by_contra): add by_contra' tactic Oct 15, 2021
@bors bors bot closed this Oct 15, 2021
@bors bors bot deleted the by-contra branch October 15, 2021 08:33
@eric-wieser eric-wieser added the hacktoberfest-accepted Without this label hacktoberfest is scared off by bors label Oct 26, 2021
@digama0 digama0 added the modifies-tactic-syntax This PR adds a new interactive tactic or modifies the syntax of an existing tactic. label Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. hacktoberfest-accepted Without this label hacktoberfest is scared off by bors modifies-tactic-syntax This PR adds a new interactive tactic or modifies the syntax of an existing tactic. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-meta Tactics, attributes or user commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants