Fibrational Units of Measure
Timothy Revell
and N. Ghani, R. Atkey, S. Staton
University of Strathclyde
1
Fibrational Units of Measure Timothy Revell and N. Ghani, R. - - PowerPoint PPT Presentation
Fibrational Units of Measure Timothy Revell and N. Ghani, R. Atkey, S. Staton University of Strathclyde 1 Motivation 2 Motivation Units of Measure m , s , kg ... etc 2 Motivation Units of Measure m , s , kg ... etc Used for
Timothy Revell
and N. Ghani, R. Atkey, S. Staton
University of Strathclyde
1
2
2
2
inches, nautical mile, ...etc.
2
inches, nautical mile, ...etc.
Mass (M), Time (T)
2
inches, nautical mile, ...etc.
Mass (M), Time (T)
units include kg, m, s, K,...etc Derived Units kgm−2s−2
2
3
dimension error
3
dimension error
gives new units
3
dimension error
gives new units Quantification of units allows us to express this.
3
dimension error
gives new units Quantification of units allows us to express this.
3
4
by A. J. Kennedy
4
by A. J. Kennedy
4
by A. J. Kennedy
4
5
Unit Context ∆ = u1, ..., un
6
Unit Context ∆ = u1, ..., un Types e ∈ Ab(∆)
∆ ⊢ e ∆ ⊢ e ∆ ⊢ num(e) Type
6
Unit Context ∆ = u1, ..., un Types e ∈ Ab(∆)
∆ ⊢ e ∆ ⊢ e ∆ ⊢ num(e) Type ∆ ⊢ T Type ∆ ⊢ U Type ∆ ⊢ T × U Type ∆ ⊢ T Type ∆ ⊢ U Type ∆ ⊢ T → U Type
6
Unit Context ∆ = u1, ..., un Types e ∈ Ab(∆)
∆ ⊢ e ∆ ⊢ e ∆ ⊢ num(e) Type ∆ ⊢ T Type ∆ ⊢ U Type ∆ ⊢ T × U Type ∆ ⊢ T Type ∆ ⊢ U Type ∆ ⊢ T → U Type ∆, u ⊢ T Type ∆ ⊢ ∀u.T Type
6
Typing Context Γ = x1 : T1, ..., xm : Tm
7
Typing Context Γ = x1 : T1, ..., xm : Tm Terms
Usual STλC
7
Typing Context Γ = x1 : T1, ..., xm : Tm Terms
Usual STλC
and
∆ ⊢ Γ ctxt ∆, u, Γ ⊢ t : T ∆; Γ ⊢ Λu.t : ∀u.T ∆ ⊢ e ∆, Γ ⊢ t : ∀u.T ∆; Γ ⊢ te : T[e/u]
7
Then add constants, popular choices include...
8
Then add constants, popular choices include...
8
Then add constants, popular choices include...
8
Then add constants, popular choices include...
8
Then add constants, popular choices include...
8
9
10
A fibration p : E → B with enough structure such that
10
A fibration p : E → B with enough structure such that
10
A fibration p : E → B with enough structure such that
10
Start with a fibration p : E → B
11
Start with a fibration p : E → B
11
Start with a fibration p : E → B
11
Start with a fibration p : E → B
2 (g1, g2) = g1 · g−1 2
11
Start with a fibration p : E → B
2 (g1, g2) = g1 · g−1 2
11
Start with a fibration p : E → B
2 (g1, g2) = g1 · g−1 2
11
Start with a fibration p : E → B
2 (g1, g2) = g1 · g−1 2
11
Start with a fibration p : E → B
2 (g1, g2) = g1 · g−1 2
11
Start with a fibration p : E → B
2 (g1, g2) = g1 · g−1 2
11
Start with a fibration p : E → B
2 (g1, g2) = g1 · g−1 2
Definition
We call (p, G, num) a UoM-fibration.
11
12
Definition
A UoM-fibration (p : E → B, G, num) is given by
12
Definition
A UoM-fibration (p : E → B, G, num) is given by
12
Definition
A UoM-fibration (p : E → B, G, num) is given by
12
Definition
A UoM-fibration (p : E → B, G, num) is given by
12
13
(p : E → LAb, 1, num)
where E = Types and Terms
13
(p : E → LAb, 1, num)
where E = Types and Terms
Codomain, Suboject and Relations fibration over Set are
λ1-fibrations with simple products.
13
(p : E → LAb, 1, num)
where E = Types and Terms
Codomain, Suboject and Relations fibration over Set are
λ1-fibrations with simple products.
13
(p : E → LAb, 1, num)
where E = Types and Terms
Codomain, Suboject and Relations fibration over Set are
λ1-fibrations with simple products.
13
(p : E → LAb, 1, num)
where E = Types and Terms
Codomain, Suboject and Relations fibration over Set are
λ1-fibrations with simple products.
(p : E → 1, ∗, num)
e.g. E = cpo and num = Q⊥
13
14
Theorem
FG′ = G
14
Theorem
FG′ = G Then (F ∗p, G′, (G′, X)) is a UoM-fibration.
14
Theorem
FG′ = G Then (F ∗p, G′, (G′, X)) is a UoM-fibration. F ∗E ✲ E
A
F ∗p ❄ F ✲ B p ❄
14
15
Theorem
Any UoM-fibration can be converted into a UoM-fibration with LAb in the base.
15
Theorem
Any UoM-fibration can be converted into a UoM-fibration with LAb in the base. F(1) = G F ∗E ✲ E LAb F ∗p ❄ F ✲ B p ❄
15
Recall an Abelian group G can be thought of as a category G
16
Recall an Abelian group G can be thought of as a category G
16
Recall an Abelian group G can be thought of as a category G
16
Recall an Abelian group G can be thought of as a category G
A G-Set is a functor φ : G → Set, i.e.,
16
Recall an Abelian group G can be thought of as a category G
A G-Set is a functor φ : G → Set, i.e.,
16
Recall an Abelian group G can be thought of as a category G
A G-Set is a functor φ : G → Set, i.e.,
16
Recall an Abelian group G can be thought of as a category G
A G-Set is a functor φ : G → Set, i.e.,
Definition
We call the functor p : Ab-Set → Ab the Ab-Set fibration, where Ab-SetG = [G, Set]
16
Recall an Abelian group G can be thought of as a category G
A G-Set is a functor φ : G → Set, i.e.,
Definition
We call the functor p : Ab-Set → Ab the Ab-Set fibration, where Ab-SetG = [G, Set]
Theorem
The Ab-Set fibration is a λ1-fibration with simple products. Hence, for choices G ∈ Ab, num ∈ Ab-SetG
(p : Ab-Set → Ab, G, num)
is a UoM-fibration
16
17
Theorem
Let E and B be categories with finite products.
17
Theorem
Let E and B be categories with finite products.
] : B → Cat is a product preserving functor.
17
Theorem
Let E and B be categories with finite products.
] : B → Cat is a product preserving functor.
reindexing is given by precomposition
17
Theorem
Let E and B be categories with finite products.
] : B → Cat is a product preserving functor.
reindexing is given by precomposition
f ∗(φ : [Y] → D) = φ ◦ [f].
Then, the reindexing of any projection map πX : X × Y → X has a right adjoint π∗
X ⊣ Ran[π] , which satisfies the Beck-Chevalley
condition.
17
18
Lemma
For π : X × Y → X in B and φ : [X] × [Y] → D in EX×Y then
18
Lemma
For π : X × Y → X in B and φ : [X] × [Y] → D in EX×Y then
(Ran[π]φ)x = lim
y∈[Y] φ(x, y)
18
Keep in mind: (Ran[π]φ)x = limy∈[Y] φ(x, y)
19
Keep in mind: (Ran[π]φ)x = limy∈[Y] φ(x, y) Want to show:
19
Keep in mind: (Ran[π]φ)x = limy∈[Y] φ(x, y) Want to show: For any f : X → X ′ in B and
ψ : [X ′] × [Y] → D
in EX′×Y
(RanπX (f × id)∗ψ)x ∼ = (f ∗RanπX′ψ)x
19
Keep in mind: (Ran[π]φ)x = limy∈[Y] φ(x, y) Want to show: For any f : X → X ′ in B and
ψ : [X ′] × [Y] → D
in EX′×Y
(RanπX (f × id)∗ψ)x ∼ = (f ∗RanπX′ψ)x
Use Lemma:
19
Keep in mind: (Ran[π]φ)x = limy∈[Y] φ(x, y) Want to show: For any f : X → X ′ in B and
ψ : [X ′] × [Y] → D
in EX′×Y
(RanπX (f × id)∗ψ)x ∼ = (f ∗RanπX′ψ)x
Use Lemma:
(RanπX (f × id)∗ψ)x ∼ = lim
y∈Y(f × id)∗φ(x, y) ∼
= lim
y∈Y φ(fx, y)
19
Keep in mind: (Ran[π]φ)x = limy∈[Y] φ(x, y) Want to show: For any f : X → X ′ in B and
ψ : [X ′] × [Y] → D
in EX′×Y
(RanπX (f × id)∗ψ)x ∼ = (f ∗RanπX′ψ)x
Use Lemma:
(RanπX (f × id)∗ψ)x ∼ = lim
y∈Y(f × id)∗φ(x, y) ∼
= lim
y∈Y φ(fx, y)
(f ∗RanπX′ψ)x ∼ = lim
y∈Y φ(fx, y)
19
20
20
20
20
20
21
Lemma
Suppose u ⊢ S, T Type, then
|∀u.S → T| ∼ = Nat(S, T)
21
Lemma
Suppose u ⊢ S, T Type, then
|∀u.S → T| ∼ = Nat(S, T) Proof.
By end formula for a Kan extension.
21
Lemma
Let t : ∀u.num(u) → num(un) for some m, n ∈ N,
22
Lemma
Let t : ∀u.num(u) → num(un) for some m, n ∈ N, then for x ∈ |num(u)|
t(g · x) = gn · (tx) ∀g ∈ G
22
Lemma
Let t : ∀u.num(u) → num(un) for some m, n ∈ N, then for x ∈ |num(u)|
t(g · x) = gn · (tx) ∀g ∈ G Proof.
Use previous lemma to see t ∈ G-Set(num(u), num(un))
22
Lemma
Let t : ∀u.num(u) → num(un) for some m, n ∈ N, then for x ∈ |num(u)|
t(g · x) = gn · (tx) ∀g ∈ G Proof.
Use previous lemma to see t ∈ G-Set(num(u), num(un)) Naturality gives result.
22
Corollary
There is no non-trivial term of type ∀u.num(u2) → num(u).
23
Corollary
There is no non-trivial term of type ∀u.num(u2) → num(u).
Proof.
Consider (p : Ab-Set → Ab, Z2, Z2),
23
Corollary
There is no non-trivial term of type ∀u.num(u2) → num(u).
Proof.
Consider (p : Ab-Set → Ab, Z2, Z2), Then if there were a term t : ∀u.num(u2) → num(u), then
t(g2 · x) = g · (tx) ∀g ∈ Z2
23
Corollary
There is no non-trivial term of type ∀u.num(u2) → num(u).
Proof.
Consider (p : Ab-Set → Ab, Z2, Z2), Then if there were a term t : ∀u.num(u2) → num(u), then
t(g2 · x) = g · (tx) ∀g ∈ Z2
Which does not hold, because If t0 = 1 then
t(1 + 1 + 0) = 1 + t(0)
23
Corollary
There is no non-trivial term of type ∀u.num(u2) → num(u).
Proof.
Consider (p : Ab-Set → Ab, Z2, Z2), Then if there were a term t : ∀u.num(u2) → num(u), then
t(g2 · x) = g · (tx) ∀g ∈ Z2
Which does not hold, because If t0 = 1 then
t(1 + 1 + 0) = 1 + t(0)
If t1 = 1 then
t(1 + 1 + 1) = 1 + t(1)
23
24
24
24
Rel(E) ✲ E LAb × B p ❄ R × ∆ ✲ B × B × B _ × _ × _ ✲ B u ❄ LAb ❄ 1 ❄
24
Rel(E) ✲ E LAb × B p ❄ R × ∆ ✲ B × B × B _ × _ × _ ✲ B u ❄ LAb ❄ 1 ❄ Rel(E)n = {(n, B, P) | B ∈ B, P ∈ ER(n)×B×B}
24
25
Theorem (r : Rel(E) → LAb, 1, num), for a choice of num, is a UoM-fibration.
25
Theorem (r : Rel(E) → LAb, 1, num), for a choice of num, is a UoM-fibration.
Rel(E) ✲ E LAb × B p ❄ R × ∆ ✲ B × B × B _ × _ × _ ✲ B u ❄ LAb ❄ 1 ❄
25
26
For ∆ ⊢ T Type, where |∆| = n
26
For ∆ ⊢ T Type, where |∆| = n
T = (n, T0, T1)
26
For ∆ ⊢ T Type, where |∆| = n
T = (n, T0, T1)
with T0 ∈ B and T1 ∈ EGn×T0×T0.
26
For ∆ ⊢ T Type, where |∆| = n
T = (n, T0, T1)
with T0 ∈ B and T1 ∈ EGn×T0×T0.
26
For ∆ ⊢ T Type, where |∆| = n
T = (n, T0, T1)
with T0 ∈ B and T1 ∈ EGn×T0×T0.
semantics of T
26
For ∆ ⊢ T Type, where |∆| = n
T = (n, T0, T1)
with T0 ∈ B and T1 ∈ EGn×T0×T0.
semantics of T
semantics of T.
26
For ∆ ⊢ T Type, where |∆| = n
T = (n, T0, T1)
with T0 ∈ B and T1 ∈ EGn×T0×T0.
semantics of T
semantics of T. 1
Γ1
❥
⇓ t1
T1
✯Pn 1
=
❄
Γ0
❥
⇓ t0
T0
✯ B p′ ❄
26
27
27
UoM
27
UoM
27
28
28
28
28
timothy.revell@strath.ac.uk @timothyrevell
29