Extracting nested relational queries from implicit definitions
Pierre Pradic
(j.w.w. Michael Benedikt)
University of Oxford
December 4th, 2020
1 / 1
Extracting nested relational queries from implicit definitions - - PowerPoint PPT Presentation
Extracting nested relational queries from implicit definitions Pierre Pradic (j.w.w. Michael Benedikt) University of Oxford December 4 th , 2020 1 / 1 Plan of the talk The nested relational calculus (NRC) Implicit definability, implicit
(j.w.w. Michael Benedikt)
University of Oxford
1 / 1
2 / 1
3 / 1
every variable x carries a type T
πi, . . .
{−},
∅, ∪
flat ∼ = Set(Ui1) × . . . × Set(Uik ) → Set(Um)
4 / 1
◮ “concrete instance”: U contains names, f =“is the parent of” ◮ can be written as (x, f ) → {case(π2(p) =U x, {π1(p)}, ∅) | p ∈ f }
syntactic sugar: case, =U
5 / 1
◮ “concrete instance”: U contains names, f =“is the parent of” ◮ can be written as (x, f ) → {case(π2(p) =U x, {π1(p)}, ∅) | p ∈ f }
syntactic sugar: case, =U
◮ can be written as f → {{fib(x, f )} | x ∈ {π1(p) | p ∈ f }}
5 / 1
if the output is some Set(T)
6 / 1
if the output is some Set(T)
6 / 1
if the output is some Set(T)
6 / 1
Consider (x, y) → tt
[T → Set(U)] ֒ → [T × U → Bool]
7 / 1
8 / 1
9 / 1
9 / 1
10 / 1
10 / 1
10 / 1
10 / 1
10 / 1
i.e., R first-order definable
11 / 1
i.e., R first-order definable
11 / 1
i.e., R first-order definable
11 / 1
i.e., R first-order definable
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
11 / 1
i.e., R first-order definable
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
∆0-interpolation, intuitionistic/linear logic. . .
11 / 1
12 / 1
12 / 1
12 / 1
12 / 1
12 / 1
12 / 1
13 / 1
14 / 1
14 / 1
14 / 1
15 / 1
Caveat: cut-elimination
15 / 1
Caveat: cut-elimination
15 / 1
16 / 1
Cut is admissible
16 / 1
Cut is admissible
16 / 1
Cut is admissible
16 / 1
Cut is admissible
16 / 1
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
17 / 1
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
17 / 1
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
17 / 1
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
17 / 1
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
17 / 1
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
RHS depends on l
17 / 1
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
RHS depends on l
17 / 1
ϕ(C, L) ψ(C, R) θ(C)
∃
C L R
RHS depends on l
17 / 1
18 / 1
19 / 1
While keeping a reasonable algorithmic complexity?
19 / 1
While keeping a reasonable algorithmic complexity?
19 / 1
While keeping a reasonable algorithmic complexity?
19 / 1
interpretations: maps between models defined by FO formulas
20 / 1
21 / 1
∈ FV (ϕ)
21 / 1
∈ FV (ϕ)
21 / 1
j.w.w. Armaël Guéneau
untyped case already implicit in the literature (Sazonov)
22 / 1
j.w.w. Armaël Guéneau
untyped case already implicit in the literature (Sazonov)
22 / 1
1 / 0
2 / 0
◮ Bureaucratic paint point: binding construct
α-conversion, de Brujin
◮ Induction with many (bureaucratic) subcases
2 / 0
◮ Bureaucratic paint point: binding construct
α-conversion, de Brujin
◮ Induction with many (bureaucratic) subcases
2 / 0
(deep embedding)
3 / 0
4 / 0
◮ Formalized formal proof = formal proof ◮ Exposes de Brujin notation to users
4 / 0
◮ Formalized formal proof = formal proof ◮ Exposes de Brujin notation to users
inspired by the Iris proof-mode
4 / 0