Hold: a General Framework for Guarded Preservation of Partial Operations
Year: 2026
Type: preprint
Abstract: Partial operations arise whenever an otherwise meaningful operation excludes particular inputs, such as division or remainder with a zero divisor. This note introduces a guarded preservation framework in which a partial operation is extended by an explicitly specified state-preservation branch. We define the primitive zero-recipient operator HOLD: X × {0} → X by HOLD(x,0) = x, understood as IX(x). More generally, for any operation A: X × N+ → X defined on positive counts, the guarded extension F: X × N → X is defined by F(x,0)=x and F(x,n)=A(x,n) for n>0. Main results: Guarded Extension Theorem (Totality): F is total and agrees with A on its original domain. Uniqueness: F is the unique extension satisfying the prescribed zero-branch condition P(x). Stability and Compositional Closure: Identity preservation is stable under repetition and composition. Crucially, the framework does not redefine x/0 or x mod 0 as arithmetic values. x/0 remains undefined. HOLD is a separate semantic policy for systems whose specified behavior at a guard state is preservation (e.g., zero-recipient allocation). This work formalizes a common operational pattern and provides a precise vocabulary for separating arithmetic partiality from deliberate operational policy. Keywords: partial operations, guarded extension, state preservation, identity map, division by zero, operational semantics, option types, formal methods, HOLD operator License: CC BY 4.0 References field me ye daal de: IEEE Std 754-2019, Python 3 Documentation, Winskel (1993) Formal Semantics, Knuth TAOCP Vol 1, Graham et al. Concrete Mathematics
Author: Saikia, Nilamjit
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7210278077
