{
 "artifacts": null,
 "category": "dynamics",
 "description": "For a learned control-affine latent dynamics model, replace the ordinary reciprocal barrier 1/h₀(z) with B(z) = s(z)/h₀(z), where h₀ is the physical safety margin and s is positive but depends on a velocity-like quantity whose derivative is directly affected by the action. This preserves the singularity at h₀ = 0 while giving the policy or safety projection layer first-order action authority over the barrier derivative.",
 "formulas_latex": [
  "C₀ = {z : h₀(z) ≥ 0},   ż = f(z) + g(z)a,   Lᵍh₀ = ∇h₀(z)ᵀg(z) = 0.",
  "q(z) = Lᶠh₀(z),   s(z) = 1 + δ tanh(κq(z)),   B(z) = s(z)/h₀(z),   0 \u003c δ \u003c 1.",
  "LᵍB = Lᵍs/h₀ = δκ sech²(κq)Lᵍq/h₀,   Lᵍq = ∇q(z)ᵀg(z).",
  "LᶠB + LᵍB a ≤ α(B),   for example α(B) = γB with γ \u003e 0."
 ],
 "id": 2689,
 "implementation": "1. Integration point: use this as a differentiable safety layer after a neural policy aπ = πφ(z), or as a regularizer during model-based reinforcement learning and neural-ODE training. The model must expose f(z) and g(z), either from known physics, a learned control-affine model, or local Jacobian estimates. Choose a differentiable safety margin h₀(z), such as squared distance to an obstacle minus a radius, an actuator-temperature margin, or a latent-state operating envelope. 2. Pseudocode: compute h = h₀(z), q = gradient(h) transpose f(z), s = 1 + δ tanh(κq), B = s/(h + ε), Lᵍq = gradient(q) transpose g(z), and LᵍB = δκ sech²(κq)Lᵍq/(h + ε). Compute LᶠB by automatic differentiation. Project aπ onto the smallest correction satisfying LᶠB + LᵍB a ≤ γB and action bounds; alternatively add λ max(0, LᶠB + LᵍB aπ − γB)² to the training loss. 3. Computed versus estimated: h, gradients, and Lie derivatives are computed by autodiff when f, g, and h₀ are available. Otherwise estimate f and g from short action-conditioned trajectories and validate derivative estimates with finite differences. Clip B only for numerical overflow, not near the evaluation boundary. 4. First cheap experiment: train a small MLP policy on a two-dimensional point-mass or unicycle obstacle-avoidance task using PPO or behavior cloning, comparing no barrier, ordinary 1/h₀, and the scaled barrier. Sweep action-step size and evaluate one-step constraint feasibility. The quantitative prediction is that ordinary 1/h₀ has LᵍB = 0 when Lᵍh₀ = 0, whereas the scaled barrier has LᵍB approximately equal to δκLᵍq/h₀ at q = 0. Measure the fraction of states where the safety projection is feasible and verify that the scaled method retains nonzero action authority near zero radial velocity. Under an accurately learned model, trajectories satisfying the inequality should show zero boundary crossings; robustness should degrade when derivative-estimation error exceeds the available slack γB − (LᶠB + LᵍB aπ).",
 "math_summary": "Let the learned or known dynamics be ż = f(z) + g(z)a, with state z, action a, drift f, and input matrix g. Let the physical safe set be C₀ = {z : h₀(z) ≥ 0}, and assume Lᵍh₀(z) = ∇h₀(z)ᵀg(z) = 0, so the original margin has relative degree two. Define q(z) = Lᶠh₀(z) = ∇h₀(z)ᵀf(z), and choose s(z) = 1 + δ tanh(κq(z)), where 0 \u003c δ \u003c 1 and κ \u003e 0. Then s(z) \u003e 0 everywhere and B(z) = s(z)/h₀(z) is defined on the interior h₀ \u003e 0 and diverges as h₀ approaches zero from above. Since Lᵍh₀ = 0, LᵍB = Lᵍs/h₀, with Lᵍs = δκ sech²(κq)Lᵍq. Thus LᵍB is generically nonzero even when Lᵍh₀ = 0, including near q = 0, where Lᵍs is approximately δκLᵍq. Enforce the reciprocal-barrier condition LᶠB + LᵍB a ≤ α(B), where α is an increasing extended class-K function such as α(B) = γB, to obtain a forward-invariance certificate under the model assumptions.",
 "math_tags": [
  "control-theory",
  "dynamical-systems",
  "optimization",
  "differential-geometry"
 ],
 "ml_areas": [
  "training",
  "regularization",
  "rl",
  "optimizer"
 ],
 "paper": {
  "arxiv_id": "2608.22633",
  "arxiv_url": "https://arxiv.org/abs/2608.22633",
  "summary_what_math_gives_to_ml": "The paper offers a constructive reciprocal-barrier mechanism for constraints with relative degree two: multiplying the singular reciprocal barrier by a strictly positive, motion-dependent scaling factor can make the control appear in the first derivative of the new barrier. The transferable asset is a method for converting an otherwise uncontrollable state-margin barrier into a control-sensitive penalty or safety constraint for learned dynamical systems. A neural policy or differentiable safety layer can use the scaled barrier as a trust-region constraint in latent-state prediction, neural ODE control, or model-based reinforcement learning. The main falsifiable prediction is that control authority remains nonzero near zero constraint velocity while the barrier still diverges at the physical boundary.",
  "title": "Scaling-Based Reciprocal Control Barrier Functions for Nonholonomic Mobile Robots",
  "year": "2026"
 },
 "ratings": {
  "difficulty": 5,
  "novelty": 8,
  "usefulness": 6
 },
 "solves": [
  "stability",
  "accuracy",
  "generalization"
 ],
 "title": "Scaled Reciprocal Safety Layer",
 "url": "https://synthcore.org/idea/2689/scaled-reciprocal-safety-layer",
 "verification": {
  "peer_reviewed": false,
  "status": "unverified",
  "status_label": "Unverified",
  "verdict_source": "deterministic test code (paired-seed permutation statistics)"
 }
}
