De Bruijn: fixes alignment of arguments to #_ (#535)
This commit is contained in:
parent
51cd3fb64a
commit
5326f16a8b
1 changed files with 4 additions and 4 deletions
|
@ -444,10 +444,10 @@ count {Γ , _} {(suc n)} (s≤s p) = S (count p)
|
|||
We can then introduce a convenient abbreviation for variables:
|
||||
```
|
||||
#_ : ∀ {Γ}
|
||||
→ (n : ℕ)
|
||||
→ {n∈Γ : True (suc n ≤? length Γ)}
|
||||
--------------------------------
|
||||
→ Γ ⊢ lookup (toWitness n∈Γ)
|
||||
→ (n : ℕ)
|
||||
→ {n∈Γ : True (suc n ≤? length Γ)}
|
||||
--------------------------------
|
||||
→ Γ ⊢ lookup (toWitness n∈Γ)
|
||||
#_ n {n∈Γ} = ` count (toWitness n∈Γ)
|
||||
```
|
||||
Function `#_` takes an implicit argument `n∈Γ` that provides evidence for `n` to
|
||||
|
|
Loading…
Reference in a new issue