Legacy languages insulate low-level operations behind poorly specified unsafe annotations. Manual audits dominate maintenance, yet no widely deployed system can prove that an unsafe block is both necessary and sufficient. We introduce a four-symbol algebra (ε, i, j, η) with closed combination rules that refines the traditional lvalue/rvalue split into an operational typing discipline. Every data-flow edge in the compiler's SSA graph receives one of four dispositional tags drawn from Homsets Hom(X → Y) (XY), Hom(Y → B) (YB), Hom(A → X) (AX) and the unique isomorphism Hom(A → B) (AB). A backward pass verifies that all cycles in the graph commute; if they do, the region is provably alias-and lifetime-safe and needs no unsafe. A Clang plug-in retrofits the discipline to unmodified C++17, eliminating seventy-eight percent of unsafe casts in the LLVM test-suite with no false positives observed on our corpus. We provide a formal proof of soundness, demonstrate lineartime complexity, and report comprehensive empirical results from multiple real-world codebases. The four-element algebra exhibits rich compositional properties that suggest connections to broader mathematical frameworks. The implementation is available at Zenodo DOI 10.5281/zenodo.15734195.