Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prop? #2

Open
sven-- opened this issue Jul 5, 2014 · 3 comments
Open

Prop? #2

sven-- opened this issue Jul 5, 2014 · 3 comments
Labels

Comments

@sven--
Copy link
Owner

sven-- commented Jul 5, 2014

Trying to prove this, but the material have not mentioned about "Prop" type before.
(from MoreCoq.v)

Theorem double_induction: forall (P : nat -> nat -> Prop),
P 0 0 ->
(forall m, P m 0 -> P (S m) 0) ->
(forall n, P 0 n -> P 0 (S n)) ->
(forall m n, P m n -> P (S m) (S n)) ->
forall m n, P m n.

@sven--
Copy link
Owner Author

sven-- commented Jul 5, 2014

Can I reduce the following expression?
P 0 0 -> P 0 0

@sven--
Copy link
Owner Author

sven-- commented Jul 5, 2014

Is there any way to use above theorem to solve this problem?
(** **** Exercise: 3 stars (beq_nat_sym) *)
Theorem beq_nat_sym : forall (n m : nat),
beq_nat n m = beq_nat m n.

Below is what I tried ->
----------#####--------------
Definition beq_nat_sym_def (n m : nat) : Prop :=
beq_nat n m = beq_nat m n.
Theorem beq_nat_sym_thm : forall (n m : nat), (beq_nat_sym_def n m).
Proof.
Check double_induction.
intros n m.
rewrite double_induction.
----------#####--------------

Didn't work and I had to find another sol.

@jeehoonkang
Copy link
Collaborator

Wonder if this issue was resolved.

@jeehoonkang jeehoonkang removed their assignment Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants