Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_QED_M111.lean
qedmarket’s copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source ↗
/-From Prove2Me, definition `QED_M111` (https://prove2.me/definitions/3eaf1c72-ac53-49cd-8ba0-f3597becf70c). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-! QED-M111: An APN permutation of GF(2^8)A function f on the field with 256 elements is almost perfect nonlinear (APN) if, for every nonzero shift a, the difference f(x+a)+f(x) takes each value at most twice. APN bijections would be ideal S-boxes against differential attacks. In even dimension the only APN bijections known live on 64 elements (found in 2009). Does an APN bijection of GF(2^8) exist?Informal statement: Does there exist a bijection $f:\mathbb F_{2^8}\to\mathbb F_{2^8}$ such that for all $a\in\mathbb F_{2^8}^{\times}$ and all $b\in\mathbb F_{2^8}$, $\#\{x\in\mathbb F_{2^8}: f(x+a)+f(x)=b\}\le 2$?Formalization notes: `𝔽_{2^8}` is Mathlib's `GaloisField 2 8` (the splitting field of`X^(2^8) - X` over `ZMod 2`, a field with exactly 256 elements, unique up to isomorphism;`Fact (Nat.Prime 2)` is a global instance). Only its additive group (≅ (ZMod 2)^8) isactually used, so the choice of model is immaterial. A bijection is an`Equiv`. The count `#{x | f(x+a) + f(x) = b}` is `Set.ncard` of a subset of a finitetype, hence the true cardinality. In characteristic 2, `+` equals `-`, matching the usualderivative `f(x+a) - f(x)`. Claim is the existence statement; ¬Claim says no APNpermutation of `GF(2^8)` exists. Either is a resolution.-/namespace OpenProblems.QEDM111noncomputable section /-- `f` is almost perfect nonlinear on `GF(2^8)`. -/def IsAPN (f : GaloisField 2 8 → GaloisField 2 8) : Prop := ∀ a : GaloisField 2 8, a ≠ 0 → ∀ b : GaloisField 2 8, {x : GaloisField 2 8 | f (x + a) + f x = b}.ncard ≤ 2 def Claim : Prop := ∃ f : GaloisField 2 8 ≃ GaloisField 2 8, IsAPN f endend OpenProblems.QEDM111