MindFormal v1.0.0One Mind

MindFormal.Tools.CompanionSharedEvidence.PromiseCodes

def MindFormal.CompanionSharedEvidence.CodeSufficient {H : Type u_1} {C : Type u_2} {D : Type u_3} (code : H → C) (response : H → D → ℝ) :

Sufficiency is equality of every tested conditional response family on each code fiber, rather than equality of past average payments.

Equations
Instances For
    theorem MindFormal.CompanionSharedEvidence.deterministic_code_card {H : Type u_1} {C : Type u_2} {D : Type u_3} [Fintype H] [Fintype C] (code : H → C) (response : H → D → ℝ) (different : Function.Injective response) (sufficient : CodeSufficient code response) :
    theorem MindFormal.CompanionSharedEvidence.deterministic_code_bits {H : Type u_1} {D : Type u_2} [Fintype H] (bits : ℕ) (code : H → Fin bits → Bool) (response : H → D → ℝ) (different : Function.Injective response) (sufficient : CodeSufficient code response) :
    theorem MindFormal.CompanionSharedEvidence.randomized_code_rank {H : Type u_1} {C : Type u_2} {D : Type u_3} [Finite H] [Fintype C] [Fintype D] (response : Matrix H D ℝ) (A : Matrix H C ℝ) (B : Matrix C D ℝ) (conditional : ∀ (h : H) (d : D), response h d = ∑ c : C, A h c * B c d) :
    response = A * B ∧ response.rank ≤ Fintype.card C
    theorem MindFormal.CompanionSharedEvidence.robust_response_rank {I : Type u_1} [Fintype I] [DecidableEq I] (reference actual : Matrix I I ℝ) (γ ε : ℝ) (nonnegative : ∀ (i j : I), 0 ≤ reference i j) (_hε : 0 ≤ ε) (gap : ∀ (i : I), γ ≤ reference i i - ∑ j ∈ Finset.univ.erase i, reference i j) (error : ∀ (i j : I), |actual i j - reference i j| ≤ ε) (margin : ↑(Fintype.card I) * ε < γ) :

    Strict diagonal dominance survives a complete entrywise probability error. The N factor pays the diagonal and every off-diagonal entry once.

    theorem MindFormal.CompanionSharedEvidence.approximate_code_rank {I : Type u_1} {C : Type u_2} [Fintype I] [Fintype C] [DecidableEq I] (reference actual : Matrix I I ℝ) (A : Matrix I C ℝ) (B : Matrix C I ℝ) (γ εP εcode : ℝ) (nonnegative : ∀ (i j : I), 0 ≤ reference i j) (hP : 0 ≤ εP) (hcode : 0 ≤ εcode) (gap : ∀ (i : I), γ ≤ reference i i - ∑ j ∈ Finset.univ.erase i, reference i j) (nativeError : ∀ (i j : I), |actual i j - reference i j| ≤ εP) (codeError : ∀ (i j : I), |(A * B) i j - actual i j| ≤ εcode) (margin : ↑(Fintype.card I) * (εP + εcode) < γ) :