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: =, , <, and functionality for norm_num #1568

Closed
wants to merge 32 commits into from

Conversation

thorimur
Copy link
Collaborator

@thorimur thorimur commented Jan 14, 2023

This PR gives norm_num basic inequality (and equality) functionality (towards #1567), including the following:

example {α} [DivisionRing α] [CharZero α] : (-1:α) ≠ 2 := by norm_num

We implement basic logical extensions to handle = and together, namely ¬, True, and False. is not given an extension, as it is handled by = and ¬.

For now we only can prove for numbers given a CharZero α instance.

@thorimur thorimur added WIP Work in progress t-meta Tactics, attributes or user commands labels Jan 14, 2023
@thorimur thorimur linked an issue Jan 14, 2023 that may be closed by this pull request
@semorrison semorrison added blocked-by-other-PR This PR depends on another PR to Mathlib and removed blocked-by-other-PR This PR depends on another PR to Mathlib labels Jan 17, 2023
@semorrison
Copy link
Contributor

This PR/issue depends on:

@semorrison semorrison added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Jan 17, 2023
@semorrison semorrison removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Jan 17, 2023
@thorimur thorimur changed the title feat: functionality for norm_num feat: =, , <, and functionality for norm_num Jan 18, 2023
@hrmacbeth hrmacbeth linked an issue Jan 19, 2023 that may be closed by this pull request
@thorimur thorimur added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Jan 20, 2023
test/norm_num.lean Show resolved Hide resolved
test/norm_num.lean Show resolved Hide resolved
test/norm_num.lean Show resolved Hide resolved
test/norm_num.lean Show resolved Hide resolved
@digama0
Copy link
Member

digama0 commented Jan 22, 2023

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Jan 22, 2023
bors bot pushed a commit that referenced this pull request Jan 22, 2023
This PR gives `norm_num` basic inequality (and equality) functionality (towards #1567), including the following:
```
example {α} [DivisionRing α] [CharZero α] : (-1:α) ≠ 2 := by norm_num
```
We implement basic logical extensions to handle `=` and `≠` together, namely `¬`, `True`, and `False`. `≠` is not given an extension, as it is handled by `=` and `¬`.

For now we only can prove `≠` for numbers given a `CharZero α` instance.

- [x] depends on: #1578 

Co-authored-by: Mario Carneiro <di.gama@gmail.com>
@bors
Copy link

bors bot commented Jan 22, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: =, , <, and functionality for norm_num [Merged by Bors] - feat: =, , <, and functionality for norm_num Jan 22, 2023
@bors bors bot closed this Jan 22, 2023
@bors bors bot deleted the norm_num-neq branch January 22, 2023 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors. t-meta Tactics, attributes or user commands
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Inequality functionality for norm_num
4 participants