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

doc(data/fin): add docs; fin_zero_elim -> fin.elim0; fin_zero_elim' -> fin_zero_elim #2055

Merged
merged 5 commits into from
Mar 2, 2020

Conversation

urkud
Copy link
Member

@urkud urkud commented Feb 25, 2020

Also drom fin_zero_elim in favor of fin.elim0 from stdlib and
rename fin_zero_elim' to fin_zero_elim.

Are there any theorems in data/fin worth mentioning in the module docstring?

TO CONTRIBUTORS:

Make sure you have:

If this PR is related to a discussion on Zulip, please include a link in the discussion.

For reviewers: code review check list

Also drom `fin_zero_elim` in favor of `fin.elim0` from `stdlib` and
rename `fin_zero_elim'` to `fin_zero_elim`.
@robertylewis robertylewis changed the title doc(data/fin): add some docs doc(data/fin): add docs; fin_zero_elim -> fin.elim0; fin_zero_elim' -> fin_zero_elim Feb 25, 2020
src/data/fin.lean Outdated Show resolved Hide resolved
| 0 i := i.elim0
| (succ n) ⟨0, _⟩ := H0 _
| (succ n) ⟨succ i, h⟩ := Hs _ _ (succ_rec ⟨i, lt_of_succ_lt_succ h⟩)

/-- Define `C n i` by induction on `i : fin n` interpreted as `(0 : fin (n - i)).succ.succ…`,
Copy link
Member

Choose a reason for hiding this comment

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

This is a little confusing. For one, Hs isn't introduced in the doc string. It's not immediately clear what the ... is doing. Instead of the short one-line description, could you maybe expand it to a few sentences that make it clearer how to use the definition?

Copy link
Member Author

Choose a reason for hiding this comment

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

Reformulated. Is it better?

Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com>
@urkud urkud added the awaiting-author A reviewer has asked the author a question or requested changes label Feb 27, 2020
@urkud urkud added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Mar 1, 2020
@robertylewis robertylewis 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 Mar 2, 2020
@mergify mergify bot merged commit 1d82a7c into master Mar 2, 2020
@mergify mergify bot deleted the fin-docs branch March 2, 2020 19:54
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 15, 2020
…> fin_zero_elim (leanprover-community#2055)

* doc(data/fin): add some docs

Also drom `fin_zero_elim` in favor of `fin.elim0` from `stdlib` and
rename `fin_zero_elim'` to `fin_zero_elim`.

* Update src/data/fin.lean

Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com>

* Update docs, fix `Π` vs `∀`.

Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 16, 2020
…> fin_zero_elim (leanprover-community#2055)

* doc(data/fin): add some docs

Also drom `fin_zero_elim` in favor of `fin.elim0` from `stdlib` and
rename `fin_zero_elim'` to `fin_zero_elim`.

* Update src/data/fin.lean

Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com>

* Update docs, fix `Π` vs `∀`.

Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
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

2 participants