λρ-calculus 1. each λ-variable is a λρ-term, called an atom or atomic term; 2. if M and N are λρ-term then (MN) is a λρ-term called an application;

Σχετικά έγγραφα
About these lecture notes. Simply Typed λ-calculus. Types

C.S. 430 Assignment 6, Sample Solutions

2 Composition. Invertible Mappings

The Simply Typed Lambda Calculus

Ordinal Arithmetic: Addition, Multiplication, Exponentiation and Limit

Every set of first-order formulas is equivalent to an independent set

Homomorphism in Intuitionistic Fuzzy Automata

Fourier Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

4.6 Autoregressive Moving Average Model ARMA(1,1)

From the finite to the transfinite: Λµ-terms and streams

Approximation of distance between locations on earth given by latitude and longitude

Lecture 2. Soundness and completeness of propositional logic

Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3

Fractional Colorings and Zykov Products of graphs

EE512: Error Control Coding

Overview. Transition Semantics. Configurations and the transition relation. Executions and computation

SCITECH Volume 13, Issue 2 RESEARCH ORGANISATION Published online: March 29, 2018

A Note on Intuitionistic Fuzzy. Equivalence Relation

MINIMAL CLOSED SETS AND MAXIMAL CLOSED SETS

Congruence Classes of Invertible Matrices of Order 3 over F 2

Example Sheet 3 Solutions

Sequent Calculi for the Modal µ-calculus over S5. Luca Alberucci, University of Berne. Logic Colloquium Berne, July 4th 2008

derivation of the Laplacian from rectangular to spherical coordinates

k A = [k, k]( )[a 1, a 2 ] = [ka 1,ka 2 ] 4For the division of two intervals of confidence in R +

Other Test Constructions: Likelihood Ratio & Bayes Tests

Finite Field Problems: Solutions

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

6.1. Dirac Equation. Hamiltonian. Dirac Eq.

Statistical Inference I Locally most powerful tests

Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in

SCHOOL OF MATHEMATICAL SCIENCES G11LMA Linear Mathematics Examination Solutions

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

CRASH COURSE IN PRECALCULUS

Section 8.3 Trigonometric Equations

Notes on the Open Economy

Proving with Computer Assistance Lecture 2. Herman Geuvers

Chapter 6: Systems of Linear Differential. be continuous functions on the interval

Jesse Maassen and Mark Lundstrom Purdue University November 25, 2013

ST5224: Advanced Statistical Theory II

Matrices and Determinants

Chapter 3: Ordinal Numbers

Commutative Monoids in Intuitionistic Fuzzy Sets

ω ω ω ω ω ω+2 ω ω+2 + ω ω ω ω+2 + ω ω+1 ω ω+2 2 ω ω ω ω ω ω ω ω+1 ω ω2 ω ω2 + ω ω ω2 + ω ω ω ω2 + ω ω+1 ω ω2 + ω ω+1 + ω ω ω ω2 + ω

Second Order Partial Differential Equations

Main source: "Discrete-time systems and computer control" by Α. ΣΚΟΔΡΑΣ ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ ΔΙΑΛΕΞΗ 4 ΔΙΑΦΑΝΕΙΑ 1

Dynamic types, Lambda calculus machines Section and Practice Problems Apr 21 22, 2016

A Lambda Model Characterizing Computational Behaviours of Terms

Areas and Lengths in Polar Coordinates

Formal Semantics. 1 Type Logic

The λ-calculus. Lecturer: John Wickerson. Phil Wadler

Foundations of Computer Science ENGR 3520 Fall 2013 Thursday, Nov 21, 2013

Math221: HW# 1 solutions

SOME PROPERTIES OF FUZZY REAL NUMBERS

Tridiagonal matrices. Gérard MEURANT. October, 2008

On a four-dimensional hyperbolic manifold with finite volume

Partial Differential Equations in Biology The boundary element method. March 26, 2013

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

If we restrict the domain of y = sin x to [ π, π ], the restrict function. y = sin x, π 2 x π 2

The challenges of non-stable predicates

A Bonus-Malus System as a Markov Set-Chain. Małgorzata Niemiec Warsaw School of Economics Institute of Econometrics

5. Choice under Uncertainty

Lecture 15 - Root System Axiomatics

ORDINAL ARITHMETIC JULIAN J. SCHLÖDER

If we restrict the domain of y = sin x to [ π 2, π 2

Coefficient Inequalities for a New Subclass of K-uniformly Convex Functions

Areas and Lengths in Polar Coordinates

Inverse trigonometric functions & General Solution of Trigonometric Equations

Απόκριση σε Μοναδιαία Ωστική Δύναμη (Unit Impulse) Απόκριση σε Δυνάμεις Αυθαίρετα Μεταβαλλόμενες με το Χρόνο. Απόστολος Σ.

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

Section 9.2 Polar Equations and Graphs

2. Let H 1 and H 2 be Hilbert spaces and let T : H 1 H 2 be a bounded linear operator. Prove that [T (H 1 )] = N (T ). (6p)

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

Derivation of Optical-Bloch Equations

Homework 3 Solutions

Abstract Storage Devices

Homomorphism of Intuitionistic Fuzzy Groups

New bounds for spherical two-distance sets and equiangular lines

Intuitionistic Fuzzy Ideals of Near Rings

Chapter 6: Systems of Linear Differential. be continuous functions on the interval

Cyclic or elementary abelian Covers of K 4

GÖKHAN ÇUVALCIOĞLU, KRASSIMIR T. ATANASSOV, AND SINEM TARSUSLU(YILMAZ)

Uniform Convergence of Fourier Series Michael Taylor

Lambda calculus. Part II Lambda Calculi with Types

Generating Set of the Complete Semigroups of Binary Relations

Knaster-Reichbach Theorem for 2 κ

The Probabilistic Method - Probabilistic Techniques. Lecture 7: The Janson Inequality

Problem Set 3: Solutions

PARTIAL NOTES for 6.1 Trigonometric Identities

The k-α-exponential Function

Assalamu `alaikum wr. wb.

Bounding Nonsplitting Enumeration Degrees

Practice Exam 2. Conceptual Questions. 1. State a Basic identity and then verify it. (a) Identity: Solution: One identity is csc(θ) = 1

Reminders: linear functions

Solutions to Exercise Sheet 5

Strain gauge and rosettes

Spherical Coordinates

1. Introduction and Preliminaries.

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ ΒΑΛΕΝΤΙΝΑ ΠΑΠΑΔΟΠΟΥΛΟΥ Α.Μ.: 09/061. Υπεύθυνος Καθηγητής: Σάββας Μακρίδης

Transcript:

λρ-calculus Yuichi Komori komori@math.s.chiba-u.ac.jp Department of Mathematics, Faculty of Sciences, Chiba University Arato Cho aratoc@g.math.s.chiba-u.ac.jp Department of Mathematics, Faculty of Sciences, Chiba University In [K02], one of the authors has posed a new system λρ-calculus and stated without proof that the strong normalization theorem hold. We will give a proof of it. While the type assignment system T A λ gives a natural deduction for intuitionistic implicational logic (cf. [H97]), T A λρ gives a natural deduction for classical implicational logic. Our system is simpler than Parigot s λµ-calculus (cf. [P92]). 1 The type free λρ-calculus Definition 1.1 (λρ-terms). An infinite sequence of λ-variables is assumed to be given, and an infinite sequence of ρ-variables is assumed to be given. Then linguistic expressions called λρ-terms are defined thus: 1. each λ-variable is a λρ-term, called an atom or atomic term 2. if M and N are λρ-term then (MN) is a λρ-term called an application 3. if M is a λρ-term and a is a ρ-variable then (am) is a λρ-term called an absurd 4. if M is a λρ-term and f is a λ-variable or a ρ-variable then (λf.m) is a λρ-term called an abstract. (If f is a λ-variable or a ρ-variable, then it called a λ-abstract or a ρ-abstract respectively.) λ-variables are denoted by u, v, w, x, y, z, with or without number-subscripts. ρ-variables are denoted by a, b, c, d, with or without number-subscripts. A termvariable means a λ-variable or a ρ-variable. Term-variables are denoted by f, g, This article is an abstract and details will be published elsewhere.

h, with or without number-subscripts. Distinct letters denotes distinct variables unless otherwise stated. A term λa.m is sometimes denoted by ρa.m if the variable a is a ρ-variable. Arbitrary λρ-terms are denoted by L, M, N, P, Q, R, S, T, with or without number-subscripts. For λρ-term we shall say just term. F V (M) is the set of all variables free in M. For example, F V (λxb.a(x(by))) = {a, y}. Definition 1.2 (βρ-contraction). A βρ-redex is any λρ-term of form (am)n, (λx.m)n or (λa.m)n its contractum is (am), [N/x]M or λa.([λx.a(xn)/a]m)n respectively. The re-write rules are (am)n 1βρ (am), (λx.m)n 1βρ [N/x]M, (λa.m)n 1βρ λa.([λx.a(xn)/a]m)n. If P containd a βρ-redex-occurence R and Q is the result of replacing this by its contractum, we say P βρ-contracts to Q (P 1βρ Q). The notion of βρ-reduction and the notation P βρ Q are defined as usual. Theorem 1.3 (Church-Rosser threorem for βρ-reduction). If M βρ P and M βρ Q, then there exists T such that P βρ T and Q βρ T. Proof. Simmlar to the case of β-reduction, see [HS86]. 2 Assgning types to terms Definition 2.1 (Types). An infinite sequence of type-variables is assumed to given, distinct from the term-variables. Types are linguistic expressions defined thus: 1. each type-variable is a type called an atom 2. if σ and τ are types then (σ τ) is a type called a composite type. Type-variables are denoted by p, q, r with or without number-subscripts, and distinct letters denote distinct variables unless otherwise stated. Aribitrary types are denoted by lower-case Greek letters except λ and ρ. Parentheses will often (but not always) be omitted from types, and the reader should restore omitted ones in the way of association to the right. Definition 2.2 (Type-assignment). A type-assignment is any expression M : τ where M is a λρ-term or a ρ-variable and τ is a type we call M its subject and τ is its predicate. 2

Definition 2.3 (The system T A λρ ). T A λρ is a Natural Deduction system. Its formulas are type-assignments. T A λρ has no axioms and has four rules called ( E), ( I), (Absurd) and (Rati), as follows. Deduction rules of T A λρ : P : σ τ Q : σ ( E), P Q : τ a : τ P : τ (Absurd), ap : σ Example 2.4 (Peirce s Law). x : σ Π P : τ λx.p : σ τ a : τ Π P : τ λa.p : τ (Rati). ( I), a : α x : α (Absurd) ax : β ( I) y : (α β) α λx.ax : α β ( E) y(λx.ax) : α λa.y(λx.ax) : α (Rati) ( I) λya.y(λx.ax) : ((α β) α) α The above T A λρ -deduction is writen in more compact style: a : α x : α ax : β y : (α β) α α β λx α ( E) α ρa ((α β) α) α λy 3 Strong Normalization Theorem for T A λρ βρ-reductions of deductions of T A λρ correspond to βρ-reductions of λρ-terms. We prove the strong normalization theorem for deductions of T A λρ,that is, for every deduction of T A λρ Π, all reductions starting at Π are finite. To prove the theorem, we introduce -expansion and use the strong normalization theorem for deductions of T A λ. Definition 3.1 ( -translation). For every deduction of T A λρ, of which the last rule is Rati, we define -translation as follows: 1. Π Π, where Π M Π and α is an atomic type : α 2. Π y : β (Π 2 ) N : γ λy.n : β γ, where Π a : β γ M : β γ λa.m : β γ and 3

x : β γ y : β a : γ xy : γ a(xy) : δ λx.a(xy) : (β γ) δ Π 2 [λx.a(xy)/a] [λx.a(xy)/a]m : β γ y : β [λx.a(xy)/a]my : γ λa.[λx.a(xy)/a]my : γ Definition 3.2 ( -expansion). For every deduction of T A λρ, we define - expansion as follows: 1. (x : α) x : α. ( ) (Π 2 ) 2. Π M : α β N : α M N : β Π 2, where Π M : α β N : α MN : β 3. Π x : α ( ) M : β λx.m : α β ( ) 4. Π a : α M : α am : β, where Π x : α M : β λx.m : α β, where Π a : α M : α am : β 5. Π ( ), where Π a : α Π 2 M : α λa.m : α and a : α (Π 2 ) M : α λa.m : α Definition 3.3 (βa-reduction). A βa-reduction is a βρ-reduction which does not allow a contruction (λa.m)n 1βρ λa.([λx.a(xn)/a]m)n. Theorem 3.4 (Strong normalization theorem for βa-reduction). For every deduction Π of T A λρ, all βa-reductions starting at Π are finite.. Proof. Similar to the case of T A λ, see [HS86]. Theorem 3.5 (Strong normalization theorem for T A λρ ). For every deduction Π of T A λρ, all βρ-reductions starting at Π are finite. Proof. We can prove that ( ) 1βa (Π 2 ) if 1βρ Π 2. So we get a infinite sequence of βa-reductions from a infinite sequence of βρ-reductions. That is, strong normalization theorem for βa-reduction leads strong normalization theorem for T A λρ. 4

References [H97] J. Roser Hindley. Basic Simple Type Theory, Vol. 42 of Cambridge Tracts in Theoretical Computer Science, Cambridge University Press, 1997. [HS86] J. Roger Hindley and Jonathan P. Seldin. Introduction to combinators and λ-calculus, Vol. 1 of London Mathematical Society Student Texts, Cambridge University Press, 1986. [P92] Michel Parigot. λµ-calculus: AN ALGORITHMIC INTERPRETA- TION OF CLASSICAL NATURAL DEDUCTION, Lecture Notes in Computer Science 624, 190-201, 1992. [K02] Yuichi Komori. λρ-calculus: A Natural Deduction for Classical Logic, BULLETIN OF THE SECTION OF LOGIC, VOL. 31, No. 2, 65-70, 2002. 5