{
  "scope": "Exact finite 1-D distributions, linear critic arithmetic, and WGAN-GP penalty illustration only; no neural network, GAN training, image generation, mode-collapse diagnosis, convergence, quality, or benchmark.",
  "measure_convention": "P and Q each place equal probability on their two listed points; transportation cost is absolute distance on R.",
  "translation_example": {
    "P": [
      -1.0,
      1.0
    ],
    "Q": [
      2.0,
      4.0
    ],
    "translation": 3.0,
    "W1_sorted_optimal_pairing": 3.0,
    "W1_integral_abs_CDF_difference": 3.0,
    "CDF_interval_contributions": [
      {
        "left": -1.0,
        "right": 1.0,
        "F_P": 0.5,
        "F_Q": 0.0,
        "area": 1.0
      },
      {
        "left": 1.0,
        "right": 2.0,
        "F_P": 1.0,
        "F_Q": 0.0,
        "area": 1.0
      },
      {
        "left": 2.0,
        "right": 4.0,
        "F_P": 1.0,
        "F_Q": 0.5,
        "area": 1.0
      }
    ],
    "linear_critic": "f_w(x)=w*x",
    "critic_gap": "E_P[f_w]-E_Q[f_w]=-3w",
    "valid_1Lipschitz_condition": "|w| <= 1",
    "bounded_grid_max": {
      "w": -1.0,
      "gap": 3.0,
      "grid_step": 0.001
    },
    "invalid_unbounded_example": {
      "w": -5.0,
      "gap": 15.0,
      "why_invalid": "|w|>1 violates the Kantorovich-Rubinstein 1-Lipschitz constraint; this score is not W1."
    }
  },
  "finite_WGAN_GP_linear_toy": {
    "maximized_objective": "J(w)=-3w-lambda*(|w|-1)^2",
    "lambda": 10.0,
    "negative_branch": "J(w)=-3w-lambda*(w+1)^2",
    "stationary_formula": "w=-1-3/(2*lambda)",
    "w_stationary": -1.15,
    "critic_gap": 3.4499999999999997,
    "gradient_penalty": 0.22499999999999976,
    "maximized_objective_value": 3.225,
    "sign_reversed_minimized_critic_loss": -3.225,
    "dJ_dw_manual": -1.7763568394002505e-15,
    "dJ_dw_central_difference": -2.220446049250313e-10,
    "slope_magnitude": 1.15,
    "interpretation": "For finite lambda, this sampled-point soft penalty trades critic gap against slope penalty. This linear example has slope 1.15 everywhere; its penalized optimum is not 1-Lipschitz and is not a global Lipschitz certificate."
  },
  "negative_control": {
    "P": [
      -1.0,
      1.0
    ],
    "Q": [
      -1.0,
      1.0
    ],
    "W1_sorted_pairing": 0.0,
    "W1_integral_abs_CDF_difference": 0.0,
    "CDF_interval_contributions": [
      {
        "left": -1.0,
        "right": 1.0,
        "F_P": 0.5,
        "F_Q": 0.5,
        "area": 0.0
      }
    ]
  },
  "checks": {
    "sorted_pairing_matches_CDF_quadrature": true,
    "translation_W1_equals_3": true,
    "bounded_grid_optimum_attains_W1": true,
    "unbounded_score_not_W1": true,
    "GP_stationary_derivative_formula_zero": true,
    "GP_stationary_derivative_FD_zero": true,
    "finite_GP_solution_slope_exceeds_1": true,
    "identical_distribution_negative_control_zero": true
  }
}
