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
af5054f9
Commit
af5054f9
authored
Dec 21, 2020
by
Nicola Botta
Browse files
Initial.
parent
91879f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Fun/Predicates.lidr
0 → 100644
View file @
af5054f9
> module Fun.Predicates
> %default total
> %access public export
> %auto_implicits off
Domain and codomain:
> ||| Domain
> Domain : {A, B : Type} -> (f : A -> B) -> Type
> Domain {A} f = A
> ||| Codomain
> Codomain : {A, B : Type} -> (f : A -> B) -> Type
> Codomain {B} f = B
Extensional equality:
> ||| Extensional equality
> ExtEq : {A, B : Type} -> (f, g : A -> B) -> Type
> -- ExtEq f g = (a : Domain f) -> f a = g a
> ExtEq {A} f g = (a : A) -> f a = g a
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