MindFormal
v1.0.0
One Mind
MindFormal
.
Tools
.
A695LogicPaper
.
StrategyInput
Search
return to top
source
Imports
Init
MindFormal.Tools.A695LogicPaper.InputWords
MindFormal.Tools.A695LogicPaper.IntegerWidths
MindFormal.Tools.A695LogicPaper.NativeStrategy
Imported by
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
countRegs
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
pay
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
count_positive
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
pay_bounds
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value_zero
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value_one
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value_bound
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value_pay
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
candidates
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
assembly
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
inputBound
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
inputBound_bits
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
inputBound_value
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
width
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
width_lower
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
width_digits
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
static_fits
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
input_fits
source
def
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
countRegs
(
m
n
attempts
:
ℕ
)
:
ℕ
Equations
MindFormal.A695LogicPaper.IntegerProgram.StrategyInput.countRegs
m
n
attempts
=
attempts
+
3
+
(
m
+
1
)
*
(
n
+
1
)
Instances For
source
def
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
pay
(
m
n
attempts
:
ℕ
)
(
i
:
Fin
(
m
+
1
)
)
(
j
:
Fin
(
n
+
1
)
)
:
ℕ
Equations
MindFormal.A695LogicPaper.IntegerProgram.StrategyInput.pay
m
n
attempts
i
j
=
attempts
+
3
+
↑
(
finProdFinEquiv
(
i
,
j
)
)
Instances For
source
def
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
attempts
r
:
ℕ
)
:
ℕ
Equations
One or more equations did not get rendered due to their size.
Instances For
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
count_positive
(
m
n
attempts
:
ℕ
)
:
attempts
+
2
<
countRegs
m
n
attempts
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
pay_bounds
(
m
n
attempts
:
ℕ
)
(
i
:
Fin
(
m
+
1
)
)
(
j
:
Fin
(
n
+
1
)
)
:
attempts
+
3
≤
pay
m
n
attempts
i
j
∧
pay
m
n
attempts
i
j
<
countRegs
m
n
attempts
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value_zero
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
attempts
:
ℕ
)
:
value
table
Q
attempts
attempts
=
0
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value_one
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
attempts
:
ℕ
)
:
value
table
Q
attempts
(
attempts
+
1
)
=
1
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value_bound
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
attempts
:
ℕ
)
:
value
table
Q
attempts
(
attempts
+
2
)
=
Q
-
1
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
value_pay
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
attempts
:
ℕ
)
(
i
:
Fin
(
m
+
1
)
)
(
j
:
Fin
(
n
+
1
)
)
:
value
table
Q
attempts
(
pay
m
n
attempts
i
j
)
=
SecurityProgram.encodedTable
table
i
j
source
def
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
candidates
(
attempts
:
ℕ
)
:
List
ℕ
Equations
MindFormal.A695LogicPaper.IntegerProgram.StrategyInput.candidates
attempts
=
List.ofFn
fun (
i
:
Fin
attempts
) =>
↑
i
Instances For
source
def
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
assembly
(
m
n
Q
attempts
:
ℕ
)
:
Assembly
(
Fin
3
→
ℕ
)
Equations
One or more equations did not get rendered due to their size.
Instances For
source
def
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
inputBound
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
digits
attempts
:
ℕ
)
:
ℕ
Equations
One or more equations did not get rendered due to their size.
Instances For
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
inputBound_bits
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
digits
attempts
:
ℕ
)
:
2
^
digits
≤
inputBound
table
Q
digits
attempts
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
inputBound_value
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
digits
attempts
r
:
ℕ
)
(
hr
:
r
<
countRegs
m
n
attempts
)
:
value
table
Q
attempts
r
≤
inputBound
table
Q
digits
attempts
source
def
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
width
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
digits
attempts
:
ℕ
)
:
ℕ
Equations
One or more equations did not get rendered due to their size.
Instances For
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
width_lower
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
digits
attempts
:
ℕ
)
:
inputBound
table
Q
digits
attempts
≤
width
table
Q
digits
attempts
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
width_digits
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
digits
attempts
:
ℕ
)
:
digits
≤
width
table
Q
digits
attempts
+
1
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
static_fits
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
digits
attempts
r
:
ℕ
)
(
hr
:
r
<
countRegs
m
n
attempts
)
:
value
table
Q
attempts
r
<
2
^
(
width
table
Q
digits
attempts
+
1
)
source
theorem
MindFormal
.
A695LogicPaper
.
IntegerProgram
.
StrategyInput
.
input_fits
{
m
n
:
ℕ
}
(
table
:
Fin
(
m
+
1
)
→
Fin
(
n
+
1
)
→
ℚ
)
(
Q
digits
attempts
:
ℕ
)
(
bits
:
Fin
(
attempts
*
digits
)
→
Bool
)
:
Fits
(
width
table
Q
digits
attempts
)
(
assembly
m
n
Q
attempts
)
.
commands
(
InputBank.values
(
width
table
Q
digits
attempts
)
digits
attempts
(
countRegs
m
n
attempts
)
(
value
table
Q
attempts
)
bits
)