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/mk_iff_of_inductive_prop): mk_iff attribute #4863

Closed
wants to merge 5 commits into from

Conversation

bryangingechen
Copy link
Collaborator

This attribute should make mk_iff_of_inductive_prop easier to use.


Should mk_iff get some more config options?

Zulip thread.

@bryangingechen bryangingechen added awaiting-review The author would like community review of the PR t-meta Tactics, attributes or user commands labels Nov 1, 2020
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.

Thanks, this is a good idea!

src/tactic/mk_iff_of_inductive_prop.lean Outdated Show resolved Hide resolved
src/tactic/mk_iff_of_inductive_prop.lean Show resolved Hide resolved
src/tactic/mk_iff_of_inductive_prop.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 Nov 1, 2020
Copy link
Collaborator Author

@bryangingechen bryangingechen left a comment

Choose a reason for hiding this comment

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

Thanks for the comments! The last undocumented functions are the ones doing most of the work, so it'd be good to document them now.

Comment on lines +56 to 57
@[nolint doc_blame] -- TODO: document
meta def constr_to_prop (univs : list level) (g : list expr) (idxs : list expr) (c : name) :
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Any docstring suggestions?

Comment on lines +90 to +91
@[nolint doc_blame] -- TODO: document
meta def to_cases (s : list $ list (option expr) × (expr ⊕ ℕ)) : tactic unit :=
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Any docstring suggestions?

Copy link
Member

Choose a reason for hiding this comment

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

These will take some studying to figure out, and I don't think we'll get the original author to chime in. I don't mind leaving it nolinted for now, and doing that studying if and when it's necessary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, fair enough. I'd be OK merging this for now then.

Comment on lines +125 to 128
@[nolint doc_blame] -- TODO: document
meta def to_inductive
(cs : list name) (gs : list expr) (s : list (list (option expr) × (expr ⊕ ℕ))) (h : expr) :
tactic unit :=
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Any docstring suggestions?

@bryangingechen bryangingechen added awaiting-review The author would like community review of the PR help-wanted The author needs attention to resolve issues and removed awaiting-author A reviewer has asked the author a question or requested changes labels Nov 1, 2020
@robertylewis
Copy link
Member

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Nov 3, 2020
bors bot pushed a commit that referenced this pull request Nov 3, 2020
This attribute should make `mk_iff_of_inductive_prop` easier to use.
@bors
Copy link

bors bot commented Nov 3, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(tactic/mk_iff_of_inductive_prop): mk_iff attribute [Merged by Bors] - feat(tactic/mk_iff_of_inductive_prop): mk_iff attribute Nov 3, 2020
@bors bors bot closed this Nov 3, 2020
@bors bors bot deleted the mk_iff_attr branch November 3, 2020 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted The author needs attention to resolve issues 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

3 participants