Jakobs' order is the Dershowitz–Manna order #
On a linear order, Mathlib's Dershowitz–Manna order on multisets (Multiset.IsDershowitzMannaLT)
coincides with Jakobs' order "lexicographic from the largest element".
Main results #
isDershowitzMannaLT_iff_jakobsLT,jakobsLT_total,jakobsLT_add_right;wellFounded_min_jakobsLE: theWellFounded.minused inDGH.Basicis a minimum for Jakobs' order.
Related #
The Dershowitz–Manna order and its well-foundedness are Mathlib's
Multiset.IsDershowitzMannaLT and Multiset.wellFounded_isDershowitzMannaLT
(Mathlib.Data.Multiset.DershowitzManna); this file adds its characterization, on a linear
order, as the lexicographic order from the largest element.
References #
- F. Jakobs, PhD thesis, 2019, Thm. 1.1.3; Dubrovin–Gräter–Hanke, Prop. 2.1.
- N. Dershowitz, Z. Manna, Proving termination with multiset orderings, Comm. ACM 22 (1979), 465–476.
Jakobs' order: s <_J t iff at some x the count in s is smaller than in t,
and the counts agree at every y > x.
Equations
- DGH.jakobsLT s t = ∃ (x : α), Multiset.count x s < Multiset.count x t ∧ ∀ (y : α), x < y → Multiset.count y s = Multiset.count y t
Instances For
If s ≠ t, there is a largest element where the counts differ.
Helper: under the DM hypothesis on Y, Z, the maximum of Z is not in Y.
(1, ⇒) Dershowitz–Manna implies Jakobs.
(1, ⇐) Jakobs implies Dershowitz–Manna.
(1) On a linear order, Dershowitz–Manna = Jakobs' lexicographic order.
(2) Totality.
Irreflexivity.
(3) Translation invariance: s <_J t → s + u <_J t + u.
(4) Over a well-founded linear order, the Dershowitz–Manna WellFounded.min of a
nonempty set S is ≤_J every element of S (a minimum, not merely minimal).