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

Minimum and maximum are associative #1300

Merged
merged 13 commits into from
Feb 14, 2025

Conversation

lowasser
Copy link
Contributor

@lowasser lowasser commented Feb 8, 2025

If anyone has any ideas on how to do this without a ton of casework, I'd love to hear it.

@fredrik-bakke
Copy link
Collaborator

fredrik-bakke commented Feb 8, 2025

Associativity should follow from uniqueness of greatest binary lower/upper bounds. I.e., this is a property of binary meets/joins in arbitrary posets. It's probably easier to start there, if it hasn't been formalized already.

@fredrik-bakke
Copy link
Collaborator

fredrik-bakke commented Feb 8, 2025

It hasn't been formalized yet, but an argument sketch that should be straightforward given the proper infrastructure is as follows:

  1. The left associated twice iterated minimum is the greatest lower bound of the appropriate family on the three-element set.
  2. The right associated twice iterated minimum is the greatest lower bound of the same family on the three-element set.
  3. By essential uniqueness, the two elements are similar, already in an arbitrary preorder.
  4. By antisymmetry in a poset, the two elements are equal.

@EgbertRijke
Copy link
Collaborator

I agree with Fredrik, this shouldn't be formalized by case analysis, but it should be formalized at the level of meets and joins in meet-semilattices and join-semilattices.

@fredrik-bakke fredrik-bakke marked this pull request as draft February 11, 2025 14:29
@lowasser
Copy link
Contributor Author

I think it already is, e.g. here. I will try to reuse that.

@fredrik-bakke
Copy link
Collaborator

I think it already is, e.g. here. I will try to reuse that.

Excellent!

@lowasser lowasser marked this pull request as ready for review February 12, 2025 03:52
@lowasser
Copy link
Contributor Author

All right, we should be good to go.

src/order-theory/decidable-total-orders.lagda.md Outdated Show resolved Hide resolved
src/order-theory/decidable-total-orders.lagda.md Outdated Show resolved Hide resolved
src/order-theory/decidable-total-orders.lagda.md Outdated Show resolved Hide resolved
src/order-theory/decidable-total-orders.lagda.md Outdated Show resolved Hide resolved
src/order-theory/decidable-total-orders.lagda.md Outdated Show resolved Hide resolved
src/order-theory/decidable-total-orders.lagda.md Outdated Show resolved Hide resolved
src/order-theory/decidable-total-orders.lagda.md Outdated Show resolved Hide resolved
src/order-theory/decidable-total-orders.lagda.md Outdated Show resolved Hide resolved
src/order-theory/greatest-lower-bounds-posets.lagda.md Outdated Show resolved Hide resolved
src/order-theory/least-upper-bounds-posets.lagda.md Outdated Show resolved Hide resolved
@lowasser lowasser mentioned this pull request Feb 13, 2025
@fredrik-bakke
Copy link
Collaborator

Great work! Merging now

@fredrik-bakke fredrik-bakke merged commit 8debc2b into UniMath:master Feb 14, 2025
4 checks passed
@lowasser lowasser deleted the min-max-associative branch February 14, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants