Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - chore(data/real/basic): cleanup#8501

Closed
urkud wants to merge 2 commits into
masterfrom
real-ex-Sup
Closed

[Merged by Bors] - chore(data/real/basic): cleanup#8501
urkud wants to merge 2 commits into
masterfrom
real-ex-Sup

Conversation

@urkud
Copy link
Copy Markdown
Member

@urkud urkud commented Aug 1, 2021

  • use is_lub etc in the statement of real.exists_sup, rename it to real.exists_is_lub;
  • move parts of the proof of real.exists_is_lub around;

Open in Gitpod

@urkud urkud added the awaiting-review The author would like community review of the PR label Aug 1, 2021
Comment thread src/data/real/basic.lean
end

noncomputable instance : has_Sup ℝ :=
⟨λ S, if h : (∃ x, x ∈ S) ∧ (∃ x, ∀ y ∈ S, y ≤ x)
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser Aug 1, 2021

Choose a reason for hiding this comment

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

Is it worth replacing this (and below) with the named props too?

Suggested change
⟨λ S, if h : (∃ x, x ∈ S)(∃ x, ∀ y ∈ S, y ≤ x)
⟨λ S, if h : S.nonemptybdd_above S

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm going to generalize this constructor, so these lines will go away soon.

@PatrickMassot
Copy link
Copy Markdown
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 Aug 2, 2021
bors Bot pushed a commit that referenced this pull request Aug 2, 2021
* use `is_lub` etc in the statement of `real.exists_sup`, rename it to `real.exists_is_lub`;
* move parts of the proof of `real.exists_is_lub` around;
@bors
Copy link
Copy Markdown

bors Bot commented Aug 2, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title chore(data/real/basic): cleanup [Merged by Bors] - chore(data/real/basic): cleanup Aug 2, 2021
@bors bors Bot closed this Aug 2, 2021
@bors bors Bot deleted the real-ex-Sup branch August 2, 2021 12:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

3 participants