You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find that the current Total for binary relations is a misnomer: Currently there is:
Total : ∀ {a ℓ} {A : Set a} → Rel A ℓ → Set _
Total _∼_ = ∀ x y → (x ∼ y) ⊎ (y ∼ x)
But a binary relation R is normally called total iff Reflexive (R relCompose (converse R)),
so ripping this name out of the context of a poor naming of linear orders is, in my opinion, very unfortunate.
@HuStmpHrrr , ncatlab is a somewhat surprising source for relation-algebraic terminology.
A more common starting point, which I am also using in RATH-Agda, is the following textbook:
@Book{Schmidt-Stroehlein-1993,
author = {Gunther Schmidt and Thomas Str{\"o}hlein},
title = {Relations and Graphs, Discrete Mathematics for Computer Scientists},
year = 1993,
series = {EATCS-Mono\-graphs on Theoret.\null{} Comput.\null{} Sci.},
publisher = Springer,
DOI = {10.1007/978-3-642-77968-8},
abstract = {Relational methods can be found at various places in computer science, notably in data base theory, relational semantics of concurrency, relational type theory, analysis of rewriting systems, and modern programming language design. In addition, they appear in algorithms analysis and in the bulk of discrete mathematics taught to computer scientists. This book devoted to the background of these methods. It is the first to explain how to use relational and graph- theoretic methods systematically in computer science. The powerful calculus of relation algebra is developed with respect to applications to a diverse range of problem areas. Results are first motivated by practical examples, often visualized by both Boolean 0-1-matrices and graphs, and then derived algebraically.}
ISBN = {3-540-56254-0, 0-387-56254-0}
}
@MatthewDaggitt, you could choose to not change that field name, arguing that some people use the name “total” for this property in the order context.
(However, I still much prefer “linear order” over “total order”, but I admit that “linear” does not stand alone much better than “total”...)
👍 to Linear, as out of 900+ uses in the library, 800+ occur as instances of ...TotalOrder or ...TotalPreorder, in each of which 'linear' carries the 'usual' (first order model-theoretic, eg (D)LO) meaning. But that's a lot of knock-on viscosity ;-) Sigh.
Ob DenseLinearOrder: Dense isn't defined anywhere!?
Modulo v2.3 PRs, v3.0 is nearly upon us, so I suggest we bite the bullet and rename Total to Linear as a breaking change. We can always redefine Total in @WolframKahl 's terms (also, BTW, elsewhere called "Entire" in the relational algebra literature!?) later?
that we rename Total to Linear (but keep its definition in terms of Connex, notwithstanding that I personally don't like that that definition folds in a use of flip) throughout, and take the breaking knock-on hit... because it is 'better' wrt orthodox mathematics
that we could redeploy the name Total to mean Entire, but actually we could define that name instead to mean, not as Wolfram has it, Reflexive (R relCompose (converse R)), but rather Entire _≈_ R = _≈_ ⇒ (R relCompose (converse R)), so that it fits better with general Setoids... etc.
Activity
HuStmpHrrr commentedon Sep 5, 2018
Aren't they the same relation though? I do see this definition in other reference: https://ncatlab.org/nlab/show/total+relation
WolframKahl commentedon Sep 5, 2018
@HuStmpHrrr , ncatlab is a somewhat surprising source for relation-algebraic terminology.
A more common starting point, which I am also using in RATH-Agda, is the following textbook:
MatthewDaggitt commentedon Sep 9, 2018
Hypothetically what would you suggest as a replacement name?
Unfortunately this can't be deprecated and is a reasonably large breaking change as it would require renaming the record field in
TotalOrder.JacquesCarette commentedon Sep 9, 2018
Wikipedia uses
connexfor that particular relational property.WolframKahl commentedon Sep 9, 2018
gallais commentedon Jul 2, 2021
I don't know if Wikipedia got edited in the meantime or something but connex now makes the following distinction:
∀ {x y} → x ≢ y → x ∼ y ⊎ y ∼ x∀ {x y} → x ∼ y ⊎ y ∼ xSo
_<_would for instance be connex.MatthewDaggitt commentedon Jul 5, 2021
Marking this as something to address in v2.0
jamesmckinna commentedon Apr 24, 2023
👍 to
Linear, as out of 900+ uses in the library, 800+ occur as instances of...TotalOrderor...TotalPreorder, in each of which 'linear' carries the 'usual' (first order model-theoretic, eg (D)LO) meaning. But that's a lot of knock-on viscosity ;-) Sigh.Ob
DenseLinearOrder:Denseisn't defined anywhere!?#453: added `Dense` relations and `DenseLinearOrder` (#2111)
#453: added `Dense` relations and `DenseLinearOrder` (#2111)
#453: added `Dense` relations and `DenseLinearOrder` (#2111)
Merge v2.1.1 into `master` (#2473)
jamesmckinna commentedon Feb 18, 2025
Modulo v2.3 PRs, v3.0 is nearly upon us, so I suggest we bite the bullet and rename
TotaltoLinearas abreakingchange. We can always redefineTotalin @WolframKahl 's terms (also, BTW, elsewhere called "Entire" in the relational algebra literature!?) later?JacquesCarette commentedon Feb 18, 2025
Didn't we introduce
connexalso? I'm not entirely sure exactly what you're proposing @jamesmckinna .jamesmckinna commentedon Feb 18, 2025
@JacquesCarette actually I intended two things:
TotaltoLinear(but keep its definition in terms ofConnex, notwithstanding that I personally don't like that that definition folds in a use offlip) throughout, and take thebreakingknock-on hit... because it is 'better' wrt orthodox mathematicsTotalto meanEntire, but actually we could define that name instead to mean, not as Wolfram has it,Reflexive (R relCompose (converse R)), but ratherEntire _≈_ R = _≈_ ⇒ (R relCompose (converse R)), so that it fits better with generalSetoids... etc.[-]Misnomer: `Relation.Binary.Core.Total`[/-][+]Misnomer: `Relation.Binary.Definitions.Total`[/+]