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

Fixing walks_and_trees branch #9983

Merged
merged 4 commits into from
Oct 26, 2021
Merged

Conversation

arthurpaulino
Copy link
Collaborator

  • Fixed sym typos
  • Renamed multiset.singleton_eq_singleton to multiset.singleton_eq_cons
  • Fixed some proofs Lean wasn't accepting
  • Removed duplicated lemma is_rotated_append (already enunciated and proved in data.list)

{ simp only [multiset.singleton_eq_singleton, multiset.count_eq_zero, multiset.mem_singleton],
exact ne.symm hne, },
{ simp only [multiset.singleton_eq_cons, multiset.count_eq_zero, multiset.mem_singleton],
simp, exact ne.symm hne, },
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should try to avoid non-terminal simps. You can likely switch this proof to end in simpa using ne.symm hne. Likely you can even make the whole proof simpa [multiset.singleton_eq_singleton, multiset.count_eq_zero, multiset.mem_singleton] using ne.symm hne.

@arthurpaulino
Copy link
Collaborator Author

@arthurpaulino arthurpaulino merged commit e0976a5 into walks_and_trees Oct 26, 2021
@bors bors bot deleted the walks_and_trees_fork branch October 26, 2021 16:52
nat.succ_eq_add_one, this, set.mem_Union, nat.nat_zero_eq_zero, finset.coe_bUnion,
finset.mem_univ, set.Union_true, list.nodup_nil, set.mem_set_of_eq, exists_imp_distrib,
iff_false, finset.mem_coe, false_and
],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mathlib doesn't seem to ever put the simp lemmas on their own line like this. If you could rewrap the lines so it's in the following form, I'd appreciate it:

simp! only [...............................
  .........................................
  .........................................]

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

3 participants