Sensitivity separation: reindex #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Combinatorics/Sensitivity/Reindex.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical proofs are retained.
def
Complexity.BooleanAnalysis.Sensitivity.Internal.reindex
{I J : Type}
(e : I ≃ J)
(f : (I → Bool) → Bool)
:
Transport a Boolean function along an equivalence of its coordinate types.
Equations
- Complexity.BooleanAnalysis.Sensitivity.Internal.reindex e f x = f fun (i : I) => x (e i)
Instances For
theorem
Complexity.BooleanAnalysis.Sensitivity.Internal.flip_reindex
{I J : Type}
(e : I ≃ J)
(x : J → Bool)
(B : Finset I)
: