Question: ( * * Create an inductive relation that holds if , and only if , element ' x ' appears before element ' y '
Create an inductive relation that holds if and only if element x
appears before element y in the given list.
We can define succ inductively as follows:
x y succ l
RR
x y succ x :: y :: l x y succ z :: l
Rule R says that x succeeds y in the list that starts with x y
Rule R says that if x succeeds y in list l then x succeeds y in a list
the list that results from adding z to list l
Inductive succ X : Typex:Xy:X: list X Prop :
succhere : forall l succ x y x :: y :: l
succlater : forall z l succ x y l succ x y z :: l
Theorem succ:
Only one of the following propositions is provable.
Replace 'False' by the only provable proposition and then prove it:
succ ;;;
~ succ ;;;
~ succ ;;;
Proof.
Qed.
please prove this.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
