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

chore(algebra/group/to_additive): map_namespace should make a meta constant#1409

Merged
mergify[bot] merged 5 commits intomasterfrom
ChrisHughes24-patch-3
Sep 10, 2019
Merged

chore(algebra/group/to_additive): map_namespace should make a meta constant#1409
mergify[bot] merged 5 commits intomasterfrom
ChrisHughes24-patch-3

Conversation

@ChrisHughes24
Copy link
Copy Markdown
Member

@ChrisHughes24 ChrisHughes24 commented Sep 7, 2019

map_namespace now produces a meta constant instead of a constant. This means that after importing group_theory/coset and typing #print axioms, quotient_group._to_additive is not in the list, since it is now a meta constant. This is a little bit neater, and it doesn't look like we're adding any axioms.

TO CONTRIBUTORS:

Make sure you have:

  • reviewed and applied the coding style: coding, naming
  • reviewed and applied the documentation requirements
  • for tactics:
  • make sure definitions and lemmas are put in the right files
  • make sure definitions and lemmas are not redundant

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

For reviewers: code review check list

…nstance

`map_namespace` now produces a `meta constant` instead of a constant. This means that after importing `group_theory/coset` and typing `#print axioms`, `quotient_group._to_additive` is not in the list, since it is now a `meta constant`. This is a little bit neater, and it doesn't look like we're adding any axioms.
@ChrisHughes24 ChrisHughes24 requested a review from a team as a code owner September 7, 2019 10:39
@urkud
Copy link
Copy Markdown
Member

urkud commented Sep 7, 2019

Oh, it seems that bool was a bad choice. Sorry for introducing this bug. The fix looks good to me.

@cipher1024
Copy link
Copy Markdown
Collaborator

Is this constant a place to keep an attribute cache? Can we use a definition of the shape foo : unit := () instead?

@khoek
Copy link
Copy Markdown
Collaborator

khoek commented Sep 9, 2019

I agree with Simon; constants seem completely unnecessary

@ChrisHughes24
Copy link
Copy Markdown
Member Author

Is this constant a place to keep an attribute cache? Can we use a definition of the shape foo : unit := () instead?

This is now done.

@robertylewis robertylewis 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 Sep 10, 2019
@mergify mergify Bot merged commit 8e46fa5 into master Sep 10, 2019
@mergify mergify Bot deleted the ChrisHughes24-patch-3 branch September 10, 2019 23:39
butterthebuddha pushed a commit to butterthebuddha/mathlib that referenced this pull request May 15, 2020
…nstant (leanprover-community#1409)

* chore(algebra/group/to_additive): map_namespace should make a meta constance

`map_namespace` now produces a `meta constant` instead of a constant. This means that after importing `group_theory/coset` and typing `#print axioms`, `quotient_group._to_additive` is not in the list, since it is now a `meta constant`. This is a little bit neater, and it doesn't look like we're adding any axioms.

* Update to_additive.lean

* Update to_additive.lean
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.

5 participants