File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
2017-12-Birmingham/Part2_Fundamentals_Coq Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -293,10 +293,10 @@ In fact one can write:
293
293
Definition iter (A : UU) (a : A) (f : A → A) : nat → A :=
294
294
nat_rec A a (λ _ y, f y).
295
295
296
- (** A more fancy notation where the ̂ symbol is the unicode one (written \^ ) *)
296
+ (** A fancier notation where the ̂ symbol is the unicode one (written \^ ) *)
297
297
Notation "f ̂ n" := (λ x, iter _ x f n) (at level 10).
298
298
299
- Eval compute in pred̂2 5.
299
+ Eval compute in pred ̂ 2 5.
300
300
301
301
(** Exercise: define a notation "myif b then x else y" for "ifbool _ x y b"
302
302
and rewrite negbool and andbool using this notation.
@@ -306,7 +306,7 @@ this is already used.
306
306
307
307
*)
308
308
309
- Definition sub (m n : nat) : nat := pred̂n m.
309
+ Definition sub (m n : nat) : nat := pred ̂ n m.
310
310
311
311
Eval compute in sub 15 4.
312
312
Eval compute in sub 11 15.
You can’t perform that action at this time.
0 commit comments