Documentation

Complexitylib.Algebraic.Analysis.Polarity

Polarity propagation #

The four-point polarity domain records independence, positive dependence, negative dependence, or mixed dependence. A local polarity for each operation argument induces a compositional analysis of every circuit. As with degree, a concrete monotonicity theorem only needs to establish soundness of the selected local policy.

Abstract dependence polarity.

Instances For
    @[instance_reducible]
    Equations
    Equations
    Instances For
      def Algebraic.Polarity.inputProfile {n : ℕ} (input : Fin n) :

      One-hot positive dependency profile of an original input.

      Equations
      Instances For
        @[reducible, inline]

        Local polarity of every argument of every operation.

        Equations
        Instances For

          Polarity interpretation induced by a local argument policy.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Cslib.Circuits.Circuit.polarityProfile {σ : Signature} {n m : ℕ} (circuit : Circuit σ n m) (policy : Algebraic.PolarityPolicy σ) :

            Per-output, per-input polarity profile of a circuit.

            Equations
            Instances For
              theorem Algebraic.Translation.compile_polarityProfile {σ : Signature} {τ : Signature} {n m : ℕ} (translation : Translation σ τ) (circuit : Circuit σ n m) (targetPolicy : PolarityPolicy τ) :
              (translation.compile circuit).polarityProfile targetPolicy = circuit.eval (translation.pull (τ.polarityInterpretation targetPolicy n)) Polarity.inputProfile

              Translation preserves the exact abstract polarity propagation induced by its target operation gadgets.