(Solved) : Reason Example Exercise Throws Error T Figure Coq Programming Language Q44079211 . . .
Forsome reason when I do an example of the exercise, it throws me anerror and I can’t figure out why. This is Coq programming language
(** **** 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”. Show transcribed image text (** **** 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”.
Expert Answer
Answer to 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 prog…
OR