Example 4.2 — ternary tree with : for
ProvedScenarioReduction.TernaryTree.example_4_2Consider the regular ternary scenario tree with , scenarios of equal probability , widths
and cost . Then for each with ,
and the minimum is attained.
This is the ternary test instance of the paper's numerical section; Proposition 3.2 applies with , and the instance shows that the proposition's hypotheses can be met.
Formalization Note The minimum is stated as IsLeast of the set of values over all with and a nonempty complement.
import Mathlib import Definitions.Def_ScenarioReduction_TernaryTree_scenario import Definitions.Def_ScenarioReduction_TernaryTree_redCost
namespace ScenarioReduction.TernaryTree
theorem example_4_2 (δ : ℕ → ℝ)
(hδ : δ 1 = 0.7 ∧ δ 2 = 0.9 ∧ δ 3 = 1.2 ∧ δ 4 = 1.5 ∧ δ 5 = 2.6 ∧ δ 6 = 3.3)
(n : ℕ) (hn : 162 ≤ n) (hnN : n < 729) :
IsLeast {x : ℝ | ∃ (J : Finset (Fin 6 → Fin 3)) (hJ : Jᶜ.Nonempty), J.card = 729 - n ∧
x = redCost (fun _ => 1 / (729 : ℝ))
(fun i j => ‖scenario δ i - scenario δ j‖) J hJ}
(0.7 * ((729 : ℝ) - n) / 729) := by sorry
end ScenarioReduction.TernaryTree
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let satisfy
where these are exact decimals. All other values of are unconstrained.
- The branch assignments are the maps .
- Each has a scenario vector with for . Only enter.
- Distances use the sup norm .
- For a set of assignments with nonempty complement , the reduction cost is
Hypotheses. with .
Claim. Consider the set of reals
Its least element is . This means two things:
- the value is attained, i.e. some admissible has exactly this cost;
- for every admissible .
Equivalently, has exactly elements, so scenarios are retained and are deleted.
Degenerate cases.
- Since , the count is genuine subtraction.
- Since , the complement is automatically nonempty.
- Every in the range is covered. At , is a single assignment.
- and for play no role.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.