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

chore: remove nonterminal simps in UnionFind #868

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
missed one
  • Loading branch information
kim-em committed Jul 1, 2024

Verified

This commit was signed with the committer’s verified signature.
paveloom Pavel Sobolev
commit eb5e34f69c81a51cc9343c5d9bddc3706c01418f
2 changes: 1 addition & 1 deletion Batteries/Data/UnionFind/Basic.lean
Original file line number Diff line number Diff line change
@@ -216,7 +216,7 @@ theorem parent_rootD (self : UnionFind) (x : Nat) :

@[nolint unusedHavesSuffices]
theorem rootD_parent (self : UnionFind) (x : Nat) : self.rootD (self.parent x) = self.rootD x := by
simp [rootD, parent_lt]
simp only [rootD, Array.data_length, parent_lt]
split
· simp only [parentD, ↓reduceDIte, *]
(conv => rhs; rw [root]); split