For Coq 8.5 compatibility, use [Admitted] instead of [admit]

This commit is contained in:
Adam Chlipala 2016-02-09 18:10:58 -05:00
parent 44696bb5b1
commit 4539409e73
2 changed files with 10 additions and 16 deletions

View file

@ -38,8 +38,7 @@ Compute size ex2.
* Size is an upper bound on depth. *)
Theorem depth_le_size : forall e, depth e <= size e.
Proof.
admit.
Qed.
Admitted.
(* A silly recursive function: swap the operand orders of all binary operators. *)
Fixpoint commuter (e : arith) : arith :=
@ -56,18 +55,16 @@ Compute commuter ex2.
Theorem size_commuter : forall e, size (commuter e) = size e.
Proof.
admit.
Qed.
Admitted.
Theorem depth_commuter : forall e, depth (commuter e) = depth e.
Proof.
admit.
Qed.
Admitted.
Theorem commuter_inverse : forall e, commuter (commuter e) = e.
Proof.
admit.
Qed.
Admitted.

View file

@ -67,8 +67,7 @@ Fixpoint commuter (e : arith) : arith :=
* *meanings* of expressions! *)
Theorem commuter_ok : forall v e, interp (commuter e) v = interp e v.
Proof.
admit.
Qed.
Admitted.
(* Let's also revisit substitution. *)
Fixpoint substitute (inThis : arith) (replaceThis : var) (withThis : arith) : arith :=
@ -102,8 +101,7 @@ Fixpoint doSomeArithmetic (e : arith) : arith :=
Theorem doSomeArithmetic_ok : forall e v, interp (doSomeArithmetic e) v = interp e v.
Proof.
admit.
Qed.
Admitted.
@ -183,8 +181,8 @@ Fixpoint compile (e : arith) : list instruction :=
Theorem compile_ok : forall e v, run (compile e) v nil = interp e v :: nil.
Proof.
admit.
Qed.
Admitted.
@ -279,8 +277,7 @@ Theorem factorial_ok : forall v input,
v $? "input" = Some input
-> exec factorial v $? "output" = Some (fact input).
Proof.
admit.
Qed.
Admitted.