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] - feat: port CategoryTheory.Subobject.Basic #3444

Closed
wants to merge 6 commits into from

Conversation

joelriou
Copy link
Collaborator

@joelriou joelriou commented Apr 15, 2023


Open in Gitpod

Mathbin -> Mathlib
fix certain import statements
move "by" to end of line
add import to Mathlib.lean
@joelriou joelriou added WIP Work in progress mathlib-port This is a port of a theory file from mathlib. labels Apr 15, 2023
Co-authored-by: Scott Morrison <scott@tqft.net>
-- it is possible to see its source and target
-- (`h` will just display as `_`, because it is in `Prop`).
/-- An inequality of subobjects is witnessed by some morphism between the corresponding objects. -/
def ofLe {B : C} (X Y : Subobject B) (h : X ≤ Y) : (X : C) ⟶ (Y : C) :=
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def ofLe {B : C} (X Y : Subobject B) (h : X ≤ Y) : (X : C) ⟶ (Y : C) :=
def ofLe {B : C} (X Y : Subobject B) (h : X ≤ Y) : (X : C) ⟶ (Y : C) :=

I think we have decided to keep LE capitalised even when it is part of a camelCase identifier, although this is fair from uniformly followed. I asked at https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Naming.20convention/near/350418574 for clarification on the consensus here.

I'll delegate this PR shortly, feel free to merge either with or without addressing this --- it's a widespread enough inconsistency there's no need to hold up this one in particular.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed, I was not sure. I shall change Le to LE later today.

@semorrison
Copy link
Contributor

bors d+

@bors
Copy link

bors bot commented Apr 17, 2023

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

@github-actions github-actions bot added delegated and removed awaiting-review The author would like community review of the PR labels Apr 17, 2023
@joelriou
Copy link
Collaborator Author

bors r+

bors bot pushed a commit that referenced this pull request Apr 17, 2023
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
@bors
Copy link

bors bot commented Apr 17, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: port CategoryTheory.Subobject.Basic [Merged by Bors] - feat: port CategoryTheory.Subobject.Basic Apr 17, 2023
@bors bors bot closed this Apr 17, 2023
@bors bors bot deleted the port/CategoryTheory.Subobject.Basic branch April 17, 2023 16:21
semorrison pushed a commit that referenced this pull request May 10, 2023
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated mathlib-port This is a port of a theory file from mathlib.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants