theorem
MindFormal.DescribedChoice.composition_separation
{K : Type u_1}
[Fintype K]
(gain loss positive negative : K → ℝ)
(F1 F2 : ℝ)
(hpositive : ∀ (k : K), 0 ≤ positive k)
(hnegative : ∀ (k : K), 0 ≤ negative k)
(hdominance : ∀ (k : K), gain k ≤ loss k)
(hstrict : ∃ (k : K), 0 < positive k + negative k ∧ gain k < loss k)
(hF1 : 0 ≤ F1)
(hF2 : 0 ≤ F2)
:
have shortfall := ∑ k : K, (positive k + negative k) / 2 * (loss k - gain k);
have bias := ∑ k : K, (positive k - negative k) / 2 * (gain k + loss k);
have delta1 := -F1 + ∑ k : K, (positive k * gain k - negative k * loss k);
have delta2 := -F2 + ∑ k : K, (negative k * gain k - positive k * loss k);
0 < shortfall ∧ delta1 = -F1 - shortfall + bias ∧ delta2 = -F2 - shortfall - bias ∧ (delta1 < 0 ∧ delta2 < 0 ↔ -F2 - shortfall < bias ∧ bias < F1 + shortfall) ∧ (|(-F1)| > |(-shortfall)| ↔ F1 > shortfall) ∧ (|(-F2)| > |(-shortfall)| ↔ F2 > shortfall) ∧ ((∀ (k : K), positive k = negative k) →
bias = 0 ∧ shortfall = ∑ k : K, positive k * (loss k - gain k) ∧ delta1 = -F1 - shortfall ∧ delta2 = -F2 - shortfall)
PI5b.7, with its unsymmetrized continuation. Every finite paired composition family is allowed; unequal weights retain an explicit bias with opposite signs in the two queries. Equal weights are a specialization.