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(algebra/ordered_ring): abs_cases lemma #8124

Closed
wants to merge 2 commits into from

Conversation

AlexKontorovich
Copy link
Collaborator

This lemma makes the following type of argument work seamlessly:

example (h : x<-1/2) : |x + 1| < |x| := by cases abs_cases (x + 1); cases abs_cases x; linarith

Open in Gitpod

@AlexKontorovich AlexKontorovich added the awaiting-review The author would like community review of the PR label Jun 29, 2021
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

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 Jun 30, 2021
bors bot pushed a commit that referenced this pull request Jun 30, 2021
This lemma makes the following type of argument work seamlessly:

```lean
example (h : x<-1/2) : |x + 1| < |x| := by cases abs_cases (x + 1); cases abs_cases x; linarith
```
@bors
Copy link

bors bot commented Jun 30, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/ordered_ring): abs_cases lemma [Merged by Bors] - feat(algebra/ordered_ring): abs_cases lemma Jun 30, 2021
@bors bors bot closed this Jun 30, 2021
@bors bors bot deleted the abs_cases branch June 30, 2021 13:51
b-mehta pushed a commit that referenced this pull request Jul 6, 2021
This lemma makes the following type of argument work seamlessly:

```lean
example (h : x<-1/2) : |x + 1| < |x| := by cases abs_cases (x + 1); cases abs_cases x; linarith
```
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
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