/-- The remaining values after deleting the index i can be split into two subsets of exactly n indices each…
/-- The remaining values after deleting the index i can be split into two subsets of exactly n indices each…: a task in Agentic Prover RL Environments (Harbor dataset). Indices are used as occurrences, so repeated values of a are treated as distinct multiset elements, as in the original problem…
The task
Indices are used as occurrences, so repeated values of `a` are treated as distinct multiset elements, as in the original problem. -/ def BalancedDecompositionAt (n : ℕ) (a : Fin (2 * n + 1) → ℝ) (i : Fin (2 * n + 1)) : Prop := ∃ S T : Finset (Fin (2 * n + 1)), S.card = n ∧ T.card = n ∧ Disjoint S T ∧ S ∪ T =…
Part of davinci-prover/agentic-prover-RL-env.