XII Summer Workshop in Mathematics Interactively Proving - - PowerPoint PPT Presentation

xii summer workshop in mathematics interactively proving
SMART_READER_LITE
LIVE PREVIEW

XII Summer Workshop in Mathematics Interactively Proving - - PowerPoint PPT Presentation

XII Summer Workshop in Mathematics Interactively Proving Mathematical Theorems Section 2: Predicate Logic Thaynara Arielly de Lima (IME) Mauricio Ayala-Rinc on (CIC-MAT) In collaboration with: Ariane Alves de Almeida and Gabriel Ferreira


slide-1
SLIDE 1

XII Summer Workshop in Mathematics Interactively Proving Mathematical Theorems

Section 2: Predicate Logic

Thaynara Arielly de Lima (IME) Mauricio Ayala-Rinc´

  • n (CIC-MAT)

In collaboration with: Ariane Alves de Almeida and Gabriel Ferreira Silva and Thiago Mendon¸ ca Ferreira Ramos

Funded by FAPDF DE grant 00193.0000.2144/2018-81, CNPq Research Grant 307672/2017-4

February 10 - 14, 2020

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-2
SLIDE 2

Talk’s Plan

1

Section 2 Deduction ` a la Gentzen: predicate rules Exercises - predicate logic Gentzen Deductive Rules vs PVS Proof Commands

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-3
SLIDE 3

Section 2 Deduction ` a la Gentzen: predicate rules

Gentzen Calculus

Table: Rules of deduction ` a la Gentzen for predicate logic

Left rules Right rules Axioms: Γ, ϕ ) ϕ, ∆ (Ax) ?, Γ ) ∆ (L⊥) Structural rules: Γ ) ∆ ϕ, Γ ) ∆ (LWeakening) Γ ) ∆ Γ ) ∆, ϕ (RWeakening) ϕ, ϕ, Γ ) ∆ ϕ, Γ ) ∆ (LContraction) Γ ) ∆, ϕ, ϕ Γ ) ∆, ϕ (RContraction)

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-4
SLIDE 4

Section 2 Deduction ` a la Gentzen: predicate rules

Gentzen Calculus

Table: Rules of deduction ` a la Gentzen for predicate logic

Left rules Right rules Logical rules: ϕi2{1,2}, Γ ) ∆ ϕ1 ^ ϕ2, Γ ) ∆ (L^) Γ ) ∆, ϕ Γ ) ∆, ψ Γ ) ∆, ϕ ^ ψ (R^) ϕ, Γ ) ∆ ψ, Γ ) ∆ ϕ _ ψ, Γ ) ∆ (L_) Γ ) ∆, ϕi2{1,2} Γ ) ∆, ϕ1 _ ϕ2 (R_) Γ ) ∆, ϕ ψ, Γ ) ∆ ϕ ! ψ, Γ ) ∆ (L!) ϕ, Γ ) ∆, ψ Γ ) ∆, ϕ ! ψ (R!) ϕ[x/t], Γ ) ∆ 8xϕ, Γ ) ∆ (L8) Γ ) ∆, ϕ[x/y] Γ ) ∆, 8xϕ (R8), y 62 fv(Γ, ∆) ϕ[x/y], Γ ) ∆ 9xϕ, Γ ) ∆ (L9), y 62 fv(Γ, ∆) Γ ) ∆, ϕ[x/t] Γ ) ∆, 9xϕ (R9)

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-5
SLIDE 5

Section 2 Deduction ` a la Gentzen: predicate rules

Gentzen Calculus

Derivation of: ` 9x¬ϕ ) ¬8xϕ

(L∀)

ϕ[x/t] ) ϕ[x/t] 8xϕ ) ϕ[x/t] ¬ϕ[x/t], 8xϕ )

(c-equiv)

¬ϕ[x/t] ) ¬8xϕ

(c-equiv)

9x¬ϕ ) ¬8xϕ

(L∃)

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-6
SLIDE 6

Section 2 Deduction ` a la Gentzen: predicate rules

Some inference rules in PVS

Predicate:

Deduction rule PVS command

ϕ[x/y], Γ ) ∆ 9xϕ, Γ ) ∆ (L9), y 62 fv(Γ, ∆) 9xϕ, Γ ` ∆ ϕ[x/y], Γ ` ∆ (skolem), y 62 fv(Γ, ∆) ϕ[x/t], Γ ) ∆ 8xϕ, Γ ) ∆ (L8) 8xϕ, Γ ` ∆ ϕ[x/t], Γ ` ∆ (inst)

[− 1] ∀x:T : P(x) [− 2] ∃x:T : ¬P(x) |--- (skolem −2 “z”) [− 1] ∀x:T : P(x) |--- [1] P(z) [− 1] ∀x:T : P(x) |--- [1] P(z) (inst −1 “z”)      [− 1] P(z) |--- [1] P(z)      Q.E.D.

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-7
SLIDE 7

Section 2 Exercises - predicate logic

Exercises - predicate logic

See the file pred algebra.pvs in Exercises directory

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-8
SLIDE 8

Section 2 Gentzen Deductive Rules vs PVS Proof Commands

Summary - Gentzen Deductive Rules vs Proof Commads

Table: Structural Left Rules vs Proof Commands

Structural left rules PVS commands Γ ) ∆ ϕ, Γ ) ∆ (LWeakening) ϕ, Γ ` ∆ Γ ` ∆ (hide) ϕ, ϕ, Γ ) ∆ ϕ, Γ ) ∆ (LContraction) ϕ, Γ ` ∆ ϕ, ϕ, Γ ` ∆ (copy)

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-9
SLIDE 9

Section 2 Gentzen Deductive Rules vs PVS Proof Commands

Summary - Gentzen Deductive Rules vs Proof Commads

Table: Structural Right Rules vs Proof Commands

Structural right rules PVS commands Γ ) ∆ Γ ) ∆, ϕ (RWeakening) Γ ` ∆, ϕ Γ ` ∆ (hide) Γ ) ∆, ϕ, ϕ Γ ) ∆, ϕ (RContraction) Γ ` ∆, ϕ Γ ` ∆, ϕ, ϕ (copy)

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-10
SLIDE 10

Section 2 Gentzen Deductive Rules vs PVS Proof Commands

Summary - Gentzen Deductive Rules vs Proof Commads

Table: Logical Left Rules vs Proof Commands

Left rules PVS commands

ϕ1, ϕ2, Γ ) ∆ ϕ1 ^ ϕ2, Γ ) ∆ (L^) ϕ1 ^ ϕ2, Γ ` ∆ ϕi2{1,2}, Γ ` ∆ (flatten) ϕ, Γ ) ∆ ψ, Γ ) ∆ ϕ _ ψ, Γ ) ∆ (L_) ϕ _ ψ, Γ ` ∆ ϕ, Γ ` ∆ ψ, Γ ` ∆ (split) Γ ) ∆, ϕ ψ, Γ ) ∆ ϕ ! ψ, Γ ) ∆ (L!) ϕ ! ψ, Γ ` ∆ Γ ` ∆, ϕ ψ, Γ ` ∆ (split) ϕ[x/t], Γ ) ∆ 8xϕ, Γ ) ∆ (L8) 8xϕ, Γ ` ∆ ϕ[x/t], Γ ` ∆ (inst) ϕ[x/y], Γ ) ∆ 9xϕ, Γ ) ∆ (L9), y 62 fv(Γ, ∆) 9xϕ, Γ ` ∆ ϕ[x/y], Γ ` ∆ (skolem), y 62 fv(Γ, ∆)

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-11
SLIDE 11

Section 2 Gentzen Deductive Rules vs PVS Proof Commands

Summary - Gentzen Deductive Rules vs Proof Commads

Table: Logical Right Rules vs Proof Commands

Right rules PVS commands

Γ ) ∆, ϕ Γ ) ∆, ψ Γ ) ∆, ϕ ^ ψ (R^) Γ ` ∆, ϕ ^ ψ Γ ` ∆, ϕ Γ ` ∆, ψ (split) Γ ) ∆, ϕi2{1,2} Γ ) ∆, ϕ1 _ ϕ2 (R_) Γ ` ∆, ϕ1 _ ϕ2 Γ ` ∆, ϕ1, ϕ2 (flatten) ϕ, Γ ) ∆, ψ Γ ) ∆, ϕ ! ψ (R!) Γ ` ∆, ϕ ! ψ ϕ, Γ ` ∆, ψ (flatten) Γ ) ∆, ϕ[x/y] Γ ) ∆, 8xϕ (R8), y 62 fv(Γ, ∆) Γ ` ∆, 8xϕ Γ ` ∆, ϕ[x/y] (skolem), y 62 fv(Γ, ∆) Γ ) ∆, ϕ[x/t] Γ ) ∆, 9xϕ (R9) Γ ` ∆, 9xϕ Γ ` ∆, ϕ[x/t] (inst)

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB

slide-12
SLIDE 12

Section 2 Gentzen Deductive Rules vs PVS Proof Commands

Summary - Completing the GC vs PVS rules

(hide) (copy) (flatten) (split) (skolem) (inst) (lemma) (case) ⇥ (LW) ⇥ (LC) ⇥ (L∧) ⇥ (L∨) ⇥ ⇥ (L→) ⇥ (L∀) ⇥ (L∃) ⇥ (RW) ⇥ (RC) ⇥ (R∧) ⇥ (R∨) ⇥ (R→) ⇥ (R∀) ⇥ (R∃) ⇥ (Cut) ⇥

  • T. A. de Lima & M. Ayala-Rinc´
  • n

Interactively Proving Mathematical Theorems XII Summer Workshop in Mathematics - UnB