Documentation

LCS.Common

Common Utilities for LCS Games #

This module provides technical lemmas and definitions for signs, indicator functions, and basic properties of the outcome space $\mathbb{F}_2$.

Key Definitions #

Key Lemmas #

theorem fin2_eq_zero_or_one (a : Fin 2) :
a = 0 a = 1
theorem sign_mul (a b : Fin 2) :
(-1) ^ a * (-1) ^ b = (-1) ^ ↑(a + b)
theorem sign_indicator (b s : Fin 2) :
1 / 2 + 1 / 2 * (-1) ^ b * (-1) ^ s = if s = b then 1 else 0

Arithmetic helper: the sign factor $(1/2)(1 + (-1)^b * (-1)^s)$ equals the indicator s = b.

def observableSign (a : Fin 2) :
Equations
Instances For
    theorem sign_fin2_sq (x : Fin 2) :
    (-1) ^ x * (-1) ^ x = 1
    theorem prod_sign_eq_sum_sign_aux {G : LCSLayout} {i : Fin G.r} (x : Assignment G i) (s : Finset (G.V i)) :
    js, (-1) ^ (x j) = (-1) ^ (∑ js, x j)
    theorem prod_sign_eq_sum_sign {G : LCSLayout} (i : Fin G.r) (x : Assignment G i) :
    j(G.V i).attach, (-1) ^ (x j) = (-1) ^ (∑ j : (G.V i), x j)