This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sn and revamped tools for higher-order paths
(1) Sn and its dependent elimination rule (2) Revamped library for higher-order paths
- Loading branch information
Showing
6 changed files
with
269 additions
and
113 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
------------------------------------------------------------------------ | ||
-- Basic facts about natural numbers. | ||
------------------------------------------------------------------------ | ||
|
||
-- Copyright (c) 2012 Favonia | ||
|
||
{-# OPTIONS --without-K #-} | ||
|
||
module Space.Nat.Lemmas where | ||
|
||
open import Prelude | ||
open import Path | ||
|
||
n+0 : ∀ n → n + 0 ≡ n | ||
n+0 0 = refl _ | ||
n+0 (suc n) = cong suc $ n+0 n | ||
|
||
n+suc : ∀ n m → n + suc m ≡ suc n + m | ||
n+suc 0 m = refl _ | ||
n+suc (suc n) m = cong suc $ n+suc n m |
Oops, something went wrong.