Learn faster and stay on-track by joining this free class with other self-learners.
|
Coq theorem proverClass length: 1 weeks. Start anytime. Creator: Blasa Status: Under Construction |
Join this class! |
|
(ignore poor formatting)Having a couple of problems in andb3 from lesson 1. My function: Definition andb3 (b1:bool) (b2:bool) (b3:bool) : bool := andb (andb b1 b2) b3. My Eval: Eval simpl in (andb3 true true true). Eval simpl in (andb3 false true true). My Output: = andb3 true true true : bool = andb3 false true true : bool Not sure why it is coming out like this. It should be = true : bool = false : bool It works with the answer key: Definition andb3 (b1:bool) (b2:bool) (b3:bool) : bool := match b1 with |true => andb b2 b3 |false => false end. Which is great I guess, but it should work with my code as well. Not sure what I am doing wrong here. Can anyone give me a hint?
* Markdown Cheatsheet:
Link:
New Paragraph:
Main heading:
Sub-heading:
List:
Italics:
Bold:
YouTube:
|