Single-cycle certificate for robust within-stratum identification
ProvedMindUploadIdentification.stratified_assignment_margin_iff_single_cyclesLet be a complete identification-score matrix and label each target by its stratum. A permutation is admissible when the stratum of is that of for every target . For a nonnegative entry-error allowance , define the adjusted gap against by
Prove that for every admissible nonidentity permutation if and only if it holds for every admissible permutation consisting of a single nontrivial cycle with all other targets fixed. Thus the complete score matrix can be tested cycle by cycle rather than by considering permutations with multiple disjoint cycles. This reduction does not say that cycles of length two suffice. For example, using the rows , and in one stratum at , all swaps score less than the identity, but one three-cycle scores higher.
An adjusted gap controls sensitivity to the indicated bounded score errors, not statistical power or validity of the exchangeability assumption.
import Mathlib.GroupTheory.Perm.Cycle.Factors import Mathlib.Data.Real.Basic import Mathlib.Algebra.Order.BigOperators.Group.Finset open scoped BigOperators
namespace MindUploadIdentification
theorem stratified_assignment_margin_iff_single_cycles
(n : Nat) (stratum : Fin n → Nat) (S : Fin n → Fin n → ℝ) (ε : ℝ) :
let preserves : Equiv.Perm (Fin n) → Prop := fun π => ∀ j, stratum (π j) = stratum j
let gap : Equiv.Perm (Fin n) → ℝ := fun π =>
∑ j, if π j = j then 0 else S j j - S (π j) j - 2 * ε
(∀ π, preserves π → π ≠ 1 → 0 < gap π) ↔
(∀ π, preserves π → π.IsCycle → 0 < gap π) := by sorry
end MindUploadIdentification