This chapter provides several examples to demonstrate the power of Idris. It includes mathematical proofs. There are a lot of Idris built-ins that help you achieve your goals. Each section introduces the relevant definitions.
The equality data type is roughly defined as follows:
1 data (=) : a -> b -> Type where
2 Refl : x = x
You can use the Refl value constructor ...