Zulip Chat Archive

Stream: Is there code for X?

Topic: Preorder from function iteration


Daniel Weber (Sep 04 2024 at 08:58):

For any function f : a -> a we can define a preorder by a ≤ b <-> exists n, f^[n] a = b. This is also a successor order with succ = f. Is this in Mathlib?

Yaël Dillies (Sep 04 2024 at 09:00):

Pretty sure this is not, no. It might exist in category theory?

Kim Morrison (Sep 04 2024 at 09:44):

(Don't think so.)

Daniel Weber (Sep 23 2024 at 09:26):

What would be a good location for this definition?

Yaël Dillies (Sep 23 2024 at 09:39):

I think it should be somewhere in Algebra.Group.Action, by defining n • a = f^[n] a. Does that fit the bill for your application?

Daniel Weber (Sep 23 2024 at 09:50):

How do I get an order from that? In my current application I want to apply docs#AntisymmRel.setoid to it and then look at docs#Finpartition.ofSetoid, and I have another use planned where I make a docs#SuccOrder from it.

Yaël Dillies (Sep 23 2024 at 09:51):

AntisymmRel.setoid is just looking at the orbits of f, right? The SuccOrder part I'm not sure

Daniel Weber (Sep 23 2024 at 09:53):

Oh, looking at docs#MulAction.orbit does seem like it might be nicer. Is there a way to get a docs#Finpartition of those?

Daniel Weber (Sep 23 2024 at 09:54):

I want the SuccOrder to make a tree from a function mapping each node to its parent

Daniel Weber (Sep 23 2024 at 09:55):

Actually, it's only orbits for a permutation, not for a general function


Last updated: May 02 2025 at 03:31 UTC