Continuation-closed, unnormalized discrete tests. There is no division by a prefix probability and no assumed independence of suffix functions.
Equations
- MindFormal.SuffixTests.space p = Submodule.span ℝ (Set.range fun (cw : C × List A) => MindFormal.SuffixTests.suffix p cw.1 cw.2)
Instances For
Equations
- MindFormal.SuffixTests.step p b = { toFun := fun (f : ↥(MindFormal.SuffixTests.space p)) => ⟨(MindFormal.SuffixTests.shift b) ↑f, ⋯⟩, map_add' := ⋯, map_smul' := ⋯ }
Instances For
def
MindFormal.SuffixTests.run
{A V : Type u}
[AddCommGroup V]
[Module ℝ V]
(op : A → V →ₗ[ℝ] V)
(w : List A)
(x : V)
:
V
Equations
- MindFormal.SuffixTests.run op w x = List.foldl (fun (y : V) (b : A) => (op b) y) x w
Instances For
def
MindFormal.SuffixTests.response
{A V : Type u}
[AddCommGroup V]
[Module ℝ V]
(op : A → V →ₗ[ℝ] V)
(out : V →ₗ[ℝ] ℝ)
:
Equations
- MindFormal.SuffixTests.response op out = { toFun := fun (x : V) (z : List A) => out (MindFormal.SuffixTests.run op z x), map_add' := ⋯, map_smul' := ⋯ }
Instances For
def
MindFormal.SuffixTests.reachable
{A C V : Type u}
[AddCommGroup V]
[Module ℝ V]
(start : C → V)
(op : A → V →ₗ[ℝ] V)
:
Equations
- MindFormal.SuffixTests.reachable start op = Submodule.span ℝ (Set.range fun (cw : C × List A) => MindFormal.SuffixTests.run op cw.2 (start cw.1))