Zulip Chat Archive

Stream: Is there code for X?

Topic: A finite set that is a CompleteLattice


Mai (Feb 16 2026 at 13:00):

I wanna use docs#OrderHom.lfp to get the least fixpoint of a function Finset a -> Finset a, but it doesn't implement docs#CompleteLattice. Set does implement it, it seems, but I need a finite result

Aaron Liu (Feb 16 2026 at 13:02):

Finset isn't a complete lattice on an infinite type

Mai (Feb 16 2026 at 13:04):

I am not sure why?

Snir Broshi (Feb 16 2026 at 13:05):

Because there are infinite chains, e.g. {1}, {1,2}, {1,2,3}, ... and the supremum isn't a finset

Aaron Liu (Feb 16 2026 at 13:05):

the supremum of all singletons isn't finite anymore

Riccardo Brasca (Feb 16 2026 at 13:06):

@Mai do you understand that Finset a is not a finite set, but the (usually infinite) collection of finite sets whose elements are of type a?

Snir Broshi (Feb 16 2026 at 13:06):

Aaron Liu said:

Finset isn't a complete lattice on an infinite type

But shouldn't it be a docs#ConditionallyCompleteLattice on any type?
(might not help the fixpoint problem, but maybe)

Snir Broshi (Feb 16 2026 at 13:09):

Also it seems that docs#OrderHom.lfp only needs the fact that infimum is monotone (s ⊆ t → sInf s ≤ sInf t), which I think is true for finsets.

Mai (Feb 16 2026 at 13:30):

Riccardo Brasca said:

Mai do you understand that Finset a is not a finite set, but the (usually infinite) collection of finite sets whose elements are of type a?

Yes, I am aware. My monotone function takes a set and adds elements to it

Aaron Liu (Feb 16 2026 at 13:32):

how do you know its least fixpoint is finite

Mai (Feb 16 2026 at 13:34):

There's a finite set of elements the function may add to the set, regardless of the argument

Aaron Liu (Feb 16 2026 at 13:45):

Then if S is the finset of elements your function f can add then f^[S.card] ∅ should be the least fixpoint of f

Mai (Feb 16 2026 at 13:52):

I guess so :grimacing: feels a little hacky though


Last updated: Feb 28 2026 at 14:05 UTC