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

feat(order/sublattice): sublattice definition #7093

Closed
wants to merge 4 commits into from
Closed

Conversation

Seeram
Copy link

@Seeram Seeram commented Apr 7, 2021

Definition of order/sublattice


Open in Gitpod

@Seeram Seeram added the awaiting-review The author would like community review of the PR label Apr 7, 2021
(inf : ∀ a b, f(a ⊓ b) = f(a) ⊓ f(b) )
(sup : ∀ a b, f(a ⊔ b) = f(a) ⊔ f(b) )
:
lattice L
Copy link
Member

Choose a reason for hiding this comment

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

This conclusion should be lattice β; you already have lattice L as an argument!

@eric-wieser eric-wieser added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Apr 7, 2021
Copy link
Collaborator

@bryangingechen bryangingechen left a comment

Choose a reason for hiding this comment

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

Just a few style comments; it looks like this is still WIP, so I'm adding that tag.

Definition of sublattice based on typeclass of lattice
-/

variables { L : Type* } [ lattice L ] { s : set L }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here and below, we only put spaces around curly braces when they surround a list of tactics. See our style guide or check how other files in mathlib are formatted.

Suggested change
variables { L : Type* } [ lattice L ] { s : set L }
variables {L : Type*} [lattice L] {s : set L}

Comment on lines +16 to +18
( carrier : set L)
( inf_mem' {a b : L} : a ∈ carrier → b ∈ carrier → a ⊓ b ∈ carrier )
( sup_mem' {a b : L} : a ∈ carrier → b ∈ carrier → a ⊔ b ∈ carrier )
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't indent the first line after :=

Suggested change
( carrier : set L)
( inf_mem' {a b : L} : a ∈ carrier → b ∈ carrier → a ⊓ b ∈ carrier )
( sup_mem' {a b : L} : a ∈ carrier → b ∈ carrier → a ⊔ b ∈ carrier )
(carrier : set L)
(inf_mem' {a b : L} : a ∈ carrier → b ∈ carrier → a ⊓ b ∈ carrier)
(sup_mem' {a b : L} : a ∈ carrier → b ∈ carrier → a ⊔ b ∈ carrier)

@bryangingechen bryangingechen added the WIP Work in progress label May 1, 2021
Comment on lines +55 to +66
/-- Trying to make definition of sublattice based on injective map
preserving structure to lattice -/
protected def function.injective.sublattice [ lattice SL₂ ] [ has_inf SL₁ ] [ has_sup SL₁ ]
(f : SL₁ → SL₂ )
(hf: injective f)
(inf : ∀ a b, f(a ⊓ b) = f(a) ⊓ f(b) )
(sup : ∀ a b, f(a ⊔ b) = f(a) ⊔ f(b) ) :
sublattice SL₁ :=
{ sup_mem' := λ a b, ,
inf_mem' := λ a b, ,
carrier :=
}
Copy link
Member

Choose a reason for hiding this comment

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

It's hard to tell exactly what was intended here, but #10615 might have added something relevant.

@semorrison semorrison added the too-late This PR was ready too late for inclusion in mathlib3 label Jul 16, 2023
@YaelDillies
Copy link
Collaborator

Redone in Lean 4.

@YaelDillies YaelDillies deleted the sublattice branch September 21, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-author A reviewer has asked the author a question or requested changes too-late This PR was ready too late for inclusion in mathlib3 WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants