0
을 포함하는이 간단한 증거를 완료하는 방법이 운동에 내 진행 여기에서이다 : https://github.com/userhr/MIT-6.826-2017부울
(** **** Exercise: 2 stars (andb_true_elim2) *)
(** Prove the following claim, marking cases (and subcases) with
bullets when you use [destruct]. *)
Theorem andb_true_elim2 : forall b c : bool,
andb b c = true -> c = true.
Proof.
intros c.
(** Prove anything && false == false. *)
assert (forall x : bool, andb x false = false) as H.
destruct x.
-reflexivity.
-reflexivity.
(** Obviously true at this point since we have shown that no
matter what, andb b c will be false if one of them is
false. My idea is to use H to show that if it is to be
true, than both arguments must be true.
*)
Qed.
나는 그것이 내가하는 방법을 알아낼 수 없기 때문에 (forall x : bool, andb x false = false)
는 것을 보여주기 위해 필요한 펠트 이유 (forall a b : bool, andb a b = true -> a = true, b = true)
이에 대한
코드입니다. andb true b가 b로 줄고 두 번째로 부울은 사례 분석에 매우 적합합니다. – ejgallego
이것은 Software Foundations 텍스트 북의 연습으로, 다음과 같은 두 가지 기본 사실을 상기하십시오. 링크 된 파일에 온라인으로 연습 문제를 배포하는 것을 자제 해달라고 요청합니다. –