# Leanでワンタイムパッドの正しさを機械検証するチュートリアル

Original title: Introduction to Formal Verification with Lean Part 1

> Hacker News story 48969200 · language: ja · submitted 2026-07-19
> Web version: https://zeli.app/ja/story/48969200
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 240 · by [badcryptobitch](<https://news.ycombinator.com/user?id=badcryptobitch>) · 💬 52
[original](<https://hashcloak.com/blog/tutorial-introduction-to-formal-verification-with-lean-(part-1)>) · [HN discussion](<https://news.ycombinator.com/item?id=48969200>)

## Summary

HashCloakのチュートリアルでは、定理証明支援系Leanを使って暗号プロトコルの形式的検証を始める方法を解説します。Leanの基本を学びながら、ワンタイムパッド（OTP）がShannon暗号の正しさの性質を満たすことを証明します。XORの可換性や結合性などの性質をLeanで証明し、Boneh-Shoupの教科書の定義をLeanに移植する手法を紹介します。暗号技術者向けに、形式的検証の基礎を実践的に学べる内容です。

## Key quote

> 証明がLeanでコンパイルされれば、それは正しいことを意味します（Leanコンパイラを信頼する限り）。

---

## Cite

- Page: https://zeli.app/ja/story/48969200
- Date: 2026-07-19
- Source: hashcloak.com (https://hashcloak.com/blog/tutorial-introduction-to-formal-verification-with-lean-(part-1))
- Hacker News: https://news.ycombinator.com/item?id=48969200

## Other languages

- en: https://zeli.app/story/48969200 · markdown: https://zeli.app/story/48969200.md
- zh: https://zeli.app/zh/story/48969200 · markdown: https://zeli.app/zh/story/48969200.md
- ko: https://zeli.app/ko/story/48969200 · markdown: https://zeli.app/ko/story/48969200.md
- de: https://zeli.app/de/story/48969200 · markdown: https://zeli.app/de/story/48969200.md
- es: https://zeli.app/es/story/48969200 · markdown: https://zeli.app/es/story/48969200.md
