Counting sets whose alternation is preserved by a permutation
Statement
Say a set is alternating if successive elements of are of opposite parity. That is to say for any , if then .
For a permutation , say that a set is good for if is alternating and is alternating.
What I would like to prove is that for a randomly chosen permutation (say, under the uniform distribution), the number of good sets is just as likely to be odd as even. Any pointers on relevant results or methods would be much appreciated.
Actually, for my application, I only need that the number of good sets is odd with probability bounded away from as grows. It doesn't have to be , but my guess is that this is indeed the case.
Posed by Anuj Dawar · co.combinatorics, permutations, random-permutations
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-375868.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-375868.lean
import Mathlib /-! # Counting sets whose alternation is preserved by a permutation Source: https://mathoverflow.net/questions/375868 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_375868 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_375868