upvote
In theory

> 0 × A ≅ A × 0 ≅ 0.

In practice, 0 × A ≅ A × 0 ≅ A for the temptation is too great to divide by zero and I don't know of a single programming language that doesn't succumb.

reply
In the sense that all sorts of operations are in practice divergent for some values of the domain, yeah. But in languages with explicit uninhabited types, the normal rules of algebra apply to those. For example, in Rust which finally got its canonical "never" type stabilized, `(i32, !)` is uninhabited and `Result<i32, !>` is always `Ok(_)` and the compiler knows it.
reply
You’re only right for lazy pairs, I think.

In a strict language (or with a strict pair in a lazy language), you normally won’t be able to (integer) divide by zero while computing a value, then go on to ignore that, pack that erroneous value into a pair, and extract the other, valid value from it and go on with your life.

Similarly, if your program has hung while computing one half of a pair then (except in lazy languages) it will have hung while computing the pair as a whole as well.

(Haskell’s type algebra is indeed somewhat subtler.)

reply
Natural number, natural logarithm, natural units, natural frequency. I'm not a fan of the term, though it's better than the worst offenders, "normal" and "regular"

> In the normal extension K/Q, every normal subgroup of the regular representation acts on a normal scheme that is regular in codimension one, whose normal bundle — orthonormal to the regular surface at each regular value — carries a normal operator whose spectrum follows a normal distribution over a space that is at once regular and normal, all indexed by a regular cardinal.

reply
Yeah not those, those are legacy, we don’t speak about them :) The “natural” here is that of “natural isomorphism” and more generally the category-theoretic “natural transformation”, which is the one that is virtually always meant when people that the two things are “naturally” identified and the like.

That’s what they mean for example when they say that a finite-dimensional vector space is naturally isomorphic to its double dual, but while it’s also isomorphic to its ordinary dual, it’s not naturally so. Of course, in an introductory course they’ll just say the latter is dependent on an arbitrary choice of basis; but personally I find it quite beautiful that the notion “independent of arbitrary choices” is even formalizable, let alone in such generality as to span from vector spaces to programming languages.

reply