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

Faster #391

Closed
Closed

Conversation

kckennylau
Copy link
Collaborator

TO CONTRIBUTORS:

Make sure you have:

  • reviewed and applied the coding style: coding, naming
  • for tactics:
  • make sure definitions and lemmas are put in the right files
  • make sure definitions and lemmas are not redundant

For reviewers: code review check list

@cipher1024
Copy link
Collaborator

Can you PR squeeze_simp alone please?

@kckennylau
Copy link
Collaborator Author

How do I do that?

@semorrison
Copy link
Collaborator

semorrison commented Oct 6, 2018 via email

@semorrison
Copy link
Collaborator

semorrison commented Oct 6, 2018 via email

@kckennylau
Copy link
Collaborator Author

#396

@kckennylau kckennylau force-pushed the faster branch 3 times, most recently from f3153d4 to bbf9c08 Compare October 7, 2018 14:20
@kckennylau
Copy link
Collaborator Author

#396 has been merged.

@@ -51,37 +51,39 @@ attribute [to_additive succ_smul] pow_succ
attribute [to_additive add_monoid.one_smul] pow_one

theorem pow_mul_comm' (a : α) (n : ℕ) : a^n * a = a * a^n :=
by induction n with n ih; simp [*, pow_succ, mul_assoc]
nat.rec_on n (by rw [pow_zero, one_mul, mul_one]) $ λ n ih,
by rw [pow_succ, mul_assoc, ih]
Copy link
Member

Choose a reason for hiding this comment

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

Don't use nat.rec_on, break out the original proof onto multiple lines or use the tac; [tac1, tac2] format

@@ -13,6 +13,53 @@ import logic.function order.boolean_algebra

open list subtype nat lattice

run_cmd mk_simp_attr `multiset
Copy link
Member

Choose a reason for hiding this comment

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

Can you do this without adding a new simp set?

@digama0 digama0 force-pushed the faster branch 2 times, most recently from 9842bcd to 18b0e47 Compare October 8, 2018 18:31
@robertylewis
Copy link
Member

@digama0 As I understand it, some of this is merged and some is WIP? Maybe we could close this PR and Kenny can open a new one when there's more to add?

@digama0
Copy link
Member

digama0 commented Nov 5, 2018

I think it's all merged except for multiset.lean, which should be redone without the attribute thing (which requires a seperate PR).

@semorrison
Copy link
Collaborator

@kckennylau, would you mind if this was closed now?

@kckennylau
Copy link
Collaborator Author

Ok.

@semorrison semorrison closed this Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants