MindFormal
v1.0.0
One Mind
MindFormal
.
Example
.
A695LearningValue
.
FormationGain
Search
return to top
source
Imports
Init
MindFormal.Example.A695LearningValue.FormationCharges
Imported by
MindFormal
.
A695LearningValue
.
Formation
.
presence
MindFormal
.
A695LearningValue
.
Formation
.
presence_derivative
MindFormal
.
A695LearningValue
.
Formation
.
reward
MindFormal
.
A695LearningValue
.
Formation
.
rate_one
MindFormal
.
A695LearningValue
.
Formation
.
horizon_one
MindFormal
.
A695LearningValue
.
Formation
.
gain_formula
MindFormal
.
A695LearningValue
.
Formation
.
residual
MindFormal
.
A695LearningValue
.
Formation
.
gain
MindFormal
.
A695LearningValue
.
Formation
.
residual_original
MindFormal
.
A695LearningValue
.
Formation
.
gain_original
MindFormal
.
A695LearningValue
.
Formation
.
gain_continuous
MindFormal
.
A695LearningValue
.
Formation
.
input_one
MindFormal
.
A695LearningValue
.
Formation
.
input_zero
MindFormal
.
A695LearningValue
.
Formation
.
activity_one
MindFormal
.
A695LearningValue
.
Formation
.
value_one
MindFormal
.
A695LearningValue
.
Formation
.
reference_gain_moves
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
presence
(
r
:
Unit
→
ℝ
)
:
drift
.
presence
r
=
r
(
)
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
presence_derivative
(
r
:
Unit
→
ℝ
)
(
hr
:
0
≤
r
)
:
drift
.
presenceDerivative
r
(
)
=
1
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
reward
(
u
:
Fin
4
→
ℝ
)
(
b
:
Fin
2
)
:
drift
.
reward
u
b
=
if
b
=
0
then
u
0
else
u
1
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
rate_one
(
l
:
Unit
)
:
drift
.
rate
l
=
1
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
horizon_one
(
a
:
Unit
)
:
drift
.
τ
a
=
1
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
gain_formula
(
z
:
Unit
→
Fin
2
→
ℝ
)
:
drift
.
gain
z
=
1
+
(
2
*
∑
a
:
Unit
,
∑
b
:
Fin
2
,
z
a
b
)
/
(
1
+
∑
a
:
Unit
,
∑
b
:
Fin
2
,
z
a
b
)
source
def
MindFormal
.
A695LearningValue
.
Formation
.
residual
(
u
:
Fin
4
→
ℝ
)
(
s
:
State
)
(
b
:
Fin
2
)
:
ℝ
Equations
One or more equations did not get rendered due to their size.
Instances For
source
noncomputable def
MindFormal
.
A695LearningValue
.
Formation
.
gain
(
u
:
Fin
4
→
ℝ
)
(
s
:
State
)
:
ℝ
Equations
One or more equations did not get rendered due to their size.
Instances For
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
residual_original
(
u
:
Fin
4
→
ℝ
)
(
s
:
State
)
(
hs
:
PhysicalMindState
s
)
(
b
:
Fin
2
)
:
assembledResidual
drift
u
s
(
)
b
=
residual
u
s
b
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
gain_original
(
u
:
Fin
4
→
ℝ
)
(
s
:
State
)
(
hs
:
PhysicalMindState
s
)
:
(
drift
.
gain
fun (
a
:
Unit
) (
b
:
Fin
2
) =>
|
assembledResidual
drift
u
s
a
b
|
)
=
gain
u
s
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
gain_continuous
(
u
:
Fin
4
→
ℝ
)
:
Continuous
(
gain
u
)
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
input_one
:
input
1
=
0
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
input_zero
:
input
0
=
0
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
activity_one
(
i
:
Fin
4
)
:
activity
1
i
=
if
i
=
3
then
2
else
0
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
value_one
(
pass
:
Bool
)
(
i
:
Fin
4
)
(
b
:
Fin
2
)
:
mindValue
(
state
pass
1
)
i
b
(
)
=
if
b
=
0
then
1
/
10
else
1
/
5
source
theorem
MindFormal
.
A695LearningValue
.
Formation
.
reference_gain_moves
(
pass
:
Bool
)
:
gain
(
input
0
)
(
state
pass
0
)
=
1
∧
3
/
2
<
gain
(
input
1
)
(
state
pass
1
)