The Little Prover - Daniel P. Friedman, Carl Eastlund

The Little Prover

Daniel P. Friedman, Carl Eastlund

出版社

The MIT Press

出版时间

2015-07-10

ISBN

9780262527958

评分

★★★★★
书籍介绍
[FROM www.amazon.com]: The Little Prover introduces inductive proofs as a way to determine facts about computer programs. It is written in an approachable, engaging style of question-and-answer, with the characteristic humor of The Little Schemer (fourth edition, MIT Press). Sometimes the best way to learn something is to sit down and do it; the book takes readers through step-by-step examples showing how to write inductive proofs. The Little Prover assumes only knowledge of recursive programs and lists (as presented in the first three chapters of The Little Schemer) and uses only a few terms beyond what novice programmers already know. The book comes with a simple proof assistant to help readers work through the book and complete solutions to every example.
AI导读
核心看点
  • 以问答体幽默讲解数学归纳法
  • 深入解析Rewrite与Induction原理
  • 配套简易证明助手辅助练习
适合谁读
  • 熟悉递归与列表的Scheme程序员
  • 对定理证明感兴趣的计算机初学者
  • 想理解ACL2等证明器原理的读者
读前提醒
  • 需具备The Little Schemer前三章基础
  • 非全自动证明器,侧重手动推导逻辑
  • 附录C关于J-Bob实现值得深入钻研
读者共识
  • 对话风格亲切,核心概念讲解清晰
  • 构造证明需创造力,部分读者中途弃坑
  • 相比后续作品工具简陋但利于入门

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "(equal (memb? (if (equal x1 '?) (remb '()) (cons x1 (remb '())))) 'nil)"
  • "(equal (if (equal x1 '?) (memb? (if (equal x1 '?) (remb '()) (cons x1 (remb '())))) (memb? (if (equal x1 '?) (remb '()) (cons x1 (remb '()))))) 'nil)"
  • "(equal (if (equal x1 '?) (memb? (remb '())) (memb? (cons x1 (remb '())))) 'nil)"
  • "(defun add-atoms (x ys) (if (atom x) (if (member? x ys) ys (cons x ys)) (add-atoms (car x) (add-atoms (cdr x) ys))))"
  • "(add-atoms (car x) (add-atoms (cdr x) ys))"
  • "(if (< (size (car x)) (size x)) (< (size (cdr x)) (size x)) 'nil))"
  • "(if (atom x) 't (if (< (size (car x)) (size x)) (< (size (cdr x)) (size x)) 'nil))"
  • "(if (natp (size x)) (if (atom x) 't (if (< (size (car x)) (size x)) (< (size (cdr x)) (size x)) 'nil)) 'nil)"
用户评论
有点失望,原来是搞了一个全手动的rewrite system,我本来想搞自动prover的
相较于之后那本书里的 Pie,这个 J-Bob 确实简陋了些。不过简陋的好处也很明显——让读者更容易去抓住核心的概念,比如递归函数和归纳证明之间的关系。
个人觉得很一般
好喜欢里面的插画
chapter8弃坑
Explains the core idea of the ACL2 theorem prover with examples and words that are intelligible and fun to read. Now I'm a fan of "the little-" series.
收藏