Almostequivalent
Almostequivalent, sometimes written as almost equivalent, is a notion used in formal language theory and related areas to describe objects that agree on all but finitely many inputs. Two languages L1 and L2 over the same alphabet are almost equivalent if their symmetric difference L1 Δ L2 is finite; equivalently, they contain exactly the same words except for a finite set of exceptions. The concept extends to functions f and g from strings to a common codomain by requiring that the set of inputs where they differ is finite.
Formally, L1 and L2 are almost equivalent if L1 Δ L2 = (L1 \ L2) ∪ (L2 \ L1) is finite.
Examples illustrate the idea. If L1 is the set of all strings over {a,b} except the single
Context and significance: almostequivalence captures equality up to finite differences, a useful abstraction for asymptotic or