Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PleinDeDk
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume GENESTIER
PleinDeDk
Commits
c6588468
Commit
c6588468
authored
Jul 23, 2019
by
Francois THIRE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
n_vectors
parent
a5ec0150
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
Miscellaneous/n_vectors.dk
Miscellaneous/n_vectors.dk
+50
-0
No files found.
Miscellaneous/n_vectors.dk
0 → 100644
View file @
c6588468
nat : Type.
0 : nat.
S : nat -> nat.
def A : Type.
vect : nat -> Type.
nil : vect 0.
cons : n : nat -> A -> vect n -> vect (S n).
def diag : nat -> nat -> Type.
[i] diag i 0 --> vect i.
[i,j] diag i (S j) --> A -> diag i j.
def c : n : nat -> diag n n.
def c' : n : nat -> m : nat -> A -> diag n m -> diag (S n) m.
[] c 0 --> nil.
[i,a] c (S i) a --> c' i i a (c i).
[n,a,v] c' n 0 a v --> cons n a v.
[n,m,a,v,b] c' n (S m) a v b --> c' n m a (v b).
def 1 : nat := S 0.
def 2 : nat := S 1.
def 3 : nat := S 2.
def 4 : nat := S 3.
def 5 : nat := S 4.
def 6 : nat := S 5.
x : A.
y : A.
w : A.
z : A.
#EVAL c 4 x y w z.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment