Skip to content

[Merged by Bors] - feat: =, ≠, <, and ≤ functionality for norm_num - #1568

Closed
thorimur wants to merge 32 commits into
masterfrom
norm_num-neq
Closed

thorimur wants to merge 32 commits into
masterfrom
norm_num-neq

Conversation

@thorimur

@thorimur thorimur commented Jan 14, 2023 •

Copy link
Copy Markdown
Contributor

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
@kim-em kim-em added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) and removed blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) labels Jan 17, 2023
@kim-em

kim-em commented Jan 17, 2023

Copy link
Copy Markdown
Contributor

This PR/issue depends on:

@kim-em kim-em added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 17, 2023
@kim-em kim-em removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) 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
Comment thread test/norm_num.lean Resolved
Comment thread test/norm_num.lean Resolved
Comment thread test/norm_num.lean Resolved
Comment thread test/norm_num.lean Resolved
@digama0

digama0 commented Jan 22, 2023

Copy link
Copy Markdown
Member

bors merge

@github-actions github-actions Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review 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 <[email protected]>
@bors

bors Bot commented Jan 22, 2023

Copy link
Copy Markdown

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