Disturbances, responses, selected outcomes and column multiplicity
DefinitionAshbyCybernetics_RegulationThe bundle describes a deterministic disturbance–response table . ColumnInjective means that for every response , equality implies . It imposes no comparison between different columns.
For a finite disturbance type D, decidable equality in E, and a total strategy , outcomes is the finite image ; repeated values are counted once. Regulates means that every selected outcome belongs to an arbitrary acceptable set . These definitions do not assert that a successful strategy exists.
ColumnMultiplicityAtMost means that each fixed response and outcome pair has at most k disturbance preimages, with including zero. This predicate requires finite D and decidable equality in E. The definitions otherwise impose no finiteness on R or E and no nonemptiness assumptions. Empty D makes the selected image empty and regulation vacuous. A nonempty D together with a strategy and table forces R and E to be nonempty. No cardinal or logarithmic bound is assumed by any definition.
import Mathlib
namespace AshbyCybernetics
def ColumnInjective {D R E : Type*} (T : D → R → E) : Prop :=
∀ r, Function.Injective (fun d => T d r)
def outcomes {D R E : Type*} [Fintype D] [DecidableEq E]
(T : D → R → E) (ρ : D → R) : Finset E :=
Finset.univ.image (fun d => T d (ρ d))
def Regulates {D R E : Type*} (T : D → R → E) (ρ : D → R)
(A : Set E) : Prop :=
∀ d, T d (ρ d) ∈ A
def ColumnMultiplicityAtMost {D R E : Type*} [Fintype D] [DecidableEq E]
(T : D → R → E) (k : ℕ) : Prop :=
∀ r e, (Finset.univ.filter (fun d => T d r = e)).card ≤ k
end AshbyCybernetics
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
AshbyCybernetics.ColumnInjective. For arbitrary types , , and and a function , this defines a proposition requiring that, for every and every , the equality implies . The types need not be finite or inhabited, and no decidable equality is assumed. If is empty, the requirement is vacuous; if is empty or has at most one element, it holds for every supplied . If is empty, a supplied can exist only if at least one of and is empty.
AshbyCybernetics.outcomes. For arbitrary types , , and , with a specified finite enumeration of all elements of and a decision procedure for equality in , and supplied functions and , this defines the finite subset of consisting of all values as ranges over every element of . Thus an element belongs to this finite subset exactly when there exists with ; repeated equal values are included only once. Neither nor is required to be finite. The resulting finite subset is empty exactly when is empty; when is nonempty, the supplied functions force both and to be nonempty.
AshbyCybernetics.Regulates. For arbitrary types , , and , supplied functions and , and any subset , this defines the proposition that for every . No finiteness, inhabitation, or decidable equality is assumed for any of the types. When is empty, this proposition holds vacuously for every , including the empty subset; when is nonempty, it requires to be nonempty and cannot hold for . The definition places no condition on for choices of other than and does not require every element of to occur as a value.
AshbyCybernetics.ColumnMultiplicityAtMost. For arbitrary types , , and , with a specified finite enumeration of all elements of and a decision procedure for equality in , a supplied function , and a natural number , this defines the proposition that for every and every , the number of elements satisfying is at most . Neither nor is required to be finite, and the bound is non-strict. Values that never occur in a given column contribute a count of zero. The proposition holds for every when is empty, is vacuous when is empty or is empty, and holds whenever is at least the number of elements of . The allowed case requires every such count to be zero; if is nonempty, this case holds exactly when is empty. If is empty, the existence of the supplied itself requires at least one of and to be empty.