Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nicola Botta
IdrisLibs2
Commits
1248c4ed
Commit
1248c4ed
authored
Dec 21, 2020
by
Nicola Botta
Browse files
Initial.
parent
0c7ecb4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Nat/BasicProperties.lidr
0 → 100644
View file @
1248c4ed
> module NatBasicProperties
> %default total
> %auto_implicits on
> %access export
> -- %access public export
> {-
> implementation Uninhabited (S n = Z) where
> uninhabited Refl impossible
> -}
> |||
> predInjective : (left : Nat) -> (right : Nat) -> Not (S left = S right) -> Not (left = right)
> predInjective left right contra = contra . (eqSucc left right)
> %freeze predInjective
> |||
> succInjective' : (left : Nat) -> (right : Nat) -> Not (left = right) -> Not (S left = S right)
> succInjective' left right contra = contra . (succInjective left right)
> %freeze succInjective'
> {-
> ---}
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