[논문 리뷰] S4 modal sequent calculus as intermediate logic and intermediate language
논문은 continuation 기반의 중간 언어가 중간 로직에 대응한다는 점을 주장하며, 특히 제2류(cont.) 연속성이 제한된 S4 모달 로직과 일치함을 보이고, 모달 조각의 스택 가능성을 연구하기 위해 힙/스택 메모리 모델을 갖춘 극성화된 L^□_pol 계산을 제시한다.
In this short paper, we advocate for the idea that continuation-based intermediate languages correspond to intermediate logics. The goal of intermediate languages is to serve as a basis for compiler intermediate representations, allowing to represent expressive program transformations for optimisation and compilation, while preserving the properties that make programs compilable efficiently in the first place, such as the "stackability" of continuations. Intermediate logics are logics between intuitionistic and classical logic in terms of provability. Second-class continuations used in CPS-based intermediate languages correspond to a classical modal logic S4 with the added restriction that implications may only return modal types. This indeed corresponds to an intermediate logic, owing to the Gödel-McKinsey-Tarski theorem which states the intuitionistic nature of the modal fragment of S4. We introduce a three-kinded polarised sequent calculus for S4, together with an operational machine model that separates a heap from a stack. With this model we study a stackability property for the modal fragment of S4.
연구 동기 및 목표
- continuation 기반의 중간 언어를 컴파일러 중간 표현의 기초로 활용하려는 동기를 제시한다.
- 제2류 연속성을 제한된 S4 모달 로직으로 특징지어 중간 로직 개념과 연결한다.
- S4의 극성화 시퀀트 계산을 도입하고 메모리 관리와 스택 가능성을 연구하기 위한 운영 기계 모델을 제시한다.
제안 방법
- S4를 위한 세 가지 극성(□, +, -)을 가진 극성화된 고전 L-계산 확장 L^□_pol을 정의한다.
- 모달 값에 대한 힙과 공변량을 위한 스택형 영역으로 구성된 이중 메모리의 기계 유사 의미를 제시한다.
- 함수의 모달 반환 타입 허용으로 S4를 제한하면 스택 가능성을 가지는 제2류 연속성 체제를 얻는다고 보인다.
- 여기서 제2 CPS 단계를 자세히 설명하지 않고, L^□__pol에서의 해석에 이어 CPS로의 해석으로의 분해를 연결한다.
- 모달 대 비모달 타입에 대한 평가 우선순위에 맞춘 CBV/CBN 실행 우선순성과 감소 규칙의 실행 모델을 제공한다.
실험 결과
연구 질문
- RQ1제2류 연속성이 S4의 모달 로직 제한으로 특징지어질 수 있는가?
- RQ2극성화된 S4 시퀀트 계산이 모달(일류) 타입과 비모달(제2류) 타입 간의 구분을 어떻게 모델링하는가?
- RQ3이중 저장소 메모리 모델(힙 + 스택)이 S4의 모달 조각에 대해 스택 가능성을 보장하는가?
- RQ4이 프레임워크에서 CPS 변환은 극성화된 L^□_pol 계산과 어떻게 상호 작용하는가?
주요 결과
- 고전적 S4를 위한 극성화된 세 가지 유형의 시퀀트 계산 L^□_pol이 도입된다.
- 모달 값을 위한 힙과 모달한 공변량을 평가할 때 해제가 발생하는 스택으로 분리되는 이중 저장소 메모리 모델이 있다.
- 모달 반환 타입을 가진 함수로 S4를 제한하면 제2류 연속성의 스택 가능성을 회복한다.
- S4의 모달 조각은 Gödel–McKinsey–Tarski를 통해 직관적 논리와 고전 논리 사이의 중간 로직에 대응하는 것으로 보인다.
- CPS 변환 프레임워크는 L^□_pol로의 해석에 의한 분해와 CPS 변환으로의 분해로 구성될 수 있으며, 기존 CPS 분해와 일치한다.
더 나은 연구,지금 바로 시작하세요
연구 설계부터 논문 작성까지, 연구 시간을 획기적으로 줄여보세요.
카드 등록 없음 · 무료 플랜 제공
이 리뷰는 AI가 만들고, 인간 에디터가 검토했습니다.