Skip to main content
QUICK REVIEW

[논문 리뷰] Misquoted No More: Securely Extracting F* Programs with IO

Cezar-Constantin Andrici, Abigail Pribisova|arXiv (Cornell University)|2026. 02. 23.
Security and Verification in ComputingComputer Science인용 수 0
한 줄 요약

이 논문은 SEIO⋆를 제시한다, 형식적으로 검증된 추출 프레임워크로 IO-가능한 F⋆ 프로그램을 깊은 임베딩으로 안전하게 추출하는 한편 임의의 미검증 맥락에 대해 강력한 보안 보장(RrHP)을 제공하고, 번역 검증을 최소화하기 위해 관계 인용(relational quotation)을 사용한다.

ABSTRACT

Shallow embeddings that use monads to represent effects are popular in proof-oriented languages because they are convenient for formal verification. Once shallowly embedded programs are verified, they are often extracted to mainstream languages like OCaml or C and linked into larger codebases. The extraction process is not fully verified because it often involves quotation -- turning the shallowly embedded program into a deeply embedded one -- and verifying quotation remains a major open challenge. Instead, some prior work obtains formal correctness guarantees using translation validation to certify individual extraction results. We build on this idea, but limit the use of translation validation to a first extraction step that we call relational quotation and that uses a metaprogram to construct a typing derivation for the given shallowly embedded program. This metaprogram is simple, since the typing derivation follows the structure of the original program. Once we validate, syntactically, that the typing derivation is valid for the original program, we pass it to a verified syntax-generation function that produces code guaranteed to be semantically related to the original program. We apply this general idea to build SEIO*, a framework for extracting shallowly embedded F* programs with IO to a deeply embedded lambda-calculus while providing formal secure compilation guarantees. Using two cross-language logical relations, we devise a machine-checked proof in F* that SEIO* guarantees Robust Relational Hyperproperty Preservation (RrHP), a very strong secure compilation criterion that implies full abstraction as well as preservation of trace properties and hyperproperties against arbitrary adversarial contexts. This goes beyond the state of the art in verified and certifying extraction, which so far has focused on correctness rather than security.

연구 동기 및 목표

  • 검증되지 않은 코드와 연결되어 있더라도 추출된 F⋆ IO 프로그램에 대한 형식적 보안 보장을 제공한다.
  • 관계 인용(relational quotation)을 사용하여 추출 과정에서 번역 검증에 대한 의존도를 최소화한다.
  • IO⋆에서 IO 프리미티브를 갖는 깊은 임베딩 λio로의 검증된 추출 경로를 개발한다.
  • SEIO⋆가 Robust Relational Hyperproperty Preservation (RrHP)을 만족함을 증명하여 전체 추상화 및 추적/하이퍼프로퍼티 보존을 시사한다.
  • F⋆에서 기계 검사된 산출물로 실용적 구현 가능성을 입증한다.

제안 방법

  • F⋆ 내의 얕게 임베딩된 IO⋆ 프로그램에 대한 타입 유도(type derivation)를 생성하기 위해 관계 인용(relational quotation)을 도입한다.
  • IO⋆와 λio를 트레이스 생성 시맨틱스와 두 개의 교차 언어 논리 관계를 사용하여 정의한다.
  • 타입 유도(typing derivation)를 주면 해당하는 λio 프로그램을 구성하는 순수 F⋆ 함수를 제공한다.
  • 얕은 IO⋆ 프로그램으로부터 타입 유도를 생성하고 검증하기 위해 메타프로그래밍(Meta-F⋆)을 사용한다.
  • F⋆에서 기계 검증된 증명을 통해 SEIO⋆가 Robust Relational Hyperproperty Preservation (RrHP)을 만족한다는 것을 증명한다.

실험 결과

연구 질문

  • RQ1임의의 맥락에 대해 보안 속성을 보장하면서 IO⋆ 프로그램을 깊은 임베딩 λio로 어떻게 추출할 수 있는가?
  • RQ2인증된 추출 프레임워크에서 관계 인용이 번역 검증에 대한 의존도를 줄일 수 있는가?
  • RQ3추출된 IO 코드에 대해 어떤 형식적 보장(RrHP와 같은)을 얻을 수 있으며 이는 전체 추상화와 어떻게 related되는가?
  • RQ4기계 검사된 F⋆ 기반 산출물이 추출 과정과 그것의 보안 속성을 어떻게 인증할 수 있는가?

주요 결과

  • SEIO⋆는 IO⋆ 프로그램을 λio로의 형식적 보안 컴파일 보장과 함께 추출 가능하게 한다.
  • 관계 인용은 얕은 IO⋆ 프로그램과 그것의 깊은 임베딩을 전체 번역 검증 없이도 연결하는 타입 유도를 만든다.
  • 두 개의 교차 언어 논리 관계가 IO⋆와 λio를 연결하고 보안 속성에 대한 기계 검증된 증명을 뒷받침한다.
  • 이 프레임워크는 Robust Relational Hyperproperty Preservation (RrHP)을 달성하여 전체 추상화와 추적 속성 및 하이퍼프로퍼티를 적대적 맥락에 대해 보존한다.
  • F⋆의 산출물은 SEIO⋆에 대해 RrHP의 기계 검증된 증명을 광범위한 정의와 증명과 함께 제공한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.