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(order/monotone): add lemmas about cmp #14689

Closed
wants to merge 2 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Jun 12, 2022

Also replace order_dual.cmp_le_flip with lemmas about to_dual and of_dual.


Open in Gitpod

@urkud urkud added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels Jun 12, 2022
@@ -543,9 +543,10 @@ theorem dual_insert [preorder α] [is_total α (≤)] [@decidable_rel α (≤)]
∀ t : ordnode α, dual (ordnode.insert x t) = @ordnode.insert αᵒᵈ _ _ x (dual t)
| nil := rfl
| (node _ l y r) := begin
rw [ordnode.insert, dual, ordnode.insert, order_dual.cmp_le_flip, ← cmp_le_swap x y],
have : @cmp_le αᵒᵈ _ _ x y = cmp_le y x := rfl,
rw [ordnode.insert, dual, ordnode.insert, this, ← cmp_le_swap x y],
Copy link
Member Author

Choose a reason for hiding this comment

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

IMHO, we should use order_dual in definitions and lemmas about ordnode.dual but I don't want to do this refactor myself (also, I don't want to to any refactor there without Mario's approval).

@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Jun 12, 2022
@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 Jun 14, 2022
bors bot pushed a commit that referenced this pull request Jun 14, 2022
Also replace `order_dual.cmp_le_flip` with lemmas about `to_dual` and `of_dual`.
@bors
Copy link

bors bot commented Jun 14, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(order/monotone): add lemmas about cmp [Merged by Bors] - feat(order/monotone): add lemmas about cmp Jun 14, 2022
@bors bors bot closed this Jun 14, 2022
@bors bors bot deleted the YK-ord-cmp branch June 14, 2022 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants