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] - chore(*): move to lean-3.11.0 #2632

Closed
wants to merge 13 commits into from
Closed

Conversation

jcommelin
Copy link
Member

@jcommelin jcommelin commented May 8, 2020

@@ -133,7 +133,7 @@ by simpa using @conj_inj z 0

lemma eq_conj_iff_real {z : ℂ} : conj z = z ↔ ∃ r : ℝ, z = r :=
⟨λ h, ⟨z.re, ext rfl $ eq_zero_of_neg_eq (congr_arg im h)⟩,
λ ⟨h, e⟩, e.symm ▸ rfl
λ ⟨h, e⟩, by rw [e, conj_of_real]
Copy link
Member

Choose a reason for hiding this comment

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

Why does the old proof fail here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I made this change and I have no idea...

Copy link
Collaborator

@bryangingechen bryangingechen May 8, 2020

Choose a reason for hiding this comment

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

For what it's worth, the error message was:

/mathlib/src/data/complex/basic.lean:136:18: error: "eliminator" elaborator type mismatch, term
  rfl
has type
  ?m_2 = ?m_2
but is expected to have type
  conj ↑h = ↑h
Additional information:
/mathlib/src/data/complex/basic.lean:136:18: context: the inferred motive for the eliminator-like application is
  λ (_x : ℂ), conj _x = _x

See here for the rest as of ccc9d91

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure why it worked before. It would need to prove (-0 : real) = 0 by rfl, which shouldn't be possible if the reals are irreducible.

@bryangingechen
Copy link
Collaborator

The code changes seem fine to merge to me. I think the PR comment commit message should contain some more info though.

@bryangingechen
Copy link
Collaborator

bors r+

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label May 9, 2020
bors bot pushed a commit that referenced this pull request May 10, 2020
Related Zulip thread: https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/lean.23211.20don't.20unfold.20irred.20defs

Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
@bors
Copy link

bors bot commented May 10, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(*): move to lean-3.11.0 [Merged by Bors] - chore(*): move to lean-3.11.0 May 10, 2020
@bors bors bot closed this May 10, 2020
@bors bors bot deleted the lean-3-11-0 branch May 10, 2020 04:05
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 15, 2020
Related Zulip thread: https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/lean.23211.20don't.20unfold.20irred.20defs

Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 16, 2020
Related Zulip thread: https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/lean.23211.20don't.20unfold.20irred.20defs

Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
cipher1024 pushed a commit to cipher1024/mathlib that referenced this pull request Mar 15, 2022
Related Zulip thread: https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/lean.23211.20don't.20unfold.20irred.20defs

Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
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

5 participants