What are the exact functions of Blend Modes?

Thank you so much!
Sorry for my late reply.

I have a few specific questions if you don’t mind:
In this newer source code:

  1. “col 1” is not supposed to specifically mean A and
    “col 2” is not supposed to specifically mean B
    , are they?
  2. It’s up to us to choose:
    A or B for col1 and
    A or B for col2, isn’t it?
  3. We can freely define mix(col1,col2,t) as:
    At+f(A,B)(1-t) or
    Bt+f(A,B)(1-t),
    do we?
  4. Specific example, we can freely define col1*t+(col1-col2)(1-t) as:
    At+(A-B)(1-t) or
    Bt+(B-A)(1-t)
    because both are correct, do we?
  5. If you agreed with all of the above mini questions, then would you agree that people’s definitions of Blend Modes are not “broad” enough? For example, here, they say:
    “Difference Blend Mode is the absolute value of the difference between base and blend layers
    Do you think that the definition should be:
    “Difference Blend Mode is the absolute value of the difference between one layer and another layer?