Left to Solve
Problems / MathOverflow (not formalized)

Permutations of the set $\{1,2,...,n\}$ and prime numbers

Open, not yet stated in LeanMathOverflow (not formalized)Number Theorydifficulty55/100

Statement

Here is the version of this question that I posted on math.stackexchange a few days ago and I did not receive an answer that settles my question so I thought that maybe on this site I could get a complete answer.

First, I would like to say that I am aware of the extremely similar question of the user @David S. Newman posted here a few hours ago and also I would like to note why this is not a duplicate of that question and what are the (small) differences.

In the question by @David S. Newman he also considers the first and the last element of the permutation of the set as adjacent so every permutation that works in his case works also in my case but it could be that there are permutations that work in my case but do not work in his case.

Another difference from my and his question is that for my question the permutations of the set with an odd number of elements can exist and in his case cannot exist because elements must follow either the pattern "odd,even,odd,...,odd" or the pattern "even,odd,even,...,even" so the sum of the first and last element will be even number strictly greater than .

Also, another difference is that I ask for the …

Posed by Farewell · nt.number-theory, prime-numbers

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-241602.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-241602.lean

import Mathlib

/-!
# Permutations of the set $\{1,2,...,n\}$ and prime numbers

Source: https://mathoverflow.net/questions/241602
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_241602

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

theorem main : sorry := by
  sorry

end OMA.S_mo_241602