Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical...

94
Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale Lugano, Switzerland Turing Days’06: Randomness & Complexity Istanbul Bilgi University May 27, 2006 Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 1 / 36

Transcript of Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical...

Page 1: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Kolmogorov Complexityand Logical Formulas

Alexey Chernov

Istituto Dalle Molle di Studio sull’Intelligenza ArtificialeLugano, Switzerland

Turing Days’06: Randomness & ComplexityIstanbul Bilgi University

May 27, 2006

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 1 / 36

Page 2: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Trailer

K (x → y) = K (y |x)

K (((x → y) → y) → (x ∨ y)) = ?

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 2 / 36

Page 3: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Outline

IntroductionMotivationDefinitionsIllustrations

Case Studies

Complexity and Logic

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 3 / 36

Page 4: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Notation: programs

K (x) = min{`(p) | U(p) = x}

U is a universal (or optimal) programming language

U is fixed, omit it:[p](x1, . . . , xn) application of program p to inputs x1, . . . , , xn

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 4 / 36

Page 5: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Notation: programs

K (x) = min{`(p) | U(p) = x}

U is a universal (or optimal) programming language

U is fixed, omit it:[p](x1, . . . , xn) application of program p to inputs x1, . . . , , xn

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 4 / 36

Page 6: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Notation: equalities

f (n) = g(n) (or f (n) ≈ g(n))iff ∃C ∀n |f (n)− g(n)| ≤ C log n

ExampleK (〈x , y〉) ≈ K (x) + K (y |x) means∃C ∀x , y |K (〈x , y〉)− (K (x) + K (y |x))| ≤ C log(`(x) + `(y))

K () plain or prefix complexity

Kplain(x) ≈ Kprefix(x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 5 / 36

Page 7: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Notation: equalities

f (n) = g(n) (or f (n) ≈ g(n))iff ∃C ∀n |f (n)− g(n)| ≤ C log n

ExampleK (〈x , y〉) ≈ K (x) + K (y |x) means∃C ∀x , y |K (〈x , y〉)− (K (x) + K (y |x))| ≤ C log(`(x) + `(y))

K () plain or prefix complexity

Kplain(x) ≈ Kprefix(x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 5 / 36

Page 8: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Notation: equalities

f (n) = g(n) (or f (n) ≈ g(n))iff ∃C ∀n |f (n)− g(n)| ≤ C log n

ExampleK (〈x , y〉) ≈ K (x) + K (y |x) means∃C ∀x , y |K (〈x , y〉)− (K (x) + K (y |x))| ≤ C log(`(x) + `(y))

K () plain or prefix complexity

Kplain(x) ≈ Kprefix(x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 5 / 36

Page 9: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction

Outline

IntroductionMotivationDefinitionsIllustrations

Case Studies

Complexity and Logic

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 6 / 36

Page 10: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

K (x) and K (x |y)

A Bp

7→ x = [p]()

min `(p) = K (x)

A Bp′

7→ x = [p′](y)

y

min `(p′) = K (x |y)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 7 / 36

Page 11: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

K (x) and K (x |y)

A Bp

7→ x = [p]()

min `(p) = K (x)

A Bp′

7→ x = [p′](y)

y

min `(p′) = K (x |y)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 7 / 36

Page 12: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

K (x) and K (x |y)

A Bp

7→ x = [p]()

min `(p) = K (x)

A Bp′

7→ x = [p′](y)

y

min `(p′) = K (x |y)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 7 / 36

Page 13: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

K (x) and K (x |y)

A Bp

7→ x = [p]()

min `(p) = K (x)

A Bp′

7→ x = [p′](y)

y

min `(p′) = K (x |y)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 7 / 36

Page 14: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

Information Distance

A

B

C

pB

K (x |y)

7→ x = [pB](y)

y

pC

K (y |x)

7→ y = [pC ](x)

x

A

B

C

p

7→ x = [p](B, y)

y

7→ y = [p](C, x)

x

Bennett, Gács, Li, Vitányi, Zurek, 1993

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 8 / 36

Page 15: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

Information Distance

A

B

C

pB

K (x |y)

7→ x = [pB](y)

y

pC

K (y |x)

7→ y = [pC ](x)

x

A

B

C

p

7→ x = [p](B, y)

y

7→ y = [p](C, x)

x

Bennett, Gács, Li, Vitányi, Zurek, 1993

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 8 / 36

Page 16: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

Information Distance

A

B

C

pB

K (x |y)

7→ x = [pB](y)

y

pC

K (y |x)

7→ y = [pC ](x)

x

A

B

C

p

7→ x = [p](B, y)

y

7→ y = [p](C, x)

x

Bennett, Gács, Li, Vitányi, Zurek, 1993

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 8 / 36

Page 17: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

Information Distance

Information distance:

E(x , y) = min `(p)

E(x , y) ≥ K (x |y), K (y |x)

E(x , y) ≤ K (x |y) + K (y |x)

A

B

C

p

7→ x = [p](B, y)

y

7→ y = [p](C, x)

x

Bennett, Gács, Li, Vitányi, Zurek, 1993

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 8 / 36

Page 18: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

Multiconditional Complexity

A

B

C

p

7→ 〈x , y〉 = [p](B, x)

x

7→ 〈x , y〉 = [p](C, y)

y

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 9 / 36

Page 19: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

Multiconditional Complexity

A

B

C

p

7→ z = [p](B, x)

x

7→ z = [p](C, y)

y

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 9 / 36

Page 20: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

A Tricky Condition

A

p

B 7→ x

C D 7→ x = [q](y)

y

q

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 10 / 36

Page 21: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

A Tricky Condition

A

p

B 7→ x

C D 7→ x = [q](y)

y

q

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 10 / 36

Page 22: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

A Tricky Condition

A

p

B 7→ x = [p](q)

C D 7→ x = [q](y)

y

q

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 10 / 36

Page 23: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Motivation

A Tricky Condition

A

p

B 7→ x = [p](q)

C D 7→ x = [q](y)

y

q

∀q : [q](y) = x

[p](q) = x

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 10 / 36

Page 24: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: →

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

Example (Conditional Complexity)K (x |y) = min{ `(p) | [p](y) = x }

Example (A Tricky Condition)p : (∀q : [q](y) = x) [p](q) = x

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 11 / 36

Page 25: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: →

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

Example (Conditional Complexity)K (x |y) = min{ `(p) | [p](y) = x }

Example (A Tricky Condition)p : (∀q : [q](y) = x) [p](q) = x

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 11 / 36

Page 26: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: →

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

Example (Conditional Complexity)K (x |y) = min{ `(p) | p ∈ {y} → {x} }

Example (A Tricky Condition)p : (∀q : [q](y) = x) [p](q) = x

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 11 / 36

Page 27: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: →

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

Example (Conditional Complexity)K (x |y) = min{ `(p) | p ∈ {y} → {x} }

Example (A Tricky Condition)p : (∀q : [q](y) = x) [p](q) = x

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 11 / 36

Page 28: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: →

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

Example (Conditional Complexity)K (x |y) = min{ `(p) | p ∈ {y} → {x} }

Example (A Tricky Condition)p : (∀q ∈ {y} → {x}) [p](q) = x

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 11 / 36

Page 29: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: →

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

Example (Conditional Complexity)K (x |y) = min{ `(p) | p ∈ {y} → {x} }

Example (A Tricky Condition)p ∈ ({y} → {x}) → {x}

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 11 / 36

Page 30: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: →

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

Example (Conditional Complexity)K (x |y) = min{ `(p) | p ∈ y → x }

Example (A Tricky Condition)p ∈ (y → x) → x

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 11 / 36

Page 31: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: → and K ()

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

K (X ) = min[p]()∈X

`(p) = minx∈X

K (x)

Example (Conditional Complexity)K (x → y) = min{ `(p) | [p]() ∈ x → y } =min{ `(p) | [[p]()](x) = y } ≈ min{ `(q) | [q](x) = y } = K (y |x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 12 / 36

Page 32: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: → and K ()

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

K (X ) = min[p]()∈X

`(p) = minx∈X

K (x)

Example (Conditional Complexity)K (x → y) = min{ `(p) | [p]() ∈ x → y } =min{ `(p) | [[p]()](x) = y } ≈ min{ `(q) | [q](x) = y } = K (y |x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 12 / 36

Page 33: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: → and K ()

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

K (X ) = min[p]()∈X

`(p) = minx∈X

K (x)

Example (Conditional Complexity)K (x → y) = min{ `(p) | [p]() ∈ x → y } =min{ `(p) | [[p]()](x) = y } ≈ min{ `(q) | [q](x) = y } = K (y |x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 12 / 36

Page 34: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: → and K ()

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

K (X ) = min[p]()∈X

`(p) = minx∈X

K (x)

Example (Conditional Complexity)K (x → y) = min{ `(p) | [p]() ∈ x → y } =min{ `(p) | [[p]()](x) = y } ≈ min{ `(q) | [q](x) = y } = K (y |x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 12 / 36

Page 35: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: → and K ()

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

K (X ) = min[p]()∈X

`(p) = minx∈X

K (x)

Example (Conditional Complexity)K (x → y) = min{ `(p) | [p]() ∈ x → y } =min{ `(p) | [[p]()](x) = y } ≈ min{ `(q) | [q](x) = y } = K (y |x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 12 / 36

Page 36: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: → and K ()

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }

K (X ) = min[p]()∈X

`(p) = minx∈X

K (x)

Example (Conditional Complexity)K (x → y) = min{ `(p) | [p]() ∈ x → y } =min{ `(p) | [[p]()](x) = y } ≈ min{ `(q) | [q](x) = y } = K (y |x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 12 / 36

Page 37: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: Calculus of problems

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }X ∧ Y = { 〈x , y〉 | x ∈ X , y ∈ Y }X ∨ Y = { 〈0, x〉 | x ∈ X } ∪ { 〈1, y〉 | y ∈ Y }

K (X ) = minx∈X

K (x)

Kolmogorov, 1932: Calculus of problemsKleene, 1945: Arithmetic Realizability

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 13 / 36

Page 38: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: Calculus of problems

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }X ∧ Y = { 〈x , y〉 | x ∈ X , y ∈ Y }X ∨ Y = { 〈0, x〉 | x ∈ X } ∪ { 〈1, y〉 | y ∈ Y }

K (X ) = minx∈X

K (x)

Kolmogorov, 1932: Calculus of problemsKleene, 1945: Arithmetic Realizability

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 13 / 36

Page 39: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: Calculus of problems

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }X ∧ Y = { 〈x , y〉 | x ∈ X , y ∈ Y }X ∨ Y = { 〈0, x〉 | x ∈ X } ∪ { 〈1, y〉 | y ∈ Y }

K (X ) = minx∈X

K (x)

Kolmogorov, 1932: Calculus of problemsKleene, 1945: Arithmetic Realizability

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 13 / 36

Page 40: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Definitions

Definitions: Calculus of problems

X , Y are sets (of constructive objects)

X → Y = { p | ∀x ∈ X [p](x) ∈ Y }X ∧ Y = { 〈x , y〉 | x ∈ X , y ∈ Y }X ∨ Y = { 〈0, x〉 | x ∈ X } ∪ { 〈1, y〉 | y ∈ Y }

K (X ) = minx∈X

K (x)

Kolmogorov, 1932: Calculus of problemsKleene, 1945: Arithmetic Realizability

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 13 / 36

Page 41: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Illustrations

Information Distance

Information distance:

E(x , y) = min `(p)

E(x , y) = K ((x → y) ∧ (y → x))

E(x , y) = K ((x ∨ y) → (x ∧ y))

A

B

C

p

7→ x = [p](B, y)

y

7→ y = [p](C, x)

x

Bennett, Gács, Li, Vitányi, Zurek, 1993

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 14 / 36

Page 42: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Illustrations

Multiconditional Complexity

A

B

C

p

7→ z = [p](B, x)

x

7→ z = [p](C, y)

y

min `(p) = K (x ∨ y → z) = K ((x → z) ∧ (y → z))

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 15 / 36

Page 43: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Introduction Illustrations

A Tricky Condition

A

p

B 7→ x = [p](q)

C D 7→ x = [q](y)

y

q

min `(p) = K ((y → x) → x)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 16 / 36

Page 44: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Outline

IntroductionMotivationDefinitionsIllustrations

Case Studies

Complexity and Logic

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 17 / 36

Page 45: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Simplest Formulas

K (x → y) = K (y |x)

K (x ∧ y) = K (〈x , y〉)

K (x ∨ y) =

= min{K (x), K (y)}

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 18 / 36

Page 46: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Simplest Formulas

K (x → y) = K (y |x)

K (x ∧ y) = K (〈x , y〉)

K (x ∨ y) =

= min{K (x), K (y)}

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 18 / 36

Page 47: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Simplest Formulas

K (x → y) = K (y |x)

K (x ∧ y) = K (〈x , y〉)

K (x ∨ y) = min{K (x), K (y)}= min{K (x), K (y)}

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 18 / 36

Page 48: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Simplest Formulas

K (x → y) = K (y |x)

K (x ∧ y) = K (〈x , y〉)

K (x ∨ y) = K ({〈0, x〉, 〈1, y〉}) = min{K (〈0, x〉), K (〈1, y〉)}= min{K (x), K (y)}

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 18 / 36

Page 49: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Simplest Formulas

K (x → y) = K (y |x)

K (x ∧ y) = K (〈x , y〉)

K (x ∨ y) = K ({〈0, x〉, 〈1, y〉}) = min{K (〈0, x〉), K (〈1, y〉)}= min{K (x), K (y)}

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 18 / 36

Page 50: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Simplest Formulas

K (x → y) = K (y |x)

K (x ∧ y) = K (〈x , y〉)

K (x ∨ y) = K ({〈0, x〉, 〈1, y〉}) = min{K (〈0, x〉), K (〈1, y〉)}= min{K (x), K (y)}

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 18 / 36

Page 51: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Information Distance

E(x , y) = K ((x ∨ y) → (x ∧ y)) = K ((x → y) ∧ (y → x))

K ((x → y) ∧ (y → x)) ≥ max{K (x |y), K (y |x)}

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 19 / 36

Page 52: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Information Distance

E(x , y) = K ((x ∨ y) → (x ∧ y)) = K ((x → y) ∧ (y → x))

K ((x → y) ∧ (y → x)) ≥ max{K (x |y), K (y |x)}

Examplex , y are binary strings of length n,random (K (x) = K (y) = n) and independent (K (x |y) = K (y |x) = n)Then

K ((x → y) ∧ (y → x)) = n = max{K (x |y), K (y |x)}

Proof. p = x ⊕ y

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 19 / 36

Page 53: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Information Distance

E(x , y) = K ((x ∨ y) → (x ∧ y)) = K ((x → y) ∧ (y → x))

K ((x → y) ∧ (y → x)) ≥ max{K (x |y), K (y |x)}

Theorem (Bennett, Gács, Li, Vitányi, Zurek, 1993)

E(x , y) = max{K (x |y), K (y |x)}

More precisely,E(x , y)−max{K (x |y), K (y |x)} = O(log(K (x |y) + K (y |x))).

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 19 / 36

Page 54: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Multiconditional Complexity

E(x , y) = K ((x ∨ y) → z) = K ((x → z) ∧ (y → z))

K ((x ∨ y) → z) ≥ max{K (z|x), K (z|y)}

K (z) & 2K (z|x)+K (z|y)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 20 / 36

Page 55: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Multiconditional Complexity

E(x , y) = K ((x ∨ y) → z) = K ((x → z) ∧ (y → z))

K ((x ∨ y) → z) ≥ max{K (z|x), K (z|y)}

Theorem (An. Muchnik, 2000)

K ((x ∨ y) → z) = max{K (z|x), K (z|y)}

K (z) & 2K (z|x)+K (z|y)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 20 / 36

Page 56: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Multiconditional Complexity

E(x , y) = K ((x ∨ y) → z) = K ((x → z) ∧ (y → z))

K ((x ∨ y) → z) ≥ max{K (z|x), K (z|y)}

Theorem (An. Muchnik, 2000)K ((x ∨ y) → z)−max{K (z|x), K (z|y)} = O(log K (z))

Theorem (Gorbunov, 1998)∃∞x , y , z

K ((x ∨ y) → z) = K (z|x) + K (z|y) + O(log(K (z|x) + K (z|y)))

K (z) & 2K (z|x)+K (z|y)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 20 / 36

Page 57: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Multiconditional Complexity

E(x , y) = K ((x ∨ y) → z) = K ((x → z) ∧ (y → z))

K ((x ∨ y) → z) ≥ max{K (z|x), K (z|y)}

Theorem (An. Muchnik, 2000)K ((x ∨ y) → z)−max{K (z|x), K (z|y)} = O(log K (z))

Theorem (Gorbunov, 1998)∃∞x , y , z

K ((x ∨ y) → z) = K (z|x) + K (z|y) + O(log(K (z|x) + K (z|y)))

K (z) & 2K (z|x)+K (z|y)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 20 / 36

Page 58: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

More Examples

Theorem (Shen, Vereshchagin, 2001)

K ((y → x) → x) = min{K (x), K (y)} = K (x ∨ y)

Theorem (Shen, Vereshchagin, 2001)

K (((y → x) → x) → (x ∨ y)) = min{K (x |y), K (y |x)}

Theorem (Shen, Vereshchagin, 2001)

K (((y → x) → y) → y) = 0

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 21 / 36

Page 59: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

More Examples

Theorem (Shen, Vereshchagin, 2001)

K ((y → x) → x) = min{K (x), K (y)} = K (x ∨ y)

Theorem (Shen, Vereshchagin, 2001)

K (((y → x) → x) → (x ∨ y)) = min{K (x |y), K (y |x)}

Theorem (Shen, Vereshchagin, 2001)

K (((y → x) → y) → y) = 0

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 21 / 36

Page 60: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

More Examples

Theorem (Shen, Vereshchagin, 2001)

K ((y → x) → x) = min{K (x), K (y)} = K (x ∨ y)

Theorem (Shen, Vereshchagin, 2001)

K (((y → x) → x) → (x ∨ y)) = min{K (x |y), K (y |x)}

Theorem (Shen, Vereshchagin, 2001)

K (((y → x) → y) → y) = 0

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 21 / 36

Page 61: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

More Examples

Theorem (Shen, Vereshchagin, 2001)

K ((y → x) → x) = min{K (x), K (y)} = K (x ∨ y)

Theorem (Shen, Vereshchagin, 2001)

K (((y → x) → x) → (x ∨ y)) = min{K (x |y), K (y |x)}

Theorem (Shen, Vereshchagin, 2001)

K (((y → x) → y) → y) = 0

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 21 / 36

Page 62: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Non-reducible Complexity Formula

A

B

C

p

7→ z = [p](B, x)

x

7→ w = [p](C, y)

y

min `(p) = K ((x → z) ∧ (y → w))

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 22 / 36

Page 63: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Case Studies

Non-reducible Complexity Formula

Theorem (An. Muchnik, Vereshchagin, 2001)∀n ∃ 〈x1, y1, z1, w1〉 and 〈x2, y2, z2, w2〉 s.t.

1. K (xi) = K (yi) = K (zi) = K (wi) = n,K (xi , yi) = K (xi , zi) = . . . = 2n,K (xi , yi , zi) = K (xi , zi , wi) = . . . = 3n, K (xi , yi , zi , wi) = 3n;

2.K ((x1 → z1) ∧ (y1 → w1)) = 2n

3.K ((x2 → z2) ∧ (y2 → w2)) = n

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 23 / 36

Page 64: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Outline

IntroductionMotivationDefinitionsIllustrations

Case Studies

Complexity and Logic

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 24 / 36

Page 65: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Complexity of Pair

K (〈x , y〉) = K (x) + K (y |x)

FactFor any X , Y

K (X ∧ Y ) ≤ K (X ) + K (X → Y )

∀n ∃X , Y

K (X ∧ Y ) = 2n, K (X ) = n, K (X → Y ) = 2n

X = { u | K (u) = n }, Y = { u | K (u) = 2n }

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 25 / 36

Page 66: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Complexity of Pair

K (〈x , y〉) = K (x) + K (y |x)

FactFor any X , Y

K (X ∧ Y ) ≤ K (X ) + K (X → Y )

∀n ∃X , Y

K (X ∧ Y ) = 2n, K (X ) = n, K (X → Y ) = 2n

X = { u | K (u) = n }, Y = { u | K (u) = 2n }

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 25 / 36

Page 67: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Complexity of Pair

K (〈x , y〉) = K (x) + K (y |x)

FactFor any X , Y

K (X ∧ Y ) ≤ K (X ) + K (X → Y )

∀n ∃X , Y

K (X ∧ Y ) = 2n, K (X ) = n, K (X → Y ) = 2n

X = { u | K (u) = n }, Y = { u | K (u) = 2n }

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 25 / 36

Page 68: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Upper Bound for Complexity

Φ(A1, . . . , An) is a propositional formula with connectives ∧, ∨, →

FactFor any sets X1, . . . , Xn

K (Φ(X1, . . . , Xn)) ≤ K (X1 ∧ . . . ∧ Xn)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 26 / 36

Page 69: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Small Complexity Formulas

Φ(A1, . . . , An) is of small complexity iff∀X1, . . . , Xn K (Φ(X1, . . . , Xn)) is small

ExampleA → A is of small complexity:

∃C ∀X K (X → X ) < C

K (Φ → Ψ) is of small complexity ⇒ K (Ψ) ≤ K (Φ)

K (Φ ↔ Ψ) is of small complexity ⇒ K (Ψ) = K (Φ)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 27 / 36

Page 70: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Small Complexity Formulas

Φ(A1, . . . , An) is of small complexity iff∀X1, . . . , Xn K (Φ(X1, . . . , Xn)) is small

ExampleA → A is of small complexity:

∃C ∀X K (X → X ) < C

K (Φ → Ψ) is of small complexity ⇒ K (Ψ) ≤ K (Φ)

K (Φ ↔ Ψ) is of small complexity ⇒ K (Ψ) = K (Φ)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 27 / 36

Page 71: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Small Complexity Formulas

Φ(A1, . . . , An) is of small complexity iff∀X1, . . . , Xn K (Φ(X1, . . . , Xn)) is small

ExampleA → A is of small complexity:

∃C ∀X K (X → X ) < C

K (Φ → Ψ) is of small complexity ⇒ K (Ψ) ≤ K (Φ)

K (Φ ↔ Ψ) is of small complexity ⇒ K (Ψ) = K (Φ)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 27 / 36

Page 72: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Equalities and Tautologies

K ((x ∨ y) → (x ∧ y)) = K ((x → y)∧ (y → x))

((A ∨ B) →(A ∧ B)) ↔ ((A → B)∧(B → A))

K ((x ∨ y) → z) = K ((x → z)∧ (y → z))

((A ∨ B) →C) ↔ ((A → C)∧(B → C))

K (x → (y → z)) = K ((x ∧ y) → z)

(A →(B → C)) ↔ ((A ∧ B) →C)

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 28 / 36

Page 73: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Logic of Small Complexity Formulas

Logic is a set of formulas closed under inference rules:

Φ, Φ → Ψ

Ψ

Φ(A1, . . . , An)

Φ(Ψ1(B1, . . . , Bk ), . . . ,Ψn(B1, . . . , Bk ))

K (Φ), K (Φ → Ψ) are small ⇒

K (Ψ) ≤ K (Ψ ∧ Φ) ≤ K (Φ) + K (Φ → Ψ) is small

K (Φ(X1, . . . , Xn)) is small for any X1, . . . , Xn ⇒

also for Xi = Ψi(Y1, . . . , Yk )

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 29 / 36

Page 74: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Logic of Small Complexity Formulas

Logic is a set of formulas closed under inference rules:

Φ, Φ → Ψ

Ψ

Φ(A1, . . . , An)

Φ(Ψ1(B1, . . . , Bk ), . . . ,Ψn(B1, . . . , Bk ))

K (Φ), K (Φ → Ψ) are small ⇒

K (Ψ) ≤ K (Ψ ∧ Φ) ≤ K (Φ) + K (Φ → Ψ) is small

K (Φ(X1, . . . , Xn)) is small for any X1, . . . , Xn ⇒

also for Xi = Ψi(Y1, . . . , Yk )

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 29 / 36

Page 75: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Logic of Small Complexity Formulas

Logic is a set of formulas closed under inference rules:

Φ, Φ → Ψ

Ψ

Φ(A1, . . . , An)

Φ(Ψ1(B1, . . . , Bk ), . . . ,Ψn(B1, . . . , Bk ))

K (Φ), K (Φ → Ψ) are small ⇒

K (Ψ) ≤ K (Ψ ∧ Φ) ≤ K (Φ) + K (Φ → Ψ) is small

K (Φ(X1, . . . , Xn)) is small for any X1, . . . , Xn ⇒

also for Xi = Ψi(Y1, . . . , Yk )

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 29 / 36

Page 76: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Intuitionistic formulas

Int is the intuitionistic propositional logic

Int is the logic with axiomsA → (B → A), (A → (B → C)) → ((A → B) → (A → C)),(A ∧ B) → A, . . . , (A ∧ ¬A) → B.

(A ∨ ¬A) /∈ Int (¬¬A → A) /∈ Int (((A → B) → A) → A) /∈ Int

Φ ∈ Int ⇒ ∃C ∀X1, . . . , Xn K (Φ(X1, . . . , Xn)) ≤ C

FactInt is a logic of small complexity formulas

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 30 / 36

Page 77: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Intuitionistic formulas

Int is the intuitionistic propositional logic

Int is the logic with axiomsA → (B → A), (A → (B → C)) → ((A → B) → (A → C)),(A ∧ B) → A, . . . , (A ∧ ¬A) → B.

(A ∨ ¬A) /∈ Int (¬¬A → A) /∈ Int (((A → B) → A) → A) /∈ Int

Φ ∈ Int ⇒ ∃C ∀X1, . . . , Xn K (Φ(X1, . . . , Xn)) ≤ C

FactInt is a logic of small complexity formulas

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 30 / 36

Page 78: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Intuitionistic formulas

Int is the intuitionistic propositional logic

Int is the logic with axiomsA → (B → A), (A → (B → C)) → ((A → B) → (A → C)),(A ∧ B) → A, . . . , (A ∧ ¬A) → B.

(A ∨ ¬A) /∈ Int (¬¬A → A) /∈ Int (((A → B) → A) → A) /∈ Int

Φ ∈ Int ⇒ ∃C ∀X1, . . . , Xn K (Φ(X1, . . . , Xn)) ≤ C

FactInt is a logic of small complexity formulas

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 30 / 36

Page 79: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Non-Small Complexity Formulas

Theorem (Chernov, Skvortsov, Skvortsova, Vereshchagin, 2002)Int is the only logic of small complexity formulas

Theorem (Chernov, 2003)Φ /∈ Int ⇒ ∃C ∀N there are finite sets X1, . . . , Xn

K (Φ(X1, . . . , Xn)) ≥ N − C, K (X1 ∧ . . . ∧ Xn) ≤ N + C

K (Φ(X1, . . . , Xn)) ≤ K (X1 ∧ . . . ∧ Xn) + C

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 31 / 36

Page 80: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Non-Small Complexity Formulas

Theorem (Chernov, Skvortsov, Skvortsova, Vereshchagin, 2002)Int is the only logic of small complexity formulas

Theorem (Chernov, 2003)Φ /∈ Int ⇒ ∃C ∀N there are finite sets X1, . . . , Xn

K (Φ(X1, . . . , Xn)) ≥ N − C, K (X1 ∧ . . . ∧ Xn) ≤ N + C

K (Φ(X1, . . . , Xn)) ≤ K (X1 ∧ . . . ∧ Xn) + C

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 31 / 36

Page 81: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Non-Small Complexity Formula: an Example

(((A → B) → A) → A) /∈ Int

X = {x , y}, Y = {y}

∀x , y K (((X → Y ) → X ) → X ) ≥ min{K (x |y), K (y |x)}+ C

∀x , y K (((x → y) → x) → x) ≤ O(log(K (x) + K (y)))

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 32 / 36

Page 82: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Non-Small Complexity Formula: an Example

(((A → B) → A) → A) /∈ Int

X = {x , y}, Y = {y}

∀x , y K (((X → Y ) → X ) → X ) ≥ min{K (x |y), K (y |x)}+ C

∀x , y K (((x → y) → x) → x) ≤ O(log(K (x) + K (y)))

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 32 / 36

Page 83: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Non-Small Complexity Formula: Proof-Idea Example

(((A → B) → B) → (A ∨ B)) /∈ Int

∀x , y K (((x → y) → y) → (x ∨ y)) ≥ min{K (x |y), K (y |x)}

Fact Known to LogiciansΦ /∈ Int ⇒ (Φ → Ψ) ∈ Int,

where Ψ is like (((A → B) → B) → (A ∨ B))

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 33 / 36

Page 84: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Non-Small Complexity Formula: Proof-Idea Example

(((A → B) → B) → (A ∨ B)) /∈ Int

∀x , y K (((x → y) → y) → (x ∨ y)) ≥ min{K (x |y), K (y |x)}

Fact Known to LogiciansΦ /∈ Int ⇒ (Φ → Ψ) ∈ Int,

where Ψ is like (((A → B) → B) → (A ∨ B))

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 33 / 36

Page 85: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Lower Bounds: Proof Method

Example (Vereshchagin, 2001)

K ((y → x) → x) ≥ min{K (x), K (y)}+ O(log(K (x) + K (y)))

Proof (part 1)Given any p ∈ ((y → x) → x), we construct z s.t.

K (x |z) ≤ const or K (y |z) ≤ const

To this end, we run p on q1, . . . , qN s.t. qi ∈ (y → x) for some i .

qi are all functions from SS, S is any finite set s.t. x , y ∈ Se. g. S = { u | `(u) ≤ `(x), `(y) }

z = 〈u, v〉 s.t. (∀q : q(u) = v) p(q) = v

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 34 / 36

Page 86: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Lower Bounds: Proof Method

Example (Vereshchagin, 2001)

K ((y → x) → x) ≥ min{K (x), K (y)}+ O(log(K (x) + K (y)))

Proof (part 1)Given any p ∈ ((y → x) → x), we construct z s.t.

K (x |z) ≤ const or K (y |z) ≤ const

To this end, we run p on q1, . . . , qN s.t. qi ∈ (y → x) for some i .

qi are all functions from SS, S is any finite set s.t. x , y ∈ Se. g. S = { u | `(u) ≤ `(x), `(y) }

z = 〈u, v〉 s.t. (∀q : q(u) = v) p(q) = v

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 34 / 36

Page 87: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Lower Bounds: Proof Method

Example (Vereshchagin, 2001)

K ((y → x) → x) ≥ min{K (x), K (y)}+ O(log(K (x) + K (y)))

Proof (part 1)Given any p ∈ ((y → x) → x), we construct z s.t.

K (x |z) ≤ const or K (y |z) ≤ const

To this end, we run p on q1, . . . , qN s.t. qi ∈ (y → x) for some i .

qi are all functions from SS, S is any finite set s.t. x , y ∈ Se. g. S = { u | `(u) ≤ `(x), `(y) }

z = 〈u, v〉 s.t. (∀q : q(u) = v) p(q) = v

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 34 / 36

Page 88: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Lower Bounds: Proof Method

Example (Vereshchagin, 2001)

K ((y → x) → x) ≥ min{K (x), K (y)}+ O(log(K (x) + K (y)))

Proof (part 1)Given any p ∈ ((y → x) → x), we construct z s.t.

K (x |z) ≤ const or K (y |z) ≤ const

To this end, we run p on q1, . . . , qN s.t. qi ∈ (y → x) for some i .

qi are all functions from SS, S is any finite set s.t. x , y ∈ Se. g. S = { u | `(u) ≤ `(x), `(y) }

z = 〈u, v〉 s.t. (∀q : q(u) = v) p(q) = v

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 34 / 36

Page 89: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Lower Bounds: Proof Method

Example (Vereshchagin, 2001)

K ((y → x) → x) ≥ min{K (x), K (y)}+ O(log(K (x) + K (y)))

Proof (part 1)Given any p ∈ ((y → x) → x), we construct z s.t.

K (x |z) ≤ const or K (y |z) ≤ const

To this end, we run p on q1, . . . , qN s.t. qi ∈ (y → x) for some i .

qi are all functions from SS, S is any finite set s.t. x , y ∈ Se. g. S = { u | `(u) ≤ `(x), `(y) }

z = 〈u, v〉 s.t. (∀q : q(u) = v) p(q) = v

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 34 / 36

Page 90: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Lower Bounds: Proof Method

Example (Vereshchagin, 2001)

K ((y → x) → x) ≥ min{K (x), K (y)}+ O(log(K (x) + K (y)))

Proof (part 2)p ∈ ((y → x) → x), z = 〈u, v〉 s.t. (∀q : q(u) = v) p(q) = v

1. (∀q : q(x) = y) p(q) = y

2. (∀q : q(u) = v) p(q) = vu 6= x ⇒ ∃q : q(x) = y , q(u) = v ⇒ y = p(q) = v

z = 〈x , v〉 or z = 〈u, y〉

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 35 / 36

Page 91: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Lower Bounds: Proof Method

Example (Vereshchagin, 2001)

K ((y → x) → x) ≥ min{K (x), K (y)}+ O(log(K (x) + K (y)))

Proof (part 2)p ∈ ((y → x) → x), z = 〈u, v〉 s.t. (∀q : q(u) = v) p(q) = v

1. (∀q : q(x) = y) p(q) = y

2. (∀q : q(u) = v) p(q) = vu 6= x ⇒ ∃q : q(x) = y , q(u) = v ⇒ y = p(q) = v

z = 〈x , v〉 or z = 〈u, y〉

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 35 / 36

Page 92: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Lower Bounds: Proof Method

Example (Vereshchagin, 2001)

K ((y → x) → x) ≥ min{K (x), K (y)}+ O(log(K (x) + K (y)))

Proof (part 2)p ∈ ((y → x) → x), z = 〈u, v〉 s.t. (∀q : q(u) = v) p(q) = v

1. (∀q : q(x) = y) p(q) = y

2. (∀q : q(u) = v) p(q) = vu 6= x ⇒ ∃q : q(x) = y , q(u) = v ⇒ y = p(q) = v

z = 〈x , v〉 or z = 〈u, y〉

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 35 / 36

Page 93: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Complexity and Logic

Lower Bounds: Proof Method

Example (Vereshchagin, 2001)

K ((y → x) → x) ≥ min{K (x), K (y)}+ O(log(K (x) + K (y)))

Proof (part 2)p ∈ ((y → x) → x), z = 〈u, v〉 s.t. (∀q : q(u) = v) p(q) = v

1. (∀q : q(x) = y) p(q) = y

2. (∀q : q(u) = v) p(q) = vu 6= x ⇒ ∃q : q(x) = y , q(u) = v ⇒ y = p(q) = v

z = 〈x , v〉 or z = 〈u, y〉

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 35 / 36

Page 94: Kolmogorov Complexity and Logical Formulas · 2006. 7. 1. · Kolmogorov Complexity and Logical Formulas Alexey Chernov Istituto Dalle Molle di Studio sull’Intelligenza Artificiale

Further research

Open DirectionsI Formulas of singletons: general complexity properties

I K ((x → z) ∧ (y → w)) is non-reducible. Are there non-reducibleformulas of two variables? Of three variables?

I Classification of two-variable formulas,“when K (Φ(x , y) → Ψ(x , y)) is small?”

I Other operations on sets (tasks)I Appearing in proofs, as X ∨̃Y = { 〈u, v〉 | u ∈ X or v ∈ Y }I Important for communication in multisource networks

I Applications to logical questionsI Rose problem: constant realizability logic

Alexey Chernov (IDSIA) Kolmogorov Complexity& Logical Formulas Turing Days’06 36 / 36