HomeDocs-Technical WhitePaper03-EFT.WP.Core.Parameters v1.0

Chapter 3 — Boundaries, Constraints, and Transforms


I. Aims and Scope


II. Objects and Notation


III. Bound Declaration Standards


IV. Constraint Expressions and Feasible Set

  1. Constraint mother form: Theta = { theta | C_eq(theta) = 0, C_ineq(theta) ≤ 0, lb ≤ theta ≤ ub }.
  2. Constraint priority:
    • C_eq (hard constraints)
    • lb/ub (hard bounds)
    • C_ineq (hard or soft; for soft constraints, specify penalty/barrier parameters)
  3. Composite constraint patterns:
    • Linear equality: A theta - b = 0
    • Linear inequality: G theta - h ≤ 0
    • Nonlinear: g(theta) = 0 or g(theta) ≤ 0, with availability of ∂g/∂theta stated
  4. Sharing and coupling: write sharing explicitly as theta_a = theta_b or theta_a def= r * theta_b (with r given or included in theta).

V. Transform Library and Properties

  1. identity: phi = theta, domain/range isomorphic; invertibility is trivial.
  2. log (positive domain): phi = log(theta - lb), domain (lb, +inf), inverse theta = lb + exp(phi), d theta/d phi = exp(phi).
  3. logit (bounded interval): let s = (theta - lb)/(ub - lb), phi = log(s / (1 - s)); inverse theta = lb + (ub - lb) * (1 / (1 + exp(-phi))), d theta/d phi = (ub - lb) * σ(phi) * (1 - σ(phi)), where σ(•) is the logistic.
  4. softplus (unbounded to positive): phi = log(exp(theta) + 1); commonly used for nonnegative quantities with ub = +inf, lb = 0, inverse theta = log(exp(phi) - 1).
  5. zscore (standardization): phi = (theta - mu)/sigma, inverse theta = mu + sigma * phi; used for numerical scale normalization.
  6. Selection guidance:
    • Only lower bound (e.g., scale/rate): prefer log(theta - lb)
    • Known lower and upper bounds: prefer interval mapping logit
    • Need smoothness near zero but allow zero: use softplus with offset theta = softplus(raw) + lb

VI. Impact of Transforms on Priors and Likelihood

  1. One-dimensional density transform: if phi = T(theta) is invertible, then
    p_phi(phi) = p_theta(theta(phi)) * | d theta / d phi |。
  2. Multivariate Jacobian:
    p_phi(phi) = p_theta(theta(phi)) * | det( ∂theta / ∂phi ) |。
  3. Interval prior mapping: for a uniform prior on theta ∈ (lb, ub), under logit
    p_phi(phi) = Uniform(0,1)(σ(phi)) * (ub - lb) * σ(phi)*(1-σ(phi)),where Uniform(0,1)(•) denotes the interval-density indicator。
  4. Recommended practices:
    • When implementing set_prior and set_transform, inject Jacobian corrections automatically to avoid missing factors.
    • Log-posterior writing:
      log post(phi | data) = log L(data | theta(phi)) + log prior_theta(theta(phi)) + log | det( ∂theta / ∂phi ) | - log Z。

VII. Chain Rule and Sensitivities


VIII. Path-Explicit Parameters for Arrival Time

  1. For any parameter related to T_arr (e.g., c_ref, hyper-parameters of n_eff), derivations and calibration must use the fully parenthesized form with explicit path and measure:
    • Constant-factored: T_arr = ( 1 / c_ref ) * ( ∫ n_eff d ell )
    • General form: T_arr = ( ∫ ( n_eff / c_ref ) d ell )
  2. Path notation: declare gamma(ell) and d ell, and provide L_gamma = ∫_gamma 1 d ell; it is forbidden to write ∫ n d ell / c or omit parentheses (these are rejected by validate_equation).

IX. Feasibility Check Workflow (Mx-1)


X. Implementation Binding Use Cases (I30 2 / I30 4)

  1. Bounds and constraints (I30 2):
    • set_bounds(code="n_eff.alpha", lb=0.0, ub=+inf)
    • add_constraint(code="n_eff.alpha", kind="ineq", expr="theta - 1.0 ≤ 0")
    • validate_param_set(codes=["n_eff.alpha","c_ref"]) -> true
  2. Transform and invertibility (I30 4):
    • set_transform(code="n_eff.alpha", name="log", args={"lb":0.0})
    • forward_transform(code="n_eff.alpha", x=1.2) -> phi
    • inverse_transform(code="n_eff.alpha", y=phi) -> 1.2

XI. Bound–Transform Construction Templates


XII. Misuse and Conflict List


XIII. Cross-Volume Binding and Examples


XIV. Output Anchors and Reuse


Copyright & License (CC BY 4.0)

Copyright: Unless otherwise noted, the copyright of “Energy Filament Theory” (text, charts, illustrations, symbols, and formulas) belongs to the author “Guanglin Tu”.
License: This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0). You may copy, redistribute, excerpt, adapt, and share for commercial or non‑commercial purposes with proper attribution.
Suggested attribution: Author: “Guanglin Tu”; Work: “Energy Filament Theory”; Source: energyfilament.org; License: CC BY 4.0.

First published: 2025-11-11|Current version:v5.1
License link:https://creativecommons.org/licenses/by/4.0/