changed unicode := to ascii
This commit is contained in:
parent
196c2f44ce
commit
e6199666b0
1 changed files with 7 additions and 7 deletions
|
@ -76,12 +76,12 @@ data value : Term → Set where
|
|||
## Substitution
|
||||
|
||||
\begin{code}
|
||||
_[_≔_] : Term → Id → Term → Term
|
||||
(varᵀ x) [ y ≔ P ] = if x === y then P else (varᵀ x)
|
||||
(λᵀ x ∷ A ⟶ N) [ y ≔ P ] = λᵀ x ∷ A ⟶ (if x === y then N else (N [ y ≔ P ]))
|
||||
(L ·ᵀ M) [ y ≔ P ] = (L [ y ≔ P ]) ·ᵀ (M [ y ≔ P ])
|
||||
(trueᵀ) [ y ≔ P ] = trueᵀ
|
||||
(falseᵀ) [ y ≔ P ] = falseᵀ
|
||||
(ifᵀ L then M else N) [ y ≔ P ] = ifᵀ (L [ y ≔ P ]) then (M [ y ≔ P ]) else (N [ y ≔ P ])
|
||||
_[_:=_] : Term → Id → Term → Term
|
||||
(varᵀ x) [ y := P ] = if x === y then P else (varᵀ x)
|
||||
(λᵀ x ∷ A ⟶ N) [ y := P ] = λᵀ x ∷ A ⟶ (if x === y then N else (N [ y := P ]))
|
||||
(L ·ᵀ M) [ y := P ] = (L [ y := P ]) ·ᵀ (M [ y := P ])
|
||||
(trueᵀ) [ y := P ] = trueᵀ
|
||||
(falseᵀ) [ y := P ] = falseᵀ
|
||||
(ifᵀ L then M else N) [ y := P ] = ifᵀ (L [ y := P ]) then (M [ y := P ]) else (N [ y := P ])
|
||||
\end{code}
|
||||
|
||||
|
|
Loading…
Reference in a new issue