by VirusNewbie · 4y ago · 0 comments
Is 1 + 2 == 3? well, I understand they're equivalent, but they're not the same terms.
Is (1+(1+1)) the same amount of equivalence to 3 as 1+2 is? I'd much prefer a notion that could look at how 'equivalent' terms are opposed to just looking at equality after β-reduction.
So those would be related in this way
join
(1)+(1+1) : m(m(Z)) -----> 1+1+1 : m(Z)
| |
fmap(eval) | | eval
v v
1+2 : m(Z) -----------> 3 : Z
eval> Is (1+(1+1)) the same amount of equivalence to 3 as 1+2 is? I'd much prefer a notion that could look at how 'equivalent' terms are opposed to just looking at equality after β-reduction.
"Amounts" of equivalence between terms isn't really the right notion here: there's not much you can do with "an equivalence exists", which is all that "X and Y are equivalent" really means. A 2-equivalence (which in this context I think is going to end up being something like a rewrite rule?) should be an equivalence between particular programs, not the whole space of programs implementing a given function.