Nick Drozd
76c37e765c
Simplify proofs of algebra laws
2020-03-06 16:07:00 -06:00
Nick Drozd
1f56ca89e3
Further simplify Nat proofs
2020-03-06 16:07:00 -06:00
Nick Drozd
ec395a7a29
Add more reverse properties
2020-03-06 16:07:00 -06:00
Nick Drozd
2e994cdef1
Rename List.Extra to List.Reverse
2020-03-06 16:07:00 -06:00
Edwin Brady
bbd0f286c2
Fix fileModifiedTime on 32 bit systems
...
Can't use MKBIGI for the result, since that'll be a negative number for
the current time! So use MKBIGUI instead to ensure it stays unsigned.
2020-03-06 09:13:00 +00:00
Niklas Larsson
10fd4e71f8
Merge pull request #4812 from nickdrozd/factorial
...
Add factorial proofs
2020-02-29 14:19:31 +01:00
Nick Drozd
1653d3ead0
Simplify parity arithmetic proofs
2020-02-28 17:35:59 -06:00
Nick Drozd
b72dfc98b4
Add more parity proofs and some commentary
2020-02-28 17:25:17 -06:00
Nick Drozd
7ecd2ff576
Simplify some Nat proofs
2020-02-25 19:29:16 -06:00
Nick Drozd
f80809a157
Add factorial proofs
2020-02-03 21:45:55 -06:00
Nick Drozd
2c45164ae4
Add parity arithmetic proofs
2020-01-12 12:23:23 -06:00
Niklas Larsson
9bffc19455
Merge pull request #4797 from MilanKral/https
...
use HTTPS URL instead of HTTP URL when possible
2019-12-21 13:41:18 +01:00
Niklas Larsson
d5e3013c5d
Merge pull request #4795 from clayrat/patch-18
...
add a couple of Fin operations
2019-12-21 13:39:10 +01:00
Milan Kral
35757f928a
use HTTPS URL instead of HTTP URL when possible
2019-12-19 14:26:41 +01:00
Alex Gryzlov
5951b75fbd
add a couple of Fin operations
2019-12-18 01:03:21 +03:00
Alex Gryzlov
9baca94b8b
add index function for Data.List.Quantifiers.All
2019-12-10 01:22:18 +03:00
Denis Buzdalov
8cf5fc68e4
Couple of convenience absurd-related functions were added to Data.So
.
2019-11-24 02:53:51 +03:00
Niklas Larsson
f3cff28059
Merge pull request #4772 from clayrat/patch-16
...
add SortedMap.singleton
2019-11-07 15:17:46 +01:00
Niklas Larsson
103a454593
Merge pull request #4773 from sysvinit/effects-docs-typos
...
Fix minor spelling errors in effects idrisdoc
2019-11-07 15:17:12 +01:00
Nick Drozd
c7c1c27ae9
Add Ackermann function definitions and proof
2019-10-31 08:43:32 -05:00
Molly Miller
c67d49cf05
Correct a couple of minor typos in the effects package idrisdoc
2019-10-26 21:24:10 +01:00
Alex Gryzlov
e6b19fb42d
add SortedMap.singleton
2019-10-25 23:38:58 +03:00
Alex Gryzlov
229331ce74
Fix file handle leaks and simplify code
2019-08-14 02:03:13 +03:00
Alexander Iljin
7488182860
Fix a typo in the Vect.replicate documentation
2019-08-05 22:31:08 +02:00
Nick Drozd
ff0af878cd
Add equivalence proof for recursive and iterative Fibonacci
2019-07-19 08:04:12 -05:00
Alex Gryzlov
2405b0b425
add fRemove FFI call
2019-07-10 13:21:29 +03:00
Niklas Larsson
bc1c500c91
Merge pull request #4733 from clayrat/bool-lattice
...
expand Bool laws, add (verified) lattice instances for Bool & Nat
2019-07-07 23:28:34 +02:00
Alex Gryzlov
977f1c0212
expand Bool laws, add (verified) lattice instances for Bool & Nat
2019-07-04 13:50:11 +03:00
Nick Drozd
32e92e8ffb
Add some propositional logic theorems
2019-06-03 17:27:39 -05:00
Niklas Larsson
fdcbb6d60d
Merge pull request #4721 from nickdrozd/parity
...
Add some parity theorems
2019-05-30 15:08:48 +02:00
Nick Drozd
c9b4ffe3a2
Add some parity theorems
...
Adapted from and inspired by The Little Typer
2019-05-29 22:14:25 -05:00
klangner
cc30a89f47
Added examples to the Vect doc
2019-05-27 13:59:16 +02:00
Nick Drozd
3b8c83a58f
Simplify reverse proofs
2019-05-13 18:16:21 -05:00
Niklas Larsson
7626280473
Implement idris_clock on windows
2019-05-09 01:28:59 +02:00
Edwin Brady
62bd431d58
Add Clock/clockTime in System
...
This is for getting the time at a finer granularity than seconds. I
want this for getting approximate wall clock time measurements for run
time of fragments of programs, so the interface is very basic, but I am
open to better, more sophisticated APIs!
I expect this won't work on Windows, so it's #ifdefed out and always
returns 0. If you know how to fix this, please do!
2019-04-25 23:18:42 +01:00
Sventimir
5d292522da
Eliminate redundant lets.
2019-03-16 20:54:41 +01:00
Sventimir
45156a89dd
Add some documentation comments.
2019-03-16 12:13:47 +01:00
Sventimir
7761b7a1b6
Add access clause.
2019-03-16 11:42:46 +01:00
Sventimir
bcce75936c
Prove that multiplication of inverses is the same os multiplication of original elements.
2019-03-16 11:35:07 +01:00
Sventimir
af6a4ca43e
Prove that multiplication by a negative makes the result also negative.
2019-03-16 11:26:52 +01:00
Sventimir
26c4d0e52c
Prove some most basic laws of abstract algebra:
...
* the inverse of neutral element is the neutral element itself
* the inverse composed with itself is identity
* the inverse operation distributes over addition
* the neutral element of addition is the absorbing element of
multiplication (both on the left and right hand side)
2019-03-15 21:35:34 +01:00
Niklas Larsson
56c20587e8
Make binary files the default when opening.
...
The reason is that most things on windows handles unix line endings just
fine and this leads to terrible bugs when writing binary files.
fopen still allows opening of files without the "b".
This only has effect on Windows, but POSIX systems allows the "b" as a
noop.
2019-03-12 00:46:38 +01:00
Niklas Larsson
0365becf1f
Merge pull request #4654 from locallycompact/master
...
Add takeUpto and dropUpto functions to Data.Vect
2019-02-27 01:07:59 +01:00
Niklas Larsson
760c8ce043
Merge pull request #4638 from cypheon/socket-constants-fix
...
Replace hardcoded constants from <sys/socket.h> with FFI references
2019-02-27 01:05:43 +01:00
Niklas Larsson
a6a51cd0cc
Merge pull request #4636 from alaendle/feature/identity-monoid
...
Make Identity an instance of Semigroup/Monoid
2019-02-27 01:05:15 +01:00
Niklas Larsson
22f69e8abb
Merge pull request #4649 from zenntenn/makingtotal
...
Makingtotal
2019-02-27 01:04:26 +01:00
Niklas Larsson
83d3acfad6
Merge pull request #4645 from clayrat/patch-14
...
add runWriter helper
2019-02-27 01:03:38 +01:00
Daniel Firth
662b64e988
Add takeUpto and dropUpto functions to Data.Vect
2019-02-06 09:59:34 +00:00
zenntenn
d27b255dd2
These are both called by Core.Core in Blodwen,
...
which I also want to make %default total
2019-01-26 11:25:44 -05:00
Alex Gryzlov
29704102f0
add runWriter helper
2019-01-20 13:55:50 +02:00