Derivative Flipping
58 points by dmit 2 days ago | 6 comments
  • mjfisher an hour ago |
    This looks really interesting but I'm falling down on the first piece of maths (and the linked pdf that attempts to clarify in the article).

    Until this point, a derivative for me has been a derivative of an continuous function.

    Is this arbitrarily defining the derivative of a particular set? (e.g. "The derivative of a set of strings S with respect to a symbol a is the set of strings gener- ated by stripping the leading a from the strings in S that start with a")

    Is that analogous to regular differential calculus, or a completely different species of derivatives and it just shares the same name?

    • convolvatron an hour ago |
      you missed the reference to the Brzozowski derivative, which has a wiki page
    • yorwba an hour ago |
      It is analogous to regular calculus in some ways but not others. For example, the derivative of xyz with respect to x is yz in either case. The derivative of yz with respect to x is 0 or the empty set, respectively. But the analogy stops working when you have the symbol appear somewhere other than the beginning, because multiplication of numbers is order-independent and string concatenation is not.
      • dapperdrake 28 minutes ago |
        Matrix derivatives
    • abe27342 29 minutes ago |
      There are some other good answers pointing to concrete leads. There is the formal notion of a derivation (see https://en.wikipedia.org/wiki/Derivation_(differential_algeb... ) which generalizes the derivatives in differential calculus you are familiar with to other more exotic objects. For example, this allows defining derivatives on combinatorial species.

      The Brzozowski derivative is not strictly one of these, due to its odd product rule expression for concatenation. https://math.stackexchange.com/questions/5024248/are-brzozow... has some good explanations if you have any algebra background.

      edit: The comments on the math stack exchange link seem to point out that while the Brzozowski derivative is not a derivation over some algebra, it is over a certain (f,g)-bimodule, so works in some even more general sense. Interesting!

      • dapperdrake 28 minutes ago |
        Or Radon-Nikodym for measurable functions.