• november@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    17
    ·
    22 hours ago

    Not sure about number 2. You can have two folders that have identical contents but aren’t the same folder. I don’t think anyone would reasonably use the word “equal” to describe that situation.

    • falcunculus@jlai.lu
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      18 hours ago

      In computer science this difference is called value types vs identity types. Value types are “equal” if their value is the same whereas, identity types are “equal” if they are the same actual instance. So what “equal” means changes.

      For instance (using fantasy syntax), new Vector(1,2) == new Vector(1,2) as they are conceptually the same object, but new Person ("John Smith") ≠ new Person ("John Smith") as two persons can be different people even of they share their name, so they cannot be assumed to be the same.

      I have no idea how this maps to actual math though.

    • whimsy@lemmy.zip
      link
      fedilink
      English
      arrow-up
      9
      ·
      22 hours ago

      Yep, they’d have different inodes. But one could argue about the definition of equality…

      Nonetheless, a very interesting post!

      • Slotos@feddit.nl
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 hours ago

        If you tar the contents of the two, you’d be unable to attribute the archives to any specific one.

  • ns1@feddit.uk
    link
    fedilink
    English
    arrow-up
    11
    ·
    21 hours ago

    The one that’s most obviously wrong is no. 4, which I think is meant to be the axiom of infinity, as this would imply every filesystem has a folder with an unlimited number of files. Probably several others have issues as well.

    But maybe you can get around it if you imagine an idealised infinite linux filesystem rather than an actual real example!

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      4
      ·
      20 hours ago

      5 is bogus, too. You can’t create a folder by copying files into a[n already existing?] directory.