Documentation
Complexitylib
.
Metacomplexity
.
StatisticalTest
.
Oracle
.
Internal
Search
return to top
source
Imports
Init
Complexitylib.Metacomplexity.StatisticalTest.Oracle.Defs
Imported by
Complexity
.
decodeFixedWidthBoolean?_ofFn_internal
Complexity
.
finiteTestOracle_ofFn_internal
Complexity
.
finiteTestOracle_ofFn_eq_true_iff_internal
Complexity
.
finiteTestOracle_eq_false_of_length_ne_internal
Finite statistical tests as Boolean oracles -- proof internals
#
source
theorem
Complexity
.
decodeFixedWidthBoolean?_ofFn_internal
{
length
:
ℕ
}
(
bits
:
Fin
length
→
Bool
)
:
decodeFixedWidthBoolean?
length
(
List.ofFn
bits
)
=
some
bits
source
theorem
Complexity
.
finiteTestOracle_ofFn_internal
{
outputLength
:
ℕ
}
(
test
:
Finset
(
Fin
outputLength
→
Bool
)
)
(
output
:
Fin
outputLength
→
Bool
)
:
finiteTestOracle
test
(
List.ofFn
output
)
=
decide
(
output
∈
test
)
source
theorem
Complexity
.
finiteTestOracle_ofFn_eq_true_iff_internal
{
outputLength
:
ℕ
}
(
test
:
Finset
(
Fin
outputLength
→
Bool
)
)
(
output
:
Fin
outputLength
→
Bool
)
:
finiteTestOracle
test
(
List.ofFn
output
)
=
true
↔
output
∈
test
source
theorem
Complexity
.
finiteTestOracle_eq_false_of_length_ne_internal
{
outputLength
:
ℕ
}
(
test
:
Finset
(
Fin
outputLength
→
Bool
)
)
{
query
:
List
Bool
}
(
hlength
:
query
.
length
≠
outputLength
)
:
finiteTestOracle
test
query
=
false