継続渡し形式の型主導部分評価器における正当性の証明 [学位論文内容の要旨/学位論文審査の要旨/日本語要旨/外国語要旨]

知子 廣田, HIROTA, Noriko, ひろた, のりこ · Institutional Repositories DataBase (IRDB) · 2014

This thesis presents various methods of extracting a partial evaluator guaranteed to be correct from the formalization of a constructive existence proof utilizing a well-known proof assistant Coq.A partial evaluator reduces a given program to the normal form that cannot be further simplified even in a function body.Since the partial evaluator is able to evaluate all the reducible parts in a given program, the evaluator produces more efficient and fast program than the original program without changing its meaning.The correctness of partial evaluator is important in actual application to guarantee reliability of programs that have been generated by the partial evaluator.In this thesis, we first attempt to extract an evaluator from formalization in Coq of strong normalization theorem of λ-calculus with delimited control operators shift/reset, paying attention to a well-known property that strong normalization theorem is Curry-Howard isomorphic to an evaluator.On formalizing of our type system, we adopt the Locally Nameless method which leads us to avoid difficulty of α-renaming problem.Our actual proof is done by fully utilizing logical predicate à la Tait.However, the evaluator obtained at this stage is so complicated that it seems much difficult to apply such an evaluator directly to actual problem.In order to overcome this difficulty, in this thesis we prove (i) the completeness theorem of logical predicate from which type-directed partial evaluators (TDPEs) are actually derived, and (ii) the correctness property of such evaluators as is derived in (i), and finally, (iii) from the formalization process in Coq of the above, we deduce a concrete program for TDPE that should be correct in application.Unlike standard partial evaluators, TDPE does not inspect the internal structure of the input program and thus is very fast.For the concept of TDPE, there are a couple of the proceeding studies by Tsushima et al., Ilik and others: Tsushima et al. proposed a TDPE with shift/reset; Ilik proposed a method of extracting a TDPE from the proof process of the completeness theorem for inference rules in the Kripke model.However, Tsushima et al. unfortunately did not succeed to show the correctness property of their TDPE that seems very crucial in application.Also Ilik did not deal with standard shift/reset as is used in Tsushima et al.To fill this gap, we first re-formalize the method proposed by Ilik so as to deal with standard shift/reset.From this Ilik's method, we extract a continuationpassing style (CPS) TDPE with shift/reset in Coq which can be obtained by transforming direct-style TDPE of Tsushima et al.

Cited by 0 works. Open-access PDF

Authors