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] - refactor(geometry/manifold): redefine some instances #7124

Closed
wants to merge 10 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Apr 8, 2021

  • Turn unique_diff_within_at into a structure.
  • Generalize tangent_cone_at, unique_diff_within_at, and unique_diff_on to a semimodule that is a topological_space.
  • Redefine model_with_corners_euclidean_half_space and model_with_corners_euclidean_quadrant to reuse more generic lemmas, including unique_diff_on.pi and unique_diff_on.univ_pi.
  • Make model_with_corners.unique_diff' use target instead of range I; usually it has better defeq.

Co-authored-by: @gebner


Open in Gitpod

@urkud urkud added the WIP Work in progress label Apr 8, 2021
@urkud
Copy link
Member Author

urkud commented Apr 12, 2021

@gebner Could you please explain why implicit/explicit args matter here? Currently your commits look like black magic to me.

@gebner
Copy link
Member

gebner commented Apr 12, 2021

The implicit/explicit args don't matter at all---for leanchecker. But apparently the elaborator now needs a little help with the new version of unique_diff_on. It can no longer figure out the second λ _, ℝ argument by itself. I simply made all arguments explicit because that was easiest.

@urkud urkud added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Apr 12, 2021
Copy link
Collaborator

@sgouezel sgouezel left a comment

Choose a reason for hiding this comment

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

LGTM
bors d+
Thanks!

src/analysis/calculus/tangent_cone.lean Outdated Show resolved Hide resolved
src/geometry/manifold/instances/real.lean Outdated Show resolved Hide resolved
src/geometry/manifold/instances/real.lean Outdated Show resolved Hide resolved
src/geometry/manifold/instances/real.lean Outdated Show resolved Hide resolved
src/geometry/manifold/instances/real.lean Outdated Show resolved Hide resolved
@bors
Copy link

bors bot commented Apr 21, 2021

✌️ urkud can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

urkud and others added 4 commits April 21, 2021 08:26
Co-authored-by: sgouezel <sebastien.gouezel@univ-rennes1.fr>
There are no coercions from `euclidean_half_space n` or
`euclidean_quadrant n` to `euclidean_space ℝ (fin n)`
@urkud urkud added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Apr 21, 2021
@urkud
Copy link
Member Author

urkud commented Apr 22, 2021

bors merge

@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 Apr 22, 2021
bors bot pushed a commit that referenced this pull request Apr 22, 2021
* Turn `unique_diff_within_at` into a `structure`.
* Generalize `tangent_cone_at`, `unique_diff_within_at`, and `unique_diff_on` to a `semimodule` that is a `topological_space`.
* Redefine `model_with_corners_euclidean_half_space` and `model_with_corners_euclidean_quadrant` to reuse more generic lemmas, including `unique_diff_on.pi` and `unique_diff_on.univ_pi`.
* Make `model_with_corners.unique_diff'` use `target` instead of `range I`; usually it has better defeq.

Co-authored-by: @gebner 



Co-authored-by: Gabriel Ebner <gebner@gebner.org>
@bors
Copy link

bors bot commented Apr 22, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(geometry/manifold): redefine some instances [Merged by Bors] - refactor(geometry/manifold): redefine some instances Apr 22, 2021
@bors bors bot closed this Apr 22, 2021
@bors bors bot deleted the real-instance branch April 22, 2021 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. 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

3 participants