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

functions and cardinality #556

Merged
merged 3 commits into from
Jan 10, 2019
Merged

Conversation

sgouezel
Copy link
Collaborator

Minor missing facts from the library

data/set/function.lean Outdated Show resolved Hide resolved
@@ -5,7 +5,7 @@ Authors: Johannes Hölzl, Mario Carneiro

Miscellaneous function constructions and lemmas.
-/
import logic.basic data.option.defs
import logic.basic data.option.defs data.set.function
Copy link
Collaborator

@johoelzl johoelzl Jan 9, 2019

Choose a reason for hiding this comment

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

I'm against importing data (besides any defs) in logic

It's not officially documented, but my mental model is that logic should be mostly independent. (And then logic -> order -> algebra, and only small things are imported from data)

We could move some stuff in data.set... to data.set.defs

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is it OK if I do the import in the the other direction, i.e., prove stuff on inv_fun_on in data.set.function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did it the other way around, proving stuff in data.set.function

@johoelzl johoelzl merged commit 8b66ebd into leanprover-community:master Jan 10, 2019
@sgouezel sgouezel deleted the functions branch January 17, 2019 12:41
cipher1024 pushed a commit that referenced this pull request Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants