MindFormal v1.0.0One Mind

MindFormal.Tools.A695LogicPaper.FiniteBits

def MindFormal.A695LogicPaper.PrivatePaper.finiteWord {Ω : Type u_1} (bits : ℕ → Ω → Bool) (count : ℕ) (ω : Ω) :
Fin count → Bool
Equations
Instances For
    def MindFormal.A695LogicPaper.PrivatePaper.extendWord {count : ℕ} (word : Fin count → Bool) (k : ℕ) :
    Equations
    Instances For
      theorem MindFormal.A695LogicPaper.PrivatePaper.bitWordEvent_iff {Ω : Type u_1} (bits : ℕ → Ω → Bool) (word : ℕ → Bool) (count : ℕ) (ω : Ω) :
      ω ∈ bitWordEvent bits word count ↔ ∀ k < count, bits k ω = word k
      theorem MindFormal.A695LogicPaper.PrivatePaper.finiteWord_atom {Ω : Type u_1} (bits : ℕ → Ω → Bool) (count : ℕ) (word : Fin count → Bool) :
      {ω : Ω | finiteWord bits count ω = word} = bitWordEvent bits (extendWord word) count
      theorem MindFormal.A695LogicPaper.PrivatePaper.finiteWord_measurable {Ω : Type u_1} [MeasurableSpace Ω] (bits : ℕ → Ω → Bool) (count : ℕ) (hm : ∀ (k : ℕ), Measurable (bits k)) :
      Measurable (finiteWord bits count)
      theorem MindFormal.A695LogicPaper.PrivatePaper.uniform_fiber_probability {Ω : Type u_1} [MeasurableSpace Ω] {W : Type u_2} [Fintype W] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsFiniteMeasure μ] (X : Ω → W) (hX : ∀ (w : W), MeasurableSet {ω : Ω | X ω = w}) (B : Set Ω) (hB : MeasurableSet B) (c : ℝ) (hatom : ∀ (w : W), μ.real (B ∩ {ω : Ω | X ω = w}) = c * μ.real B) (p : W → Prop) :
      μ.real (B ∩ {ω : Ω | p (X ω)}) = (∑ w : W, if p w then 1 else 0) * c * μ.real B

      Exact finite disjoint-atom calculation. The probabilities of complete input words, rather than separate bit marginals, are consumed here.

      def MindFormal.A695LogicPaper.SecurityProgram.blocksEquiv (digits attempts : ℕ) :
      (Fin (attempts * digits) → Bool) ≃ (Fin attempts → Fin (2 ^ digits))

      Consecutive groups of the actual little-endian input digits. This bijection is used for counting only, not to supply the program an integer.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.A695LogicPaper.SecurityProgram.blocksEquiv_value (digits attempts : ℕ) (word : Fin (attempts * digits) → Bool) (i : Fin attempts) :
        ↑((blocksEquiv digits attempts) word i) = BooleanArithmetic.wordValue fun (j : Fin digits) => word (finProdFinEquiv (i, j))