Sensitivity separation: recursive definitions #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Combinatorics/Sensitivity/RecursiveDefinitions.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical proofs are retained.
The reversed gate index among all indices except the final target index.
Instances For
noncomputable def
Complexity.BooleanAnalysis.Sensitivity.Internal.rowClause
{k r h : ℕ}
{I : Type}
(T : Tournament k)
(label : Fin k → Fin k → Fin r)
(F : Fin (h + 1) → (I → Bool) → Bool)
(q : Fin h)
(x : (Fin k × Fin r) × I → Bool)
(i : Fin k)
:
A clause uses every target in its own row and one labeled gate per outgoing edge.
Equations
- One or more equations did not get rendered due to their size.
Instances For
noncomputable def
Complexity.BooleanAnalysis.Sensitivity.Internal.recursiveFamily
{k r h : ℕ}
{I : Type}
(T : Tournament k)
(label : Fin k → Fin k → Fin r)
(F : Fin (h + 1) → (I → Bool) → Bool)
(q : Fin h)
(x : (Fin k × Fin r) × I → Bool)
:
The next-level predicate is the disjunction of the literal row clauses.
Equations
- Complexity.BooleanAnalysis.Sensitivity.Internal.recursiveFamily T label F q x = decide (∃ (i : Fin k), Complexity.BooleanAnalysis.Sensitivity.Internal.rowClause T label F q x i = true)
Instances For
theorem
Complexity.BooleanAnalysis.Sensitivity.Internal.rowClause_nested
{k r h : ℕ}
{I : Type}
(T : Tournament k)
(label : Fin k → Fin k → Fin r)
(F : Fin (h + 1) → (I → Bool) → Bool)
(hF : NestedFamily F)
{q q' : Fin h}
(hqq : q ≤ q')
(x : (Fin k × Fin r) × I → Bool)
(i : Fin k)
(hi : rowClause T label F q' x i = true)
:
theorem
Complexity.BooleanAnalysis.Sensitivity.Internal.recursiveFamily_nested
{k r h : ℕ}
{I : Type}
(T : Tournament k)
(label : Fin k → Fin k → Fin r)
(F : Fin (h + 1) → (I → Bool) → Bool)
(hF : NestedFamily F)
:
NestedFamily (recursiveFamily T label F)
theorem
Complexity.BooleanAnalysis.Sensitivity.Internal.recursive_coordinates_card
{k r : ℕ}
{I : Type}
[Fintype I]
: