m1-internship/tests/test3.agda

17 lines
425 B
Agda
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module test3 where
open import Data.Nat using (; _+_)
open import Relation.Binary.PropositionalEquality using (_≡_)
+-assoc : Set
+-assoc = (x y z : ) x + (y + z) (x + y) + z
open import Data.Nat using (zero; suc)
open import Relation.Binary.PropositionalEquality using (refl; cong)
+-assoc-proof : +-assoc
+-assoc-proof zero y z = refl
+-assoc-proof (suc x') y z = cong suc (+-assoc-proof x' y z)