Outcome Maps, Coarse Kernels and Statistics — Definitions
DefinitionAPFPaper1_InstrumentMapsNonnegative column-normalized maps between outcome alphabets; composition of such maps; their weighted action on kernel families and response families; and the finite initial-weight/kernel/final-effect statistic. Algebraic map definitions permit arbitrary real coefficients, while normalization and monotonicity theorems carry their positivity hypotheses explicitly.
import Definitions.Def_APFPaper1_RecordKernels
set_option autoImplicit false
open Classical
noncomputable section
namespace APFPaper1.InstrumentMaps
def OutcomeMap {O Q : Type} [Fintype Q] (C : Q → O → ℝ) : Prop :=
(∀ q o, 0 ≤ C q o) ∧ ∀ o, ∑ q, C q o = 1
def composeMap {O Q R : Type} [Fintype Q] (D : R → Q → ℝ) (C : Q → O → ℝ) : R → O → ℝ :=
fun r o => ∑ q, D r q * C q o
def mapKernel {A O Q : Type} [Fintype O] (C : Q → O → ℝ)
(K : O → APFPaper1.RecordKernels.Kernel A) : Q → APFPaper1.RecordKernels.Kernel A :=
fun q b a => ∑ o, C q o * K o b a
def mapResponse {A O Q : Type} [Fintype O] (C : Q → O → ℝ) (r : O → A → ℝ) : Q → A → ℝ :=
fun q a => ∑ o, C q o * r o a
def statistic {A : Type} [Fintype A] (μ : A → ℝ)
(K : APFPaper1.RecordKernels.Kernel A) (e : A → ℝ) : ℝ :=
∑ b, (∑ a, K b a * μ a) * e b
end APFPaper1.InstrumentMaps
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
OutcomeMap. For arbitrary types and , with a specified finite enumeration of all elements of , and an arbitrary function , the proposition means that for every and , and that for every . No finiteness or nonemptiness assumption is imposed on , and may be empty. If is empty, both requirements hold vacuously; if is empty and is nonempty, the second requirement demands and cannot hold.
composeMap. For arbitrary types , , and , with a specified finite enumeration of all elements of , and arbitrary functions and , the function is defined by for every and . There are no nonnegativity or normalization assumptions on or , and no finiteness assumptions on or . All three types may be empty; an empty makes every defined entry of the result zero, and an empty or leaves the result with no entries.
mapKernel. For arbitrary types , , and , with a specified finite enumeration of all elements of , an arbitrary function , and an arbitrary family indexed by of real matrices with both row and column indices in —that is, for each and —the family indexed by of matrices with those same row and column indices is defined by for every and . No finiteness assumption is imposed on or , and no nonnegativity, normalization, or other conditions are imposed on the entries of or . Each type may be empty: an empty makes every defined output entry zero, an empty gives an empty output family, and an empty gives matrices with no entries.
mapResponse. For arbitrary types , , and , with a specified finite enumeration of all elements of , and arbitrary functions and , the function is defined by for every and . There are no nonnegativity or normalization assumptions on either input function and no finiteness assumptions on or . Each type may be empty: an empty makes every defined result entry zero, and an empty or leaves the result with no entries.
statistic. For an arbitrary type with a specified finite enumeration of all its elements, arbitrary functions and , and an arbitrary real matrix whose row and column indices both belong to —that is, an arbitrary function —the real number is defined to be . No nonnegativity, normalization, or other conditions are imposed on , , or . The type may be empty, in which case the value is zero.