File size: 1,419 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | import Mathlib
import OAI.Computability.MaxCut.Games.MatrixGap
import OAI.Computability.MaxCut.Games.AffineWitness
namespace OAI
namespace MaxCutGames.Inverse.AffineWitness
theorem first_bit_witness {m β r : β}
(e : (Fin m β F2) ββ[F2] F2)
(A : (Fin β β F2) ββ[F2] (Fin r β F2))
(Z : Submodule F2 (Fin m β F2))
(Mβ : (Fin m β F2) ββ[F2] (Fin β β F2))
(z : Fin m β F2) (u : Fin β β F2)
(F : ((Fin m β F2) ββ[F2] (Fin β β F2)) β (Fin β β F2))
(hfold : β (h : A.ker) M, F (shift e h M) = F M + h)
(Ξ± : β) (hΞ± : 0 < Ξ±)
(hgood : Ξ± / 2 β€
(Nat.card {M : Slice A Z Mβ // F M = M.val z + u} : β) /
(Nat.card (Slice A Z Mβ) : β))
(hsmall : 1 / (2 : β) ^ (β - r) < Ξ± / 8) :
β z' : Fin m β F2, β u' : Fin β β F2, e z' = 1 β§
β M, InSlice A Z Mβ M β M z' + u' = M z + u := by
have hpow : (0 : β) < 2 ^ (β - r) := pow_pos (by norm_num) _
have hsep := (div_lt_iffβ hpow).mp hsmall
have hk : (2 : β) ^ (β - r) β€ (Nat.card A.ker : β) := by
exact_mod_cast binary_kernel_card_lower A
have hscale := mul_le_mul_of_nonneg_left hk hΞ±.le
have hsize : 1 < (Ξ± / 2) * (Nat.card A.ker : β) := by
nlinarith only [hsep, hscale]
exact normalize_of_density e A Z Mβ z u F hfold (Ξ± / 2) hgood hsize
end MaxCutGames.Inverse.AffineWitness
end OAI
|