Documentation
Provenance
.
Example
Search
return to top
source
Imports
Init
Provenance.QueryAnnotatedDatabase
Provenance.QueryRewriting
Provenance.SemiringWithMonus
Provenance.Semirings.Nat
Provenance.Semirings.Tropical
Provenance.Util.ValueTypeString
Mathlib.Data.Fin.VecNotation
Mathlib.Data.Finsupp.Single
Mathlib.Data.Multiset.Basic
Mathlib.Data.Multiset.Fintype
Imported by
r
d
qPersonnel
q₀
q₁
q₂
qc
r_count
d_count
r_tropical
d_tropical
source
def
r
:
Relation
String
4
Equations
One or more equations did not get rendered due to their size.
Instances For
source
def
d
:
Database
String
Equations
d
=
[
(
"Personnel"
,
⟨
4
,
r
⟩
)
]
Instances For
source
def
qPersonnel
:
Query
String
4
Equations
qPersonnel
=
Query.Rel
4
"Personnel"
Instances For
source
def
q₀
:
Query
String
(
Nat.succ
0
)
Equations
q₀
=
ε
(
Π
![
#
3
]
qPersonnel
)
Instances For
source
def
q₁
:
Query
String
(
Nat.succ
0
)
Equations
One or more equations did not get rendered due to their size.
Instances For
source
def
q₂
:
Query
String
(
Nat.succ
0
)
Equations
q₂
=
(
q₀
-
q₁
)
Instances For
source
def
qc
:
Query
String
(
Nat.succ
0
+
Nat.succ
0
)
Equations
qc
=
Query.Agg
![
3
]
![
Term.const
"1"
]
![
AggFunc.sum
]
qPersonnel
Instances For
source
def
r_count
:
AnnotatedRelation
String
ℕ
4
Equations
r_count
=
Relation.annotate
(fun (
x
:
Tuple
String
4
) =>
1
)
r
Instances For
source
def
d_count
:
AnnotatedDatabase
String
ℕ
Equations
d_count
=
[
(
"Personnel"
,
⟨
4
,
r_count
⟩
)
]
Instances For
source
def
r_tropical
:
AnnotatedRelation
String
(
Tropical
(
WithTop
ℕ
)
)
4
Equations
r_tropical
=
Relation.annotate
(fun (
x
:
Tuple
String
4
) =>
Tropical.trop
1
)
r
Instances For
source
def
d_tropical
:
AnnotatedDatabase
String
(
Tropical
(
WithTop
ℕ
)
)
Equations
d_tropical
=
[
(
"Personnel"
,
⟨
4
,
r_tropical
⟩
)
]
Instances For