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] - refactor(order/bounded_lattice): generalize le on with_{top,bot} #10085

Closed
wants to merge 2 commits into from

Conversation

pechersky
Copy link
Collaborator

Before, some lemmas assumed preorder even when they were true for
just the underlying le. In the case of with_bot, the missing
underlying has_le instance is defined.
For both with_{top,bot}, a few lemmas are generalized accordingly.


Open in Gitpod

Before, some lemmas assumed `preorder` even when they were true for
just the underlying `le`. In the case of `with_bot`, the missing
underlying `has_le` instance is defined.
For both `with_{top,bot}`, a few lemmas are generalized accordingly.
@pechersky pechersky added the awaiting-review The author would like community review of the PR label Nov 1, 2021
@pechersky pechersky requested a review from urkud November 1, 2021 07:17
@@ -336,7 +336,7 @@ begin
end

lemma one_le_iff_pos {n : with_top ℕ} : 1 ≤ n ↔ 0 < n :=
λ h, (coe_lt_coe.2 zero_lt_one).trans_le h,
lt_of_lt_of_le (coe_lt_coe.mpr zero_lt_one),
Copy link
Member

Choose a reason for hiding this comment

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

Is this just a style change, or did something actually change here?

Copy link
Member

Choose a reason for hiding this comment

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

Huh, somehow the elaborator now gets stuck. Weird.

@eric-wieser
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 2, 2021
bors bot pushed a commit that referenced this pull request Nov 2, 2021
)

Before, some lemmas assumed `preorder` even when they were true for
just the underlying `le`. In the case of `with_bot`, the missing
underlying `has_le` instance is defined.
For both `with_{top,bot}`, a few lemmas are generalized accordingly.
@bors
Copy link

bors bot commented Nov 2, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(order/bounded_lattice): generalize le on with_{top,bot} [Merged by Bors] - refactor(order/bounded_lattice): generalize le on with_{top,bot} Nov 2, 2021
@bors bors bot closed this Nov 2, 2021
@bors bors bot deleted the pechersky/with-top-bot-le branch November 2, 2021 12:07
ericrbg pushed a commit that referenced this pull request Nov 9, 2021
)

Before, some lemmas assumed `preorder` even when they were true for
just the underlying `le`. In the case of `with_bot`, the missing
underlying `has_le` instance is defined.
For both `with_{top,bot}`, a few lemmas are generalized accordingly.
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