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/min_max): min_cases and max_cases lemmata #9632

Closed
wants to merge 1 commit into from

Conversation

AlexKontorovich
Copy link
Collaborator

These lemmata make the following type of argument work seamlessly:

example (h1 : 0 ≤ x) (h2 : x ≤ 1) : min 1 x ≤ max x 0 := by cases min_cases 1 x; cases max_cases x 0; linarith

See similar PR #8124


Open in Gitpod

@AlexKontorovich AlexKontorovich added awaiting-review The author would like community review of the PR easy < 20s of review time. See the lifecycle page for guidelines. labels Oct 8, 2021
@jcommelin
Copy link
Member

Thanks 🎉

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 Oct 9, 2021
bors bot pushed a commit that referenced this pull request Oct 9, 2021
These lemmata make the following type of argument work seamlessly:

```lean
example (h1 : 0 ≤ x) (h2 : x ≤ 1) : min 1 x ≤ max x 0 := by cases min_cases 1 x; cases max_cases x 0; linarith
```

See similar PR #8124
@bors
Copy link

bors bot commented Oct 9, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(order/min_max): min_cases and max_cases lemmata [Merged by Bors] - feat(order/min_max): min_cases and max_cases lemmata Oct 9, 2021
@bors bors bot closed this Oct 9, 2021
@bors bors bot deleted the minmaxcases branch October 9, 2021 09:53
@eric-wieser eric-wieser added the hacktoberfest-accepted Without this label hacktoberfest is scared off by bors label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy < 20s of review time. See the lifecycle page for guidelines. hacktoberfest-accepted Without this label hacktoberfest is scared off by bors 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

3 participants