view paper/src/agda-term1.agda @ 19:046b2b20d6c7 default tip

fix
author ryokka
date Mon, 09 Mar 2020 11:25:49 +0900
parents
children
line wrap: on
line source

+-comm : (x y : ℕ) → x + y ≡ y + x
+-comm zero y rewrite (+zero {y}) = refl
+-comm (suc x) y = let open ≡-Reasoning in
  begin
  ?0 ≡⟨ ?1 ⟩
  ?2 ∎

-- ?0 : ℕ {(suc x) + y}
-- ?1 : suc x + y ≡ y + suc x
-- ?2 : ℕ