Zulip Chat Archive
Stream: mathlib4
Topic: AsLinearOrder
Violeta Hernández (Oct 28 2025 at 15:30):
Random question, but why does docs#AsLinearOrder exist? Surely the correct mechanism to create a linear order from a total partial order is to... just give the total field in LinearOrder?
Kenny Lau (Oct 28 2025 at 15:31):
:thinking:
Violeta Hernández (Oct 28 2025 at 15:34):
This comes from all the way back in Lean 3 #4037. Was used for two proofs about lattices, but is no longer used anywhere.
Violeta Hernández (Oct 28 2025 at 15:34):
Confusingly, the theorems it was used to prove were about... linearly ordered lattices?
Violeta Hernández (Oct 28 2025 at 15:35):
docs#le_sup_iff and docs#inf_le_iff are now just stated in terms of linear orders which is certainly the correct thing to do.
Violeta Hernández (Oct 28 2025 at 15:35):
Can we just deprecate this?
Violeta Hernández (Oct 28 2025 at 15:47):
Last updated: Dec 20 2025 at 21:32 UTC