Indeed, and that is consistent with informal language, eg "sorted by size". It looks like "wrt" is really better for relations.


On 16/08/2017 17:04, Peter Lammich wrote:
However, sort_by takes a function mapping the elements into a linear order, which is less general than allowing arbitrary (preorder?) relations.


-------- Original Message --------
Subject: Re: [isabelle-dev] [Spam] Fwd: added sorted_wrt to List; added Data_Structures/Binomial_Heap.thy
From: Makarius
To: Tobias Nipkow ,

    On 16/08/17 16:10, Tobias Nipkow wrote:
     > Concerning "sorted_by" vs "sorted_wrt": the latter seems closer to
     > informal usage. But if many people cry out for "by" we could change that.

    In Isabelle/ML we used to have "sort_wrt" for some decades, but I have
    changed that recently into into "sort_by" to make it coincide with the
    terminology of the Scala library.


    isabelle-dev mailing list

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

isabelle-dev mailing list

Reply via email to