MindFormal v1.0.0One Mind

MindFormal.Tools.CalibrationTransfer.Worlds

@[reducible, inline]

Outcome, presented bit, selected coordinate, and a private mixture coin. Only the first three coordinates are accessible to the response program.

Equations
Instances For

    Algebraically simplified mixture weights. The zero branch is kept; at mu=1/2 the remaining off-diagonal non-outcome branch has zero mass.

    Equations
    Instances For
      Equations
      Instances For
        theorem MindFormal.CalibrationTransfer.caseWeight_nonneg {μ : ℝ} (hμ : 0 ≤ μ) (hhalf : μ ≤ 1 / 2) (z : CoupledCase) :
        noncomputable def MindFormal.CalibrationTransfer.casePMF (μ : ℝ) (hμ : 0 ≤ μ) (hhalf : μ ≤ 1 / 2) :
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          The selected coordinate is independent and fair; the fresh outcome has prevalence mu; either presented bit is fair conditional on the outcome.

          Equations
          Instances For
            Equations
            Instances For
              Equations
              Instances For
                def MindFormal.CalibrationTransfer.mass {α : Type u_1} [Fintype α] (w : α → ℝ) (P : α → Prop) [DecidablePred P] :
                Equations
                Instances For
                  theorem MindFormal.CalibrationTransfer.selector_independent (μ : ℝ) (z : JointCase) (s : Bool) :
                  (mass (caseWeight μ) fun (c : CoupledCase) => plusCase c = z ∧ c.2.2.1 = s) = plusWeight μ z / 2 ∧ (mass (caseWeight μ) fun (c : CoupledCase) => minusCase c = z ∧ c.2.2.1 = s) = minusWeight μ z / 2

                  The independently selected coordinate is fair even conditional on the whole hidden joint case. In particular training cannot encode the other bit through its selector.

                  theorem MindFormal.CalibrationTransfer.casePMF_map {Y : Type u_1} [DecidableEq Y] {μ : ℝ} (hμ : 0 ≤ μ) (hhalf : μ ≤ 1 / 2) (f : CoupledCase → Y) (y : Y) :
                  (PMF.map f (casePMF μ hμ hhalf)) y = ENNReal.ofReal (mass (caseWeight μ) fun (c : CoupledCase) => f c = y)

                  The PMF pushforward is the finite real marginal computed above. This connects the displayed tables to genuine probability laws.

                  Pointwise coupling of all presented data, including which bit was chosen. Equality is derived from the two hidden completions.

                  theorem MindFormal.CalibrationTransfer.individual_bits (μ : ℝ) (h b : Bool) :
                  (mass (plusWeight μ) fun (z : JointCase) => z.1 = h ∧ z.2.1 = b) = (if h = true then μ else 1 - μ) / 2 ∧ (mass (plusWeight μ) fun (z : JointCase) => z.1 = h ∧ z.2.2 = b) = (if h = true then μ else 1 - μ) / 2 ∧ (mass (minusWeight μ) fun (z : JointCase) => z.1 = h ∧ z.2.1 = b) = (if h = true then μ else 1 - μ) / 2 ∧ (mass (minusWeight μ) fun (z : JointCase) => z.1 = h ∧ z.2.2 = b) = (if h = true then μ else 1 - μ) / 2

                  Each individual bit is fair conditional on either outcome, in both worlds. This includes the rare and the nonrare outcomes.

                  theorem MindFormal.CalibrationTransfer.minus_mixture {μ : ℝ} (hμ : 0 < μ) (hhalf : μ ≤ 1 / 2) :
                  0 ≤ μ / (1 - μ) ∧ μ / (1 - μ) ≤ 1 ∧ (1 - μ) * (μ / (1 - μ)) / 2 = μ / 2 ∧ (1 - μ) * (1 - μ / (1 - μ)) / 2 = (1 - 2 * μ) / 2

                  The non-outcome diagonal mixture in the minus world has exactly the printed weight mu/(1-mu); the remaining branch is nonnegative.

                  theorem MindFormal.CalibrationTransfer.test_cell (μ : ℝ) :
                  (mass (plusWeight μ) fun (z : JointCase) => z.2.1 = true ∧ z.2.2 = true) = μ / 2 ∧ (mass (minusWeight μ) fun (z : JointCase) => z.2.1 = true ∧ z.2.2 = true) = μ / 2 ∧ (mass (plusWeight μ) fun (z : JointCase) => z.1 = true ∧ z.2.1 = true ∧ z.2.2 = true) = μ / 2 ∧ (mass (minusWeight μ) fun (z : JointCase) => z.1 = true ∧ z.2.1 = true ∧ z.2.2 = true) = 0

                  Both test cells have positive mass mu/2, while their outcome masses are respectively mu/2 and zero.

                  theorem MindFormal.CalibrationTransfer.test_posterior {μ : ℝ} (hμ : 0 < μ) :
                  ((mass (plusWeight μ) fun (z : JointCase) => z.1 = true ∧ z.2.1 = true ∧ z.2.2 = true) / mass (plusWeight μ) fun (z : JointCase) => z.2.1 = true ∧ z.2.2 = true) = 1 ∧ ((mass (minusWeight μ) fun (z : JointCase) => z.1 = true ∧ z.2.1 = true ∧ z.2.2 = true) / mass (minusWeight μ) fun (z : JointCase) => z.2.1 = true ∧ z.2.2 = true) = 0
                  noncomputable def MindFormal.CalibrationTransfer.caseStream (μ : ℝ) (hμ : 0 ≤ μ) (hhalf : μ ≤ 1 / 2) :

                  Infinitely many fresh paired cases, not a finite training restriction.

                  Equations
                  Instances For
                    theorem MindFormal.CalibrationTransfer.full_response_equal {Seed : Type u_1} {History : Type u_2} (response : (ℕ → PresentedCase) → Seed → History) (c : ℕ → CoupledCase) (ω : Seed) :
                    response (plusPresented c) ω = response (minusPresented c) ω

                    Any causal or noncausal response using only the complete presented stream and the original common innovation seed agrees pointwise. The response may contain the whole native path, both clocks, all acts and returned inputs; it has no argument for an unpresented bit.

                    theorem MindFormal.CalibrationTransfer.full_kernel_equal {Seed : Type u_1} {History : Type u_2} [MeasurableSpace Seed] [MeasurableSpace History] (ρ : MeasureTheory.Measure ((ℕ → CoupledCase) × Seed)) (K : ProbabilityTheory.Kernel ((ℕ → PresentedCase) × Seed) History) :
                    (MeasureTheory.Measure.map (fun (z : (ℕ → CoupledCase) × Seed) => (plusPresented z.1, z.2)) ρ).bind ⇑K = (MeasureTheory.Measure.map (fun (z : (ℕ → CoupledCase) × Seed) => (minusPresented z.1, z.2)) ρ).bind ⇑K

                    Identical response kernels also give exactly the same full-history law, without selecting a deterministic realization of a randomized kernel.