Skip to content

Misnomer: Relation.Binary.Definitions.Total #453

Open

Description

@WolframKahl

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.

Activity

  1. HuStmpHrrr commented on Sep 5, 2018

    @HuStmpHrrr
    Member

    Aren't they the same relation though? I do see this definition in other reference: https://ncatlab.org/nlab/show/total+relation

  2. WolframKahl commented on Sep 5, 2018

    @WolframKahl
    MemberAuthor

    @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}
    }
  3. MatthewDaggitt commented on Sep 9, 2018

    @MatthewDaggitt
    Collaborator

    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.

  4. JacquesCarette commented on Sep 9, 2018

    @JacquesCarette
    Collaborator

    Wikipedia uses connex for that particular relational property.

  5. WolframKahl commented on Sep 9, 2018

    @WolframKahl
    MemberAuthor
  6. gallais commented on Jul 2, 2021

    @gallais
    Member

    I don't know if Wikipedia got edited in the meantime or something but connex now makes the following distinction:

    • connex: ∀ {x y} → x ≢ y → x ∼ y ⊎ y ∼ x
    • strongly connex: ∀ {x y} → x ∼ y ⊎ y ∼ x

    So _<_ would for instance be connex.

  7. added this to the v2.0 milestone on Jul 5, 2021
  8. MatthewDaggitt commented on Jul 5, 2021

    @MatthewDaggitt
    Collaborator

    Marking this as something to address in v2.0

  9. jamesmckinna commented on Apr 24, 2023

    @jamesmckinna
    Collaborator

    👍 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!?

  10. added a commit that references this issue on Oct 2, 2023
  11. modified the milestones: v2.0, v3.0 on Oct 12, 2023
  12. added a commit that references this issue on Oct 13, 2023
  13. added a commit that references this issue on Jul 10, 2024
  14. jamesmckinna commented on Feb 18, 2025

    @jamesmckinna
    Collaborator

    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?

  15. JacquesCarette commented on Feb 18, 2025

    @JacquesCarette
    Collaborator

    Didn't we introduce connex also? I'm not entirely sure exactly what you're proposing @jamesmckinna .

  16. jamesmckinna commented on Feb 18, 2025

    @jamesmckinna
    Collaborator

    Didn't we introduce connex also? I'm not entirely sure exactly what you're proposing @jamesmckinna .

    @JacquesCarette actually I intended two things:

    • 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.
  17. changed the title [-]Misnomer: `Relation.Binary.Core.Total`[/-] [+]Misnomer: `Relation.Binary.Definitions.Total`[/+] on Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions