{
  "kind": "independent checks of an offline teaching model",
  "checks": {
    "shape_s_integral_vs_model_x0.01": {
      "value": 2.49882e-05,
      "reference": 2.49882e-05,
      "relative_tolerance": 0.0002,
      "passed": true,
      "note": "Model F(x) from the y-substitution against the Gondolo-Gelmini integral over s."
    },
    "shape_s_integral_vs_model_x1": {
      "value": 0.137227,
      "reference": 0.137227,
      "relative_tolerance": 0.0002,
      "passed": true,
      "note": "Model F(x) from the y-substitution against the Gondolo-Gelmini integral over s."
    },
    "shape_s_integral_vs_model_x20": {
      "value": 0.863896,
      "reference": 0.863896,
      "relative_tolerance": 0.0002,
      "passed": true,
      "note": "Model F(x) from the y-substitution against the Gondolo-Gelmini integral over s."
    },
    "shape_s_integral_vs_model_x300": {
      "value": 0.990066,
      "reference": 0.990066,
      "relative_tolerance": 0.0002,
      "passed": true,
      "note": "Model F(x) from the y-substitution against the Gondolo-Gelmini integral over s."
    },
    "shape_low_x_limit": {
      "value": 2.49998e-07,
      "reference": 2.5e-07,
      "relative_tolerance": 0.002,
      "passed": true,
      "note": "F -> x^2/4 when the particles are relativistic."
    },
    "shape_high_x_limit": {
      "value": 0.9994,
      "reference": 1.0,
      "relative_tolerance": 0.001,
      "passed": true,
      "note": "F -> 1 when the particles are slow."
    },
    "time_domain_wimpFreezeOut": {
      "value": 4.37457e-12,
      "reference": 4.37327e-12,
      "relative_tolerance": 0.005,
      "passed": true,
      "note": "Radau in time with Friedmann H and dimensional n_eq, against the BDF2 solution in Y."
    },
    "time_domain_strongerAnnihilation": {
      "value": 5.24336e-14,
      "reference": 5.24135e-14,
      "relative_tolerance": 0.005,
      "passed": true,
      "note": "Radau in time with Friedmann H and dimensional n_eq, against the BDF2 solution in Y."
    },
    "time_domain_relentlessKination": {
      "value": 1.46588e-10,
      "reference": 1.46582e-10,
      "relative_tolerance": 0.005,
      "passed": true,
      "note": "Radau in time with Friedmann H and dimensional n_eq, against the BDF2 solution in Y."
    },
    "memory_loss_empty_start": {
      "value": 4.37457e-12,
      "reference": 4.37327e-12,
      "relative_tolerance": 0.005,
      "passed": true,
      "note": "Starting with 1e-20 of the equilibrium number gives the same relic once reactions are fast."
    },
    "freeze_in_double_integral_vs_closed_form": {
      "value": 4.37348e-12,
      "reference": 4.37819e-12,
      "relative_tolerance": 0.002,
      "passed": true,
      "note": "Collision-rate double integral against (3 pi^2/32) a^2 A sigma0."
    },
    "freeze_in_solver_vs_double_integral": {
      "value": 4.37346e-12,
      "reference": 4.37348e-12,
      "relative_tolerance": 0.003,
      "passed": true,
      "note": "BDF2 empty-start solution against the double integral."
    },
    "lee_weinberg_c10_c12_constant_sigma": {
      "value": 4.10876e-12,
      "reference": 3.96795e-12,
      "relative_tolerance": 0.08,
      "passed": true,
      "note": "D'Eramo et al. eqs. C10 and C12 with c = sqrt(2) - 1 give x_f = 21.7. The matching formula is an estimate."
    },
    "published_cross_section_100_gev": {
      "value": 1.82982e-09,
      "reference": 1.7e-09,
      "relative_tolerance": 0.12,
      "passed": true,
      "note": "D'Eramo et al. Fig. 1: 1.7e-9 GeV^-2 gives the observed density for m = 100 GeV with the full g*(T). This model uses constant g* = 86.25 and the contact shape F."
    },
    "steigman_eq12_rate_over_hubble": {
      "value": 1.27752,
      "reference": 1.27767,
      "relative_tolerance": 0.002,
      "passed": true,
      "note": "Friedmann H and the leading slow-particle density against the published coefficient 8.00e34 (m in GeV, <sigma v> in cm^3/s)."
    },
    "steigman_eq26_cross_section_for_observed_density": {
      "value": 2.136e-26,
      "reference": 1.9802e-26,
      "relative_tolerance": 0.12,
      "passed": true,
      "note": "Fit to the full calculation with g*(T) for m above 10 GeV; this model holds g* = 86.25 and uses the contact shape F."
    },
    "relentless_log_law_c16_c18": {
      "value": 3562940000.0,
      "reference": 3565220000.0,
      "relative_tolerance": 0.02,
      "passed": true,
      "note": "Inverse yield grows by (A sigma0/x_r) times the integral of F dln x between x = 200 and x_r/10."
    },
    "deramo_eq20_printed_vs_used": {
      "printed_prediction": 3.353e-09,
      "with_factor_A_over_m_Mpl": 2.726e-10,
      "time_domain_value": 2.807e-10,
      "A_over_m_Mpl": 12.3,
      "note": "Eq. (20) as printed omits A/(m M_Pl); restoring it from eqs. C3, C16 and C18 brings the estimate within a few percent of the numerical value, while the printed form is about 12 times too large."
    },
    "deramo_eq19_printed_vs_used": {
      "n1": {
        "x_f_standard": 22.22,
        "x_f_modified": 19.53,
        "left_over_printed_right": 0.003963,
        "left_over_consistent_right": 1.015
      },
      "n2": {
        "x_f_standard": 22.22,
        "x_f_modified": 16.7,
        "left_over_printed_right": 1.161e-05,
        "left_over_consistent_right": 1.04
      },
      "n4": {
        "x_f_standard": 22.22,
        "x_f_modified": 10.39,
        "left_over_printed_right": 2.134e-11,
        "left_over_consistent_right": 1.147
      },
      "equality_temperature_gev": 0.02,
      "note": "Eq. (19) as printed has (T_f/T_r)^(n/2) on the right. Eqs. C12 and C22 imply (T_r/T_f)^(n/2). With the time-domain freeze-out points the printed form misses by orders of magnitude, while the inverted factor holds to within the accuracy of the matching estimate."
    },
    "deramo_fig1_digitized_vs_model": {
      "n0": {
        "digitized_figure": 4.5e-12,
        "model_constant_g_star": 4.408e-12,
        "model_with_g_star_step_in_extra_fluid": 4.408e-12,
        "boost_to_extra_fluid_share": 2.002
      },
      "n1": {
        "digitized_figure": 6.2e-11,
        "model_constant_g_star": 3.245e-11,
        "model_with_g_star_step_in_extra_fluid": 6.184e-11,
        "boost_to_extra_fluid_share": 4.008
      },
      "n2": {
        "digitized_figure": 3.8e-10,
        "model_constant_g_star": 1.537e-10,
        "model_with_g_star_step_in_extra_fluid": 3.728e-10,
        "boost_to_extra_fluid_share": 8.023
      },
      "n4": {
        "digitized_figure": 1.5e-09,
        "model_constant_g_star": 5.359e-10,
        "model_with_g_star_step_in_extra_fluid": 1.295e-09,
        "boost_to_extra_fluid_share": 32.16
      },
      "cross_section_gev_minus2": 1.7e-09,
      "equality_temperature_gev": 0.02,
      "note": "Constant cross-section as in the figure. Holding g* fixed leaves the faster-expansion curves 2 to 3 times below the figure; restoring the g* step in the extra fluid term of eq. (6) brings them within about 15 percent of the digitized values."
    }
  },
  "failure_cases": {
    "explicit_euler_wimp": {
      "diverged_at_x": 0.00102,
      "step_times_rate": 29800.0,
      "note": "Forward Euler with the same 250 steps per e-fold: the step is far longer than the equilibration time, so it blows up."
    },
    "non_relativistic_equilibrium_freeze_in": {
      "yield_ratio_to_correct": 0.05725,
      "note": "Using the slow-particle formula x^(3/2) e^-x for Y_eq at x < 1 misstates freeze-in, which happens near x of 1 to 3."
    },
    "constant_sigma_v_freeze_in_start_dependence": {
      "yield_start_1e-3": 1.891e-08,
      "yield_start_1e-2": 1.871e-09,
      "ratio": 10.1,
      "note": "With a constant <sigma v>, freeze-in depends on the starting temperature (about 1/x_start): the answer is set by the unknown hot past."
    }
  }
}
