> representation that is invariant under program equivalence
is this even computable at all (leaving aside the complexity theoretic issues)?
is this even computable at all (leaving aside the complexity theoretic issues)?
Thus you get a representation invariant under computation. This remains decidable when you consider only normalizing programs as in STLC or related subsystems.
Herbrand equivalence is the best you can do (in general) if you are trying to say whether two variables have the same values at the same program points.
If you are willing to be probablistically correct you can do better, but you will get wrong answers (and not know they are wrong) That is likely okay for this application.