Left to Solve
Problems / MathOverflow (not formalized)

Complexity of finding a permutation involving alternating sums

Open, not yet stated in LeanMathOverflow (not formalized)Computational ComplexityCombinatoricsdifficulty55/100

Statement

Consider the following variation of the problem considered in this question.

Given a finite multi-set containing positive integers (represented in unary), decide whether there exists an ordering of such that

• ;

• for .

What is the complexity of this problem? Is it in P, or is it NP-complete? (It is clearly in NP.)

Remark 1. As in the previous problem, it is still true that the sets of odd- and even-numbered elements sum to the same number . However, it seems less clear how to order the elements in such a pair of partitions in order to satisfy the second constraint. Observe also that reversing any ordering with the desired properties yields another one.

Remark 2. In contrast to the earlier problem, having a partition is not sufficient. For example, clearly may contain at most two s (since these would have to be at the beginning and the end of the sequence), so e.g. does not work despite having a partition.

Remark 3. For an example where there are no s and all elements are disjoined, consider . …

Posed by Lasse Rempe · computational-complexity, partitions, np

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-508213.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-508213.lean

import Mathlib

/-!
# Complexity of finding a permutation involving alternating sums

Source: https://mathoverflow.net/questions/508213
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_508213

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_508213