[Agda] general question

Martin Escardo m.escardo at cs.bham.ac.uk
Tue May 3 13:53:27 CEST 2011


> syntax bounded-∀ (λ n → a) m = ∀⟨ n < m ⟩→ a
>
> data bounded-∀ (A : ℕ → Set) : ℕ → Set where
> bounded-∀-intro₀ :
> ∀⟨ O < O ⟩→ A O
>
> bounded-∀-intro₁ :
> {m : ℕ} → A m → (∀⟨ n < m ⟩→ A n) → ∀⟨ n < succ m ⟩→ A n

This compiles. But it is better to write


syntax bounded-∀ (λ n → a) m = ∀⟨ n < m ⟩→ a

data bounded-∀ (A : ℕ → Ω) : ℕ → Ω where
   bounded-∀-intro₀ :
     ∀⟨ n < O ⟩→ A n

   bounded-∀-intro₁ : {m : ℕ} →
     A m → (∀⟨ n < m ⟩→ A n) → ∀⟨ n < succ m ⟩→ A n


More information about the Agda mailing list