Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For some reason when I do an example of the exercise, it throws me an error and I can't figure out why. This is Coq

For some reason when I do an example of the exercise, it throws me an error and I can't figure out why. This is Coq programming language
image text in transcribed
(** **** Exercise: 2 stars, standard (third) Define a function (third: nat -> nat] that divides a number by three, rounding down. =) Fixpoint third in nat) : nat - match with 10-> IS @ @ is(s(n)) -> S(third(n)) end. Example third four_is_one : third 4 = 1. Proof. Simpl. reflexivity. Oed. U: - *goals All L4 Coq Goals Helm WK) Error: (diff) Unable to unify "1" with "2". (** **** Exercise: 2 stars, standard (third) Define a function (third: nat -> nat] that divides a number by three, rounding down. =) Fixpoint third in nat) : nat - match with 10-> IS @ @ is(s(n)) -> S(third(n)) end. Example third four_is_one : third 4 = 1. Proof. Simpl. reflexivity. Oed. U: - *goals All L4 Coq Goals Helm WK) Error: (diff) Unable to unify "1" with "2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions