mirror of
https://github.com/achlipala/frap.git
synced 2024-11-10 00:07:51 +00:00
Revising for next lecture
This commit is contained in:
parent
d745f0802e
commit
6c1d09bbbc
1 changed files with 2 additions and 2 deletions
|
@ -206,7 +206,7 @@ Module ArithWithVariables.
|
||||||
* We use an infix operator [==v] for equality tests on strings.
|
* We use an infix operator [==v] for equality tests on strings.
|
||||||
* It has a somewhat funny and very expressive type,
|
* It has a somewhat funny and very expressive type,
|
||||||
* whose details we will try to gloss over.
|
* whose details we will try to gloss over.
|
||||||
* (To dig into it more on your own, the appropriate keyword is "dependent types.") *)
|
* (We later return to them in SubsetTypes.v.) *)
|
||||||
Fixpoint substitute (inThis : arith) (replaceThis : var) (withThis : arith) : arith :=
|
Fixpoint substitute (inThis : arith) (replaceThis : var) (withThis : arith) : arith :=
|
||||||
match inThis with
|
match inThis with
|
||||||
| Const _ => inThis
|
| Const _ => inThis
|
||||||
|
@ -469,7 +469,7 @@ Module ArithWithVariables.
|
||||||
linear_arithmetic.
|
linear_arithmetic.
|
||||||
Qed.
|
Qed.
|
||||||
|
|
||||||
Hint Rewrite n_times_0.
|
Local Hint Rewrite n_times_0.
|
||||||
(* Registering rewrite hints will get [simplify] to apply them for us
|
(* Registering rewrite hints will get [simplify] to apply them for us
|
||||||
* automatically! *)
|
* automatically! *)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue