<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>5.4 健全性证明 on 编程那些事儿</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/unsafe/rules-of-the-game/soundness-proof/</link><description>Recent content in 5.4 健全性证明 on 编程那些事儿</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 11 Aug 2026 23:57:44 +0800</lastBuildDate><atom:link href="https://before80.github.io/prgms/Rust/comprehensiveRust/unsafe/rules-of-the-game/soundness-proof/index.xml" rel="self" type="application/rss+xml"/><item><title>5.4.1 健全性</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/unsafe/rules-of-the-game/soundness-proof/01-soundness/</link><pubDate>Tue, 11 Aug 2026 11:30:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/comprehensiveRust/unsafe/rules-of-the-game/soundness-proof/01-soundness/</guid><description>&lt;blockquote&gt;
&lt;p&gt;译文 · 基于 &lt;a href="https://google.github.io/comprehensive-rust/"&gt;Comprehensive Rust&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://google.github.io/comprehensive-rust/unsafe-deep-dive/rules-of-the-game/soundness-proof/soundness.html"&gt;https://google.github.io/comprehensive-rust/unsafe-deep-dive/rules-of-the-game/soundness-proof/soundness.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="541-健全性"&gt;5.4.1 健全性&lt;/h1&gt;
&lt;p&gt;健全函数是指：在其安全前置条件得到满足时，不会触发未定义行为（UB）的函数。&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;朗读健全函数的定义。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;提醒学员：实现调用方的程序员负责满足安全前置条件；编译器不会帮忙。&lt;/p&gt;</description></item><item><title>5.4.2 推论</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/unsafe/rules-of-the-game/soundness-proof/02-corollary/</link><pubDate>Tue, 11 Aug 2026 11:30:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/comprehensiveRust/unsafe/rules-of-the-game/soundness-proof/02-corollary/</guid><description>&lt;blockquote&gt;
&lt;p&gt;译文 · 基于 &lt;a href="https://google.github.io/comprehensive-rust/"&gt;Comprehensive Rust&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://google.github.io/comprehensive-rust/unsafe-deep-dive/rules-of-the-game/soundness-proof/corollary.html"&gt;https://google.github.io/comprehensive-rust/unsafe-deep-dive/rules-of-the-game/soundness-proof/corollary.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="542-推论"&gt;5.4.2 推论&lt;/h1&gt;
&lt;p&gt;健全函数是指：在其安全前置条件得到满足时，不会触发未定义行为（UB）的函数。&lt;/p&gt;
&lt;p&gt;推论：所有完全用 Safe Rust 实现的函数都是健全的。&lt;/p&gt;</description></item><item><title>5.4.3 不健全性</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/unsafe/rules-of-the-game/soundness-proof/03-unsoundness/</link><pubDate>Tue, 11 Aug 2026 11:30:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/comprehensiveRust/unsafe/rules-of-the-game/soundness-proof/03-unsoundness/</guid><description>&lt;blockquote&gt;
&lt;p&gt;译文 · 基于 &lt;a href="https://google.github.io/comprehensive-rust/"&gt;Comprehensive Rust&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://google.github.io/comprehensive-rust/unsafe-deep-dive/rules-of-the-game/soundness-proof/unsoundness.html"&gt;https://google.github.io/comprehensive-rust/unsafe-deep-dive/rules-of-the-game/soundness-proof/unsoundness.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="543-不健全性"&gt;5.4.3 不健全性&lt;/h1&gt;
&lt;p&gt;健全函数是指：在其安全前置条件得到满足时，不会触发未定义行为（UB）的函数。&lt;/p&gt;
&lt;p&gt;不健全函数即使满足已记录的安全前置条件，仍可能触发 UB。&lt;/p&gt;</description></item></channel></rss>