Here is an explanation of the recidivismCost definition from the Recognition Science (RS) framework, written for an educated reader.
1. What the Declaration Says in Plain English
The definition recidivismCost applies the universal RS cost function (J-cost) to criminal justice metrics. It states that the "cost" of a given recidivism rate is calculated by taking the ratio of a reoffense rate to a baseline rate, and feeding that ratio into the standard Jcost function.
2. Why it Matters in Recognition Science
In RS, the central MODEL asserts that all observable distinctions are forced to pay a reciprocal-symmetric recognition cost, typically evaluated on dimensionless ratios. In the context of criminal justice, the pre-intervention equilibrium is a ratio of 1 (reoffense equals baseline), which corresponds to zero cost (recidivismCost_at_equilibrium).
When an effective rehabilitation program lowers the reoffense rate, it forces a structural distinction (a departure from the baseline). The framework HYPOTHESIZES that the minimum detectable difference—the recognition threshold for an effective intervention—will emerge at a one-φ-step departure. This is quantified by the theorem recidivismCost_phi_step, which evaluates the cost at φ.
3. How to Read the Formal Statement
The Lean 4 definition is written as:
def recidivismCost (reoffense baseline : ℝ) : ℝ :=
Jcost (reoffense / baseline)
def recidivismCost: Declares a new mathematical function namedrecidivismCost.(reoffense baseline : ℝ): Specifies the inputs. The function takes two arguments (reoffenseandbaseline), and both must be real numbers (ℝ).: ℝ: Specifies the output. The function returns a real number.:= Jcost (reoffense / baseline): Provides the computation. It divides thereoffenserate by thebaselinerate, and passes that ratio into the underlyingJcostfunction.
4. Visible Dependencies and Certificates
The supplied module does not just define the function; it proves a suite of structural guarantees about it, packaged into a formal certificate (cert_inhabited) of type RecidivismCert.
- Equilibrium: It PROVES that when the reoffense rate matches the baseline, the cost is exactly zero.
- Non-negativity: It PROVES that the cost is always greater than or equal to zero for positive rates (recidivismCost_nonneg).
- Symmetry: It PROVES that the cost of
(reoffense / baseline)is identical to the cost of(baseline / reoffense)(recidivismCost_reciprocal). This reciprocal symmetry is the hallmark of RS J-cost.
5. What This Declaration Does Not Prove
This module mathematically establishes the structural bridge between RS cost mechanics and the statistical ratio of recidivism. It is a MODEL definition and structural THEOREM set.
It does not prove that actual human criminals in the real world will behave according to this threshold. As stated in the module's docstring, the one-φ-step recognition threshold is an empirical HYPOTHESIS that must be tested against large-N randomized controlled trials (like those from the US Bureau of Justice Statistics). The formal Lean code guarantees the internal consistency of the mathematical prediction, leaving the physical validation to empirical science.