证明Standard Reduction Theory

Standard Reduction Theory主要讲的是当->>能推导出Value时,一定存在一种计算方法,使得|->推出该Value,
这里的主要想法是当M->>Value时,对于递归情况会有M->P->>Value,我们在P->>Value上递归,可以得到M->P,P |->Q,Q->> Value‘,Value‘->> Value,然后我证明了一个引理可以将P |->> Value‘中的一个|->过程“移动”出来,得到M |-> P‘,P->Q,
这里其实使用->>上的Church-Rosser定理会更好证明一些。

;M ->>v N
;1 M ->v N => M ->>v N, 2 M ->>v M, 3 M ->>v P, P ->>v N => M ->>v N

;M ->v N
;1 M v N => M ->v N , 2 M ->v M‘ => (λX.M) ->v (λX.M‘) , 3 M ->v M‘ => (M N) ->v (M‘ N) , 4 N ->v N‘ => (M N) ->v (M N‘)

;(λX.M) N v M[X<-N]

;E = [] | (E N) | (V E)

;M v M‘ => E[M] |->v E[M‘]

;M ->>v U <=> M |->>v V, V->>v U, M != Value, V ,U = Value
(lambda (M ->>v U)
(cond
((M ->v U)
(cond
((M v U) ; M = (λX.M1) M2, U = M1[X<-M2]
(M l->v U))))
((M ->>v P, P ->>v U))))

;M ->v P, P ->>v U => M |->>v P‘, P‘ ->>v U ,
(lambda (M ->v P, P ->>v U)
; M ->>v P
(cond
((M ->v P)
(cond
((M v P) ; M = (λX.M1) M2, P = M1[X<-M2]
=> M l->>v P, P ->>v U)
((M = (M1 M2) , P = (M1‘ M2) , M1 ->v M1‘)
; P ->>v U
(cond
((P ->v U)
(cond
((P v U) ; P = ((λY.M1‘‘) M2), U = M1‘‘[X<- M2]
;M1 ->v (λY.M1‘‘)
(cond
((M1 v (λX.M1‘‘)) ;M1 v M1‘ => M l->v P M1 = (λZ.M11) M12, M1 v M11[Z<-M12] = (λY.M1‘‘), M = ( ((λZ.M11) M12) M2) , P = ((λX.M1‘‘) M2) , U = M1‘‘[X<-M2]
(M l->v P, P->>v U))
((M1=(λX.M1‘) , M1‘=(λX.M1‘‘), M1‘->v M1‘‘ => M1 ->v M1‘);M=((λX.M1‘) M2) , P =((λX.M1‘‘) M2) , U =M1‘‘[X<-M2]
;P‘ = M1‘[X<-M2] , M1‘ ->v M1‘‘ => P‘ -> U
(P->>U M1‘[X<-M2] M1‘‘[X<- M2]) => P‘->U
M l->v P‘, P‘ -> U)
((P -> Q, Q ->> U)
P l-> Q‘, Q‘ ->> U))))))))) ; M -> P ,P l-> Q‘ ,Q‘ ->> U
))
;M -> P ,P l-> Q => M l-> P‘ ,P‘ -> Q
(lambda1 (M -> P ,P l-> Q)
; M -> P
(cond ((M v P) ; M = (λX.M1) M2, P = M1[X<-M2]
M l->v P, P -> Q)
((M = (M1 M2),P = (P1 P2),M1 -> P1)
; P l-> Q => P = E[P1‘] , Q = E[Q1‘] , P1‘ v Q1‘
;E
(cond ((E = []); P = P1‘ = (P1 P2)=((λX.P1‘1) P2) , Q = Q1‘ =P1‘1[X<-P2]
;M1 -> P1
(cond ((M1 v P1)
M l->v P , P -> Q)
((M1 = (λX.M1‘),P1 = (λX.P1‘1), M =((λX.M1‘) M2),P=((λX.P1‘1) P2),M1‘->P1‘1)
M=((λX.M1‘) M2) v M1[X<-M2] = M1[X<-P2] -> P1‘1[X<-P2] = Q)
))
((E=(E M));P=(E[P1‘] M2),Q=(E[Q1‘] M2),P1‘ v Q1‘,M=(M1 M2),P=(P1 M2),M1->P1
(lambda1 M1->P1,P1 l-> Q1)=>M1 l-> P11,P11 -> Q1
M1 l-> P11 => (M1 M2) l-> (P1 M2)
P11 -> Q1 => (P1 M2) -> (Q1 M2))
)
))
)
;given P‘ ,U ,find the path from P‘ -> U
(define P‘->U
(lambda ( P‘ = M1‘[X<-M2],U = M1‘‘[X<-M2], M1‘->v M1‘‘)
;M1‘ ->v M1‘‘
(cond
((M1‘ v M1‘‘) ; => M1‘ = ((λY.M1‘1) M1‘2) , M1‘‘ = M1‘1[Y<-M1‘2],
;P‘ = ((λY.M1‘1) M1‘2)[X<-M2] = ((λY.M1‘1[X<-M2]) M1‘2[X<-M2]),
;U = M1‘1[Y<-M1‘2][X<-M2] = M1‘1[X<-M2][Y<-M1‘2[X<-M2]]
;P‘ v M1‘1[X<-M2][Y<-M1‘2[X<-M2]]
P‘ v U)
((M1‘ = (λX.M1‘‘), M1‘‘ = (λX.M1‘‘‘), M1‘‘ ->v M1‘‘‘)
;P‘=(λX.M1‘‘)[X<-M2] = (λX.M1‘‘[X<-M2])
;U=(λX.M1‘‘‘)[X<-M2] = (λX.M1‘‘‘[X<-M2])
(P‘->U M1‘‘[X<-M2] M1‘‘‘[X<-M2] => M1‘‘[X<-M2] -> M1‘‘‘[X<-M2])
=> P‘ -> U)
((M1‘ = (M1‘1 M1‘2), M1‘‘ = (M1‘‘1 M1‘‘2), M1‘1 ->v M1‘‘1)
(P‘->U M1‘1[X<-M2] M1‘‘1[X<-M2]) => M1‘1[X<-M2] -> M1‘‘1[X<-M2]
=> P‘ -> U))))
时间: 2024-08-03 23:19:31

证明Standard Reduction Theory的相关文章

(转)Understanding C parsers generated by GNU Bison

原文链接:https://www.cs.uic.edu/~spopuri/cparser.html Satya Kiran PopuriGraduate StudentUniversity of Illinois at ChicagoChicago, IL 60607spopur2 [at] uic [dot] eduWed Sep 13 12:24:25 CDT 2006 Table of Contents Introduction Prerequisites The LR Parser An

(转)Awesome Courses

Awesome Courses  Introduction There is a lot of hidden treasure lying within university pages scattered across the internet. This list is an attempt to bring to light those awesome courses which make their high-quality material i.e. assignments, lect

Transparency Tutorial with C# - Part 1

Download demo project - 4 Kb Download source - 6 Kb Download demo project - 5 Kb Download source - 6 Kb Download demo project - 4 Kb Download source - 8 Kb Download demo project - 5 Kb Download source - 9 Kb Download demo project - 5 Kb Download sour

android.graphics.drawable.Drawable注释翻译

/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://w

STAT 415 and STAT 515

STAT 415 and STAT 515 Project 1 Fall 2019 Page 1Instructions:• Follow the instructions indicated in this project carefully.• This project should be considered to be an exam. That means that you should do your own work.• You should not speak about thi

Computer Science Theory for the Information Age-6: 学习理论——VC定理的证明

VC定理的证明 本文讨论VC理论的证明,其主要内容就是证明VC理论的两个定理,所以内容非常的枯燥,但对于充实一下自己的理论知识也是有帮助的.另外,VC理论属于比较难也比较抽象的知识,所以我总结的这些证明难免会有一些错误,希望各位能够帮我指出. (一)简单版本的VC理论. 给定一个集合系统$(U,\mathcal{S})$,VC理论可以解决以下问题.对于一个在$U$上的分布$P$,那么至少需要选择多少个样本(根据分布$P$选择),才能使对每个$S\in\mathcal{S}$,用样本估计出来的值以

决策理论(Decision theory)&amp;自动规划和调度(Automated planning and scheduling)(双语)

译的不好,还请见谅... 大部分内容来自wiki decision theory决策理论部分: Normative and descriptive decision theory 规范和描述性决策理论 规范或规范的决策理论关心的是确定最好的决定(在实践中,有些情况下,"最好"的不一定是最大,最优可能还包括值除了最大,但在特定或近似范围),假设一个理想的决策者充分了解,能够准确无误地计算,完全理性的.这说明性的方法的实际应用(人们应该做出决定)决策分析,旨在发现工具,方法和软件帮助人们做

可视化MNIST之降维探索Visualizing MNIST: An Exploration of Dimensionality Reduction

At some fundamental level, no one understands machine learning. It isn’t a matter of things being too complicated. Almost everything we do is fundamentally very simple. Unfortunately, an innate human handicap interferes with us understanding these si

The Improvement of Reduction Summation on GPU Using CUDA

We can never be satisfied with the program just only running correctly.The reduction summation program described in previous blog post needs to be optimized. 1.make the best use of  hardware and do not forget CPUs! During the second part in the reduc