MindFormal
v1.0.0
One Mind
MindFormal
.
Tools
.
A695LogicPaper
.
CountMargins
Search
return to top
source
Imports
Init
MindFormal.Tools.A695LogicPaper.WordDisplays
Imported by
MindFormal
.
A695LogicPaper
.
Natural
.
countDose
MindFormal
.
A695LogicPaper
.
Natural
.
count_dose_margins
source
def
MindFormal
.
A695LogicPaper
.
Natural
.
countDose
(
w
:
Word
)
(
i
:
Port
)
:
ℚ
Equations
MindFormal.A695LogicPaper.Natural.countDose
w
i
=
↑
(
List.count
i
w
.
list
)
/
16
Instances For
source
theorem
MindFormal
.
A695LogicPaper
.
Natural
.
count_dose_margins
(
w
:
Word
)
:
(∀ (
i
:
Port
),
0
≤
countDose
w
i
)
∧
∑
i
:
Port
,
countDose
w
i
≤
3
/
16
∧
∀ (
i
:
Port
),
if
countTwo
w
.
list
i
=
true
then
3
/
32
+
7
/
608
≤
countDose
w
i
/
(
1
+
∑
j
:
Port
,
countDose
w
j
)
else
countDose
w
i
/
(
1
+
∑
j
:
Port
,
countDose
w
j
)
≤
1
/
17