A054391: Number of permutations with certain forbidden subsequences.
Statement
From Gus Wiseman, Jun 22 2019: Conjecture: Also the number of non-capturing set partitions of {1..n}. A set partition is capturing if it has two blocks of the form {...x...y...} and {...z...t...} where x < z and y > t or x > z and y < t. This is a weaker condition than nesting, so for example {{1,3,5},{2,4}} is capturing but not nesting. The a(0) = 1 through a(4) = 14 non-capturing set partitions are: {} {{1}} {{1,2}} {{1,2,3}} {{1,2,3,4}} {{1},{2}} {{1},{2,3}} {{1},{2,3,4}} {{1,2},{3}} {{1,2},{3,4}} {{1,3},{2}} {{1,2,3},{4}} {{1},{2},{3}} {{1,2,4},{3}} {{1,3},{2,4}} {{1,3,4},{2}} {{1},{2},{3,4}} {{1},{2,3},{4}} {{1,2},{3},{4}} {{1},{2,4},{3}} {{1,3},{2},{4}} {{1,4},{2},{3}} {{1},{2},{3},{4}} Cf. A000108, A000110, A058681, A326212, A326237, A326243, A326244, A326249, A326255. · The above conjecture is true: A partition is non-capturing iff its representation in canonical sequential form
Posed by Christian Sievers, Paul Barry · OEIS
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/oeis-a054391.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. 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/oeis-a054391.lean
import Mathlib /-! # A054391: Number of permutations with certain forbidden subsequences. Source: https://oeis.org/A054391 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_oeis_a054391 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a054391