A univalent approach to constructive mathematics Chuangjie Xu - - PowerPoint PPT Presentation

a univalent approach to constructive mathematics
SMART_READER_LITE
LIVE PREVIEW

A univalent approach to constructive mathematics Chuangjie Xu - - PowerPoint PPT Presentation

Background Mathematics in Univalent type theory Summary A univalent approach to constructive mathematics Chuangjie Xu Ludwig-Maximilians-Universit at M unchen Second Workshop on Mathematical Logic and its Applications 5-7, 8 ,9 March


slide-1
SLIDE 1

Background Mathematics in Univalent type theory Summary

A univalent approach to constructive mathematics

Chuangjie Xu

Ludwig-Maximilians-Universit¨ at M¨ unchen

Second Workshop on Mathematical Logic and its Applications 5-7,8,9 March 2018, Kanazawa, Japan

A univalent approach to constructive mathematics LMU Munich

slide-2
SLIDE 2

Background Mathematics in Univalent type theory Summary Background

This talk is

  • 1. to give a very brief introduction to univalent type theory (UTT),
  • 2. to demonstrate some experiments of doing mathematics in UTT, and
  • 3. to collect your valuable advices of interesting concrete mathematics that

could be suitable to carry out within such foundation.

A univalent approach to constructive mathematics LMU Munich

slide-3
SLIDE 3

Background Mathematics in Univalent type theory Summary Background

Constructive mathematics and Martin-L¨

  • f type theory

A central tenet of constructive mathematics is that the logical symbols carry computational content.

A univalent approach to constructive mathematics LMU Munich

slide-4
SLIDE 4

Background Mathematics in Univalent type theory Summary Background

Constructive mathematics and Martin-L¨

  • f type theory

A central tenet of constructive mathematics is that the logical symbols carry computational content. Curry–Howard logic in Martin-L¨

  • f type theory (MLTT)

Propositions Types P ∧ Q P × Q P ∨ Q P + Q P → Q P → Q ∀(x:A).P(x) Π(x:A).P(x) ∃(x:A).P(x) Σ(x:A).P(x)

A univalent approach to constructive mathematics LMU Munich

slide-5
SLIDE 5

Background Mathematics in Univalent type theory Summary Background

Constructive mathematics and Martin-L¨

  • f type theory

A central tenet of constructive mathematics is that the logical symbols carry computational content. Curry–Howard logic in Martin-L¨

  • f type theory (MLTT)

Propositions Types P ∧ Q P × Q P ∨ Q P + Q P → Q P → Q ∀(x:A).P(x) Π(x:A).P(x) ∃(x:A).P(x) Σ(x:A).P(x) Computer proof assistants based on (variants of) MLTT include Agda, Coq, Lean, Nuprl, . . .

A univalent approach to constructive mathematics LMU Munich

slide-6
SLIDE 6

Background Mathematics in Univalent type theory Summary Background

Martin-L¨

  • f type theory for constructive mathematics?

Nonaxiom of choice Π(x:A).Σ(y:B).P(x, y) → Σ(f :A→B).Π(x:A).P(x, f(x)) ◆◆ ◆ ◆◆ ◆ ◆◆

A univalent approach to constructive mathematics LMU Munich

slide-7
SLIDE 7

Background Mathematics in Univalent type theory Summary Background

Martin-L¨

  • f type theory for constructive mathematics?

Nonaxiom of choice Π(x:A).Σ(y:B).P(x, y) → Σ(f :A→B).Π(x:A).P(x, f(x)) Trouble of defining the image of a function f : A → B (Σ(y:B).Σ(x:A).f(x) = y) ≃ A ◆◆ ◆ ◆◆ ◆ ◆◆

A univalent approach to constructive mathematics LMU Munich

slide-8
SLIDE 8

Background Mathematics in Univalent type theory Summary Background

Martin-L¨

  • f type theory for constructive mathematics?

Nonaxiom of choice Π(x:A).Σ(y:B).P(x, y) → Σ(f :A→B).Π(x:A).P(x, f(x)) Trouble of defining the image of a function f : A → B (Σ(y:B).Σ(x:A).f(x) = y) ≃ A Failure of Brouwer’s continuity principle (Escard´

  • and X, 2015)
  • Π(f :◆◆ →◆).Π(α:◆◆).Σ(n:◆).Π(β :◆◆). (α =n β → f(α) = f(β))
  • → 0 = 1

A univalent approach to constructive mathematics LMU Munich

slide-9
SLIDE 9

Background Mathematics in Univalent type theory Summary Background

Martin-L¨

  • f type theory for constructive mathematics?

Nonaxiom of choice Π(x:A).Σ(y:B).P(x, y) → Σ(f :A→B).Π(x:A).P(x, f(x)) Trouble of defining the image of a function f : A → B (Σ(y:B).Σ(x:A).f(x) = y) ≃ A Failure of Brouwer’s continuity principle (Escard´

  • and X, 2015)
  • Π(f :◆◆ →◆).Π(α:◆◆).Σ(n:◆).Π(β :◆◆). (α =n β → f(α) = f(β))
  • → 0 = 1

Is this theory of construction too computationally informative?

A univalent approach to constructive mathematics LMU Munich

slide-10
SLIDE 10

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Voevodsky’s Univalent Foundations

A univalent type theory is a mathematical language for expressing definitions, theorems and proofs that is invariant under equivalences, i.e. P(X) × (X ≃ Y ) → P(Y ) Examples: UniMath, HoTT book, cubical type theory.

A univalent approach to constructive mathematics LMU Munich

slide-11
SLIDE 11

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Voevodsky’s Univalent Foundations

A univalent type theory is a mathematical language for expressing definitions, theorems and proofs that is invariant under equivalences, i.e. P(X) × (X ≃ Y ) → P(Y ) Examples: UniMath, HoTT book, cubical type theory. Among the significant univalent concepts and techniques, here I present two: Stratification of types

◮ A type P is a proposition if

isProp(P) :≡ Π(x, y:P).x = y

◮ A type A is a set if

isSet(A) :≡ Π(x, y:A).isProp(x = y)

◮ groupoids and, more generally, n-types

provides a flexible way to intuitively describe mathematical objects.

A univalent approach to constructive mathematics LMU Munich

slide-12
SLIDE 12

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Propositional truncation

A propositional truncation of a type X, if it exists, is a proposition X together with a map | − | : X → X such that for any proposition P and f : X → P we can find ¯ f : X → P with X

|−|

  • f
  • X

¯ f

  • P

A univalent approach to constructive mathematics LMU Munich

slide-13
SLIDE 13

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Propositional truncation

A propositional truncation of a type X, if it exists, is a proposition X together with a map | − | : X → X such that for any proposition P and f : X → P we can find ¯ f : X → P with X

|−|

  • f
  • X

¯ f

  • P

◮ Intuitively, X is the (type of) truth value of the inhabitedness of X. ◮ Several kinds of types can be shown to have truncations in MLTT. ◮ There are different ways to extend MLTT to get truncations for all types. ◮ X → X is not provable in general, and is equivalent to X + ¬X.

A univalent approach to constructive mathematics LMU Munich

slide-14
SLIDE 14

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Univalent logic

Let P, Q be propositions. ⊥ :≡ ⊤ :≡ ✶ P ∧ Q :≡ P × Q P ∨ Q :≡ P + Q P → Q :≡ P → Q ∀(x:A).P(x) :≡ Π(x:A).P(x) ∃(x:A).P(x) :≡ Σ(x:A).P(x) ◆◆ ◆ ◆◆ ◆ ◆◆

A univalent approach to constructive mathematics LMU Munich

slide-15
SLIDE 15

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Univalent logic

Let P, Q be propositions. ⊥ :≡ ⊤ :≡ ✶ P ∧ Q :≡ P × Q P ∨ Q :≡ P + Q P → Q :≡ P → Q ∀(x:A).P(x) :≡ Π(x:A).P(x) ∃(x:A).P(x) :≡ Σ(x:A).P(x) Axiom of choice Π(x:A).Σ(y:B).P(x, y) → Σ(f :A→B).Π(x:A).P(x, f(x)) Image of f : A → B image(f) :≡ Σ(y:B).Σ(x:A).f(x) = y Continuity principle Π(f :◆◆ →◆).Π(α:◆◆).Σ(n:◆).Π(β :◆◆). (α =n β → f(α) = f(β))

From now on, I use logical connectives for properties and type formers for structures.

A univalent approach to constructive mathematics LMU Munich

slide-16
SLIDE 16

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Example I: Intermediate Value Theorem

Continuity as a structure or a property? ❘ ❘

A univalent approach to constructive mathematics LMU Munich

slide-17
SLIDE 17

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Example I: Intermediate Value Theorem

Continuity as a structure or a property? Theorem (Bishop,1967) Let f : [a, b] → ❘ be uniformly continuous such that f(a) ≤ 0 ≤ f(b). For any ε > 0 we can find c ∈ [a, b] such that |f(c)| < ε. Theorem (Taylor, 2010) Let f : [a, b] → ❘ be uniformly continuous such that f(a) ≤ 0 ≤ f(b). If f is locally nonzero (for any x < y there exists z ∈ (x, y) such that f(z) = 0), then we can find c ∈ [a, b] such that f(c) = 0.

A univalent approach to constructive mathematics LMU Munich

slide-18
SLIDE 18

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Example I: Intermediate Value Theorem

Continuity as a structure or a property? Theorem (Bishop,1967) Let f : [a, b] → ❘ be uniformly continuous such that f(a) ≤ 0 ≤ f(b). For any ε > 0 we can find c ∈ [a, b] such that |f(c)| < ε. In its proof, uniform continuity is used as a structure on f to construct the approximate root c for each ε. Theorem (Taylor, 2010) Let f : [a, b] → ❘ be uniformly continuous such that f(a) ≤ 0 ≤ f(b). If f is locally nonzero (for any x < y there exists z ∈ (x, y) such that f(z) = 0), then we can find c ∈ [a, b] such that f(c) = 0.

A univalent approach to constructive mathematics LMU Munich

slide-19
SLIDE 19

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Example I: Intermediate Value Theorem

Continuity as a structure or a property? Theorem (Bishop,1967) Let f : [a, b] → ❘ be uniformly continuous such that f(a) ≤ 0 ≤ f(b). For any ε > 0 we can find c ∈ [a, b] such that |f(c)| < ε. In its proof, uniform continuity is used as a structure on f to construct the approximate root c for each ε. Theorem (Taylor, 2010) Let f : [a, b] → ❘ be uniformly continuous such that f(a) ≤ 0 ≤ f(b). If f is locally nonzero (for any x < y there exists z ∈ (x, y) such that f(z) = 0), then we can find c ∈ [a, b] such that f(c) = 0. Here the root c is constructed using the local-nonzero structure on f, and uniform continuity is used only as a property of f to prove f(c) = 0.

A univalent approach to constructive mathematics LMU Munich

slide-20
SLIDE 20

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Example I: Intermediate Value Theorem

Continuity as a structure or a property? Theorem (Bishop,1967) Let f : [a, b] → ❘ be uniformly continuous such that f(a) ≤ 0 ≤ f(b). For any ε > 0 we can find c ∈ [a, b] such that |f(c)| < ε. In its proof, uniform continuity is used as a structure on f to construct the approximate root c for each ε. Theorem (Taylor, 2010) Let f : [a, b] → ❘ be uniformly continuous such that f(a) ≤ 0 ≤ f(b). If f is locally nonzero (for any x < y there exists z ∈ (x, y) such that f(z) = 0), then we can find c ∈ [a, b] such that f(c) = 0. Here the root c is constructed using the local-nonzero structure on f, and uniform continuity is used only as a property of f to prove f(c) = 0. So far it seems to be an art to decide if a particular mathematical statement should be formulated as giving structure or as a proposition.

A univalent approach to constructive mathematics LMU Munich

slide-21
SLIDE 21

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Example II: Fan Theorem

To distinguish principles of structures from those of properties (univalent reverse math?) ✷

✷ ✷◆ ◆ ✷◆ ◆ ✷ ✷

A univalent approach to constructive mathematics LMU Munich

slide-22
SLIDE 22

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Example II: Fan Theorem

To distinguish principles of structures from those of properties (univalent reverse math?) Given B : ✷∗ → Prop where Prop is the universe of propositions, define

◮ decidable(B) :≡ Π(u:✷∗).B(u) + ¬B(u) ◮ bar(B) :≡ ∀(α:✷◆).∃(n:◆).B(¯

α(n))

◮ barΣ(B) :≡ Π(α:✷◆).Σ(n:◆).B(¯

α(n))

◮ uBar(B) :≡ · · · , uBarΣ(B) :≡ · · · ◮ FAN :≡ ∀(B :✷∗ →Prop). (decidable(B) → bar(B) → uBar(B)) ◮ FANΣ :≡ Π(B :✷∗ →Prop). (decidable(B) → barΣ(B) → uBarΣ(B)) ◮ Cont :≡ · · · , ContΣ :≡ · · · , UC :≡ · · · , UCΣ :≡ · · · , MUC :≡ · · · , MUCΣ :≡ · · ·

A univalent approach to constructive mathematics LMU Munich

slide-23
SLIDE 23

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Example II: Fan Theorem

To distinguish principles of structures from those of properties (univalent reverse math?) Given B : ✷∗ → Prop where Prop is the universe of propositions, define

◮ decidable(B) :≡ Π(u:✷∗).B(u) + ¬B(u) ◮ bar(B) :≡ ∀(α:✷◆).∃(n:◆).B(¯

α(n))

◮ barΣ(B) :≡ Π(α:✷◆).Σ(n:◆).B(¯

α(n))

◮ uBar(B) :≡ · · · , uBarΣ(B) :≡ · · · ◮ FAN :≡ ∀(B :✷∗ →Prop). (decidable(B) → bar(B) → uBar(B)) ◮ FANΣ :≡ Π(B :✷∗ →Prop). (decidable(B) → barΣ(B) → uBarΣ(B)) ◮ Cont :≡ · · · , ContΣ :≡ · · · , UC :≡ · · · , UCΣ :≡ · · · , MUC :≡ · · · , MUCΣ :≡ · · ·

Theorem (in e.g. BISH). FAN

  • ∧ Cont → UC

MUC

A univalent approach to constructive mathematics LMU Munich

slide-24
SLIDE 24

Background Mathematics in Univalent type theory Summary Mathematics in Univalent type theory

Example II: Fan Theorem

To distinguish principles of structures from those of properties (univalent reverse math?) Given B : ✷∗ → Prop where Prop is the universe of propositions, define

◮ decidable(B) :≡ Π(u:✷∗).B(u) + ¬B(u) ◮ bar(B) :≡ ∀(α:✷◆).∃(n:◆).B(¯

α(n))

◮ barΣ(B) :≡ Π(α:✷◆).Σ(n:◆).B(¯

α(n))

◮ uBar(B) :≡ · · · , uBarΣ(B) :≡ · · · ◮ FAN :≡ ∀(B :✷∗ →Prop). (decidable(B) → bar(B) → uBar(B)) ◮ FANΣ :≡ Π(B :✷∗ →Prop). (decidable(B) → barΣ(B) → uBarΣ(B)) ◮ Cont :≡ · · · , ContΣ :≡ · · · , UC :≡ · · · , UCΣ :≡ · · · , MUC :≡ · · · , MUCΣ :≡ · · ·

Theorem (in MLTT + − ). FANΣ

FAN

Cont

UC MUCΣ ↔ MUC ContΣ

UCΣ

  • A univalent approach to constructive mathematics

LMU Munich

slide-25
SLIDE 25

Background Mathematics in Univalent type theory Summary Summary

Summary and ...

Univalent type theory seems a good approach to constructive mathematics, because

◮ it is constructive, but also compatible with classical and intuitionistic

mathematics,

◮ the stratification of types (e.g. propositions and sets) provides a flexible

and informative way to formulate mathematical statements, and

◮ its implementations such as cubical Agda allow us to verify and execute

proofs and constructions. A constructive proof of the above claim is to do actual mathematics in UTT.

A univalent approach to constructive mathematics LMU Munich

slide-26
SLIDE 26

Background Mathematics in Univalent type theory Summary Summary

Summary and ...

Univalent type theory seems a good approach to constructive mathematics, because

◮ it is constructive, but also compatible with classical and intuitionistic

mathematics,

◮ the stratification of types (e.g. propositions and sets) provides a flexible

and informative way to formulate mathematical statements, and

◮ its implementations such as cubical Agda allow us to verify and execute

proofs and constructions. A constructive proof of the above claim is to do actual mathematics in UTT. Thank you! And, comments, remarks, suggestions . . . , please!!!

A univalent approach to constructive mathematics LMU Munich