MindFormal
v1.0.0
One Mind
MindFormal
.
Tools
.
A641Practice
.
Inputs
Search
return to top
source
Imports
Init
Mathlib
Imported by
MindFormal
.
A641Practice
.
share_difference
MindFormal
.
A641Practice
.
own_share_difference
MindFormal
.
A641Practice
.
rival_share_difference
MindFormal
.
A641Practice
.
clipped_strict_increase
MindFormal
.
A641Practice
.
unclamped_residue_gap
MindFormal
.
A641Practice
.
clamped_residue_gap
MindFormal
.
A641Practice
.
negative_weight_gap
MindFormal
.
A641Practice
.
positive_weight_gap
MindFormal
.
A641Practice
.
affine_margin
MindFormal
.
A641Practice
.
affine_no_entry
MindFormal
.
A641Practice
.
affine_entry_threshold
MindFormal
.
A641Practice
.
affine_old_preserved
MindFormal
.
A641Practice
.
affine_share_derivative
MindFormal
.
A641Practice
.
background_requirement_direction
MindFormal
.
A641Practice
.
threshold_requirement_direction
source
theorem
MindFormal
.
A641Practice
.
share_difference
{
P
dP
J
dJ
:
ℝ
}
(
hP
:
P
≠
0
)
(
hP'
:
P
+
dP
≠
0
)
:
(
J
+
dJ
)
/
(
P
+
dP
)
-
J
/
P
=
(
P
*
dJ
-
J
*
dP
)
/
(
P
*
(
P
+
dP
))
source
theorem
MindFormal
.
A641Practice
.
own_share_difference
{
P
J
dJ
:
ℝ
}
(
hP
:
P
≠
0
)
(
hP'
:
P
+
dJ
≠
0
)
:
(
J
+
dJ
)
/
(
P
+
dJ
)
-
J
/
P
=
dJ
*
(
P
-
J
)
/
(
P
*
(
P
+
dJ
))
source
theorem
MindFormal
.
A641Practice
.
rival_share_difference
{
P
J
dP
:
ℝ
}
(
hP
:
P
≠
0
)
(
hP'
:
P
+
dP
≠
0
)
:
J
/
(
P
+
dP
)
-
J
/
P
=
-
(
J
*
dP
)
/
(
P
*
(
P
+
dP
))
source
theorem
MindFormal
.
A641Practice
.
clipped_strict_increase
(
a
b
:
ℝ
)
:
max
a
0
<
max
b
0
↔
a
<
b
∧
0
<
b
source
theorem
MindFormal
.
A641Practice
.
unclamped_residue_gap
(
required
rest
r
:
ℝ
)
:
required
-
rest
+
r
-
(
required
-
rest
-
r
)
=
2
*
r
source
theorem
MindFormal
.
A641Practice
.
clamped_residue_gap
{
required
rest
r
:
ℝ
}
(
hr
:
0
≤
r
)
:
0
≤
max
(
required
-
rest
+
r
)
0
-
max
(
required
-
rest
-
r
)
0
∧
max
(
required
-
rest
+
r
)
0
-
max
(
required
-
rest
-
r
)
0
≤
2
*
r
source
theorem
MindFormal
.
A641Practice
.
negative_weight_gap
(
required
rest
r
a
da
:
ℝ
)
:
required
-
rest
+
(
a
+
da
)
*
r
-
(
required
-
rest
+
a
*
r
)
=
da
*
r
source
theorem
MindFormal
.
A641Practice
.
positive_weight_gap
(
required
rest
r
a
da
:
ℝ
)
:
required
-
rest
-
(
a
+
da
)
*
r
-
(
required
-
rest
-
a
*
r
)
=
-
(
da
*
r
)
source
theorem
MindFormal
.
A641Practice
.
affine_margin
(
J
P
w
L
z
θ
:
ℝ
)
:
J
+
w
*
z
-
θ
*
(
P
+
L
*
z
)
=
J
-
θ
*
P
+
(
w
-
θ
*
L
)
*
z
source
theorem
MindFormal
.
A641Practice
.
affine_no_entry
{
J
P
w
L
z
θ
:
ℝ
}
(
hstart
:
J
-
θ
*
P
<
0
)
(
hslope
:
w
≤
θ
*
L
)
(
hz
:
0
≤
z
)
:
J
+
w
*
z
-
θ
*
(
P
+
L
*
z
)
<
0
source
theorem
MindFormal
.
A641Practice
.
affine_entry_threshold
{
J
P
w
L
z
θ
:
ℝ
}
(
hslope
:
θ
*
L
<
w
)
:
0
≤
J
+
w
*
z
-
θ
*
(
P
+
L
*
z
)
↔
(
θ
*
P
-
J
)
/
(
w
-
θ
*
L
)
≤
z
source
theorem
MindFormal
.
A641Practice
.
affine_old_preserved
{
J
P
w
L
z
θ
:
ℝ
}
(
hstart
:
0
≤
J
-
θ
*
P
)
(
hslope
:
θ
*
L
≤
w
)
(
hz
:
0
≤
z
)
:
0
≤
J
+
w
*
z
-
θ
*
(
P
+
L
*
z
)
source
theorem
MindFormal
.
A641Practice
.
affine_share_derivative
{
J
P
w
L
z
:
ℝ
}
(
hP
:
P
+
L
*
z
≠
0
)
:
HasDerivAt
(fun (
z
:
ℝ
) => (
J
+
w
*
z
)
/
(
P
+
L
*
z
))
((
w
*
P
-
L
*
J
)
/
(
P
+
L
*
z
)
^
2
)
z
source
theorem
MindFormal
.
A641Practice
.
background_requirement_direction
{
θ
Q
Q'
:
ℝ
}
(
hθ
:
0
≤
θ
)
(
hθ1
:
θ
<
1
)
(
hQ
:
Q
≤
Q'
)
:
θ
/
(
1
-
θ
)
*
Q
≤
θ
/
(
1
-
θ
)
*
Q'
source
theorem
MindFormal
.
A641Practice
.
threshold_requirement_direction
{
θ
θ'
Q
:
ℝ
}
(
hθ
:
θ
≤
θ'
)
(
hθ1
:
θ'
<
1
)
(
hQ
:
0
≤
Q
)
:
θ
/
(
1
-
θ
)
*
Q
≤
θ'
/
(
1
-
θ'
)
*
Q