aboutsummaryrefslogtreecommitdiff
path: root/src/Util/ListUtil.v
Commit message (Collapse)AuthorAge
* prove admits in Util.TupleGravatar Andres Erbsen2016-11-11
|
* Add fold_right_andb_true_iff_fold_right_and_TrueGravatar Jason Gross2016-10-19
|
* Add Tuple.map2Gravatar Jason Gross2016-10-19
|
* Work around bug #5112 ([Arguments id /] broken)Gravatar Jason Gross2016-09-30
|
* Move side lemmas to appropriate filesGravatar jadep2016-09-17
|
* Add nth_error_In from 8.6Gravatar Jason Gross2016-09-05
|
* Added rewrite hints for two ListUtil lemmasGravatar jadep2016-08-24
|
* Fix a typoGravatar Jason Gross2016-08-24
|
* Add map_cons from Coq 8.6Gravatar Jason Gross2016-08-24
|
* ListUtil.v : new proofs about sum_firstn for lists with nonnegative elementsGravatar jadep2016-08-21
|
* More 8.4 compatGravatar Jason Gross2016-08-16
|
* Add some list util, and decode'_map_mulGravatar Jason Gross2016-08-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After | File Name | Before || Change ------------------------------------------------------------------------------------ 3m41.37s | Total | 3m29.78s || +0m11.59s ------------------------------------------------------------------------------------ 0m49.73s | Specific/GF25519 | 0m31.66s || +0m18.06s 0m23.64s | ModularArithmetic/Pow2BaseProofs | 0m31.36s || -0m07.71s 0m42.29s | CompleteEdwardsCurve/ExtendedCoordinates | 0m44.80s || -0m02.50s 0m08.88s | Specific/GF1305 | 0m07.07s || +0m01.81s 0m19.09s | ModularArithmetic/ModularBaseSystemProofs | 0m19.86s || -0m00.76s 0m16.62s | CompleteEdwardsCurve/CompleteEdwardsCurveTheorems | 0m16.74s || -0m00.11s 0m15.31s | Experiments/SpecEd25519 | 0m14.40s || +0m00.91s 0m10.10s | Testbit | 0m10.15s || -0m00.05s 0m04.95s | BaseSystemProofs | 0m04.49s || +0m00.46s 0m03.96s | Util/ListUtil | 0m03.16s || +0m00.79s 0m03.40s | Experiments/SpecificCurve25519 | 0m03.31s || +0m00.08s 0m02.36s | ModularArithmetic/BarrettReduction/ZBounded | 0m02.69s || -0m00.33s 0m02.23s | ModularArithmetic/ModularBaseSystemOpt | 0m02.24s || -0m00.01s 0m02.14s | Util/Tuple | 0m01.87s || +0m00.27s 0m01.92s | Experiments/EdDSARefinement | 0m01.85s || +0m00.06s 0m01.71s | Encoding/PointEncodingPre | 0m01.67s || +0m00.04s 0m01.71s | BaseSystem | 0m01.28s || +0m00.42s 0m01.28s | ModularArithmetic/Montgomery/ZBounded | 0m00.85s || +0m00.43s 0m01.16s | ModularArithmetic/ExtendedBaseVector | 0m01.65s || -0m00.49s 0m01.04s | ModularArithmetic/ModularBaseSystemListProofs | 0m00.94s || +0m00.10s 0m00.95s | Experiments/DerivationsOptionRectLetInEncoding | 0m00.96s || -0m00.01s 0m00.89s | ModularArithmetic/ModularBaseSystemField | 0m00.90s || -0m00.01s 0m00.87s | ModularArithmetic/PseudoMersenneBaseParamProofs | 0m00.77s || +0m00.09s 0m00.78s | Encoding/ModularWordEncodingTheorems | 0m00.69s || +0m00.09s 0m00.73s | Spec/EdDSA | 0m00.67s || +0m00.05s 0m00.69s | Util/AdditionChainExponentiation | 0m00.74s || -0m00.05s 0m00.68s | ModularArithmetic/ExtPow2BaseMulProofs | 0m00.73s || -0m00.04s 0m00.67s | ModularArithmetic/ModularBaseSystemList | 0m00.71s || -0m00.03s 0m00.61s | ModularArithmetic/ModularBaseSystem | 0m00.70s || -0m00.08s 0m00.52s | ModularArithmetic/PseudoMersenneBaseParams | 0m00.45s || +0m00.07s 0m00.47s | ModularArithmetic/Pow2Base | 0m00.42s || +0m00.04s
* Add a ListUtil lemmaGravatar Jason Gross2016-08-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After | File Name | Before || Change ------------------------------------------------------------------------------------ 2m35.64s | Total | 2m44.74s || -0m09.10s ------------------------------------------------------------------------------------ 0m34.95s | CompleteEdwardsCurve/ExtendedCoordinates | 0m40.38s || -0m05.42s 0m08.61s | Testbit | 0m13.30s || -0m04.69s 0m17.46s | ModularArithmetic/ModularBaseSystemProofs | 0m19.00s || -0m01.53s 0m16.67s | CompleteEdwardsCurve/CompleteEdwardsCurveTheorems | 0m15.82s || +0m00.85s 0m16.13s | Specific/GF25519 | 0m16.04s || +0m00.08s 0m14.08s | ModularArithmetic/Pow2BaseProofs | 0m13.19s || +0m00.89s 0m13.67s | Experiments/SpecEd25519 | 0m13.66s || +0m00.00s 0m03.97s | BaseSystemProofs | 0m03.77s || +0m00.20s 0m03.29s | Experiments/SpecificCurve25519 | 0m03.27s || +0m00.02s 0m02.96s | Util/ListUtil | 0m02.91s || +0m00.04s 0m02.57s | Specific/GF1305 | 0m02.56s || +0m00.00s 0m02.18s | ModularArithmetic/BarrettReduction/ZBounded | 0m02.18s || +0m00.00s 0m02.07s | ModularArithmetic/ModularBaseSystemOpt | 0m02.06s || +0m00.00s 0m01.82s | Experiments/EdDSARefinement | 0m01.82s || +0m00.00s 0m01.68s | Util/Tuple | 0m01.80s || -0m00.12s 0m01.64s | Encoding/PointEncodingPre | 0m01.51s || +0m00.12s 0m01.21s | BaseSystem | 0m01.21s || +0m00.00s 0m01.18s | ModularArithmetic/ExtendedBaseVector | 0m01.13s || +0m00.05s 0m01.00s | ModularArithmetic/ModularBaseSystemField | 0m00.91s || +0m00.08s 0m00.95s | Experiments/DerivationsOptionRectLetInEncoding | 0m00.98s || -0m00.03s 0m00.92s | ModularArithmetic/ModularBaseSystemListProofs | 0m00.84s || +0m00.08s 0m00.91s | ModularArithmetic/Montgomery/ZBounded | 0m00.83s || +0m00.08s 0m00.86s | Spec/EdDSA | 0m00.65s || +0m00.20s 0m00.76s | ModularArithmetic/ExtPow2BaseMulProofs | 0m00.62s || +0m00.14s 0m00.69s | Util/AdditionChainExponentiation | 0m00.81s || -0m00.12s 0m00.68s | Encoding/ModularWordEncodingTheorems | 0m00.65s || +0m00.03s 0m00.65s | ModularArithmetic/ModularBaseSystemList | 0m00.59s || +0m00.06s 0m00.64s | ModularArithmetic/ModularBaseSystem | 0m00.60s || +0m00.04s 0m00.59s | ModularArithmetic/PseudoMersenneBaseParamProofs | 0m00.63s || -0m00.04s 0m00.45s | ModularArithmetic/Pow2Base | 0m00.60s || -0m00.14s 0m00.40s | ModularArithmetic/PseudoMersenneBaseParams | 0m00.43s || -0m00.02s
* Fix definition of [repeat] to match with 8.6Gravatar Jason Gross2016-08-16
|
* Fix for Coq 8.4Gravatar Jason Gross2016-08-16
|
* Add length lemmasGravatar Jason Gross2016-08-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After | File Name | Before || Change ------------------------------------------------------------------------------------ 2m21.44s | Total | 2m18.90s || +0m02.54s ------------------------------------------------------------------------------------ 0m35.19s | CompleteEdwardsCurve/ExtendedCoordinates | 0m34.60s || +0m00.58s 0m17.20s | ModularArithmetic/ModularBaseSystemProofs | 0m16.72s || +0m00.48s 0m15.34s | CompleteEdwardsCurve/CompleteEdwardsCurveTheorems | 0m15.21s || +0m00.12s 0m14.89s | Specific/GF25519 | 0m14.38s || +0m00.50s 0m14.03s | Experiments/SpecEd25519 | 0m13.67s || +0m00.35s 0m08.57s | ModularArithmetic/Pow2BaseProofs | 0m08.67s || -0m00.09s 0m04.32s | Testbit | 0m04.28s || +0m00.04s 0m03.73s | BaseSystemProofs | 0m03.75s || -0m00.02s 0m03.30s | Experiments/SpecificCurve25519 | 0m03.24s || +0m00.05s 0m02.92s | Util/ListUtil | 0m02.98s || -0m00.06s 0m02.15s | Specific/GF1305 | 0m02.11s || +0m00.04s 0m02.11s | ModularArithmetic/ModularBaseSystemOpt | 0m02.16s || -0m00.05s 0m01.77s | Experiments/EdDSARefinement | 0m01.76s || +0m00.01s 0m01.67s | ModularArithmetic/BarrettReduction/ZBounded | 0m01.64s || +0m00.03s 0m01.54s | Encoding/PointEncodingPre | 0m01.50s || +0m00.04s 0m01.52s | Util/Tuple | 0m01.31s || +0m00.20s 0m01.20s | BaseSystem | 0m01.19s || +0m00.01s 0m01.19s | ModularArithmetic/ExtendedBaseVector | 0m01.17s || +0m00.02s 0m00.97s | ModularArithmetic/ModularBaseSystemField | 0m00.90s || +0m00.06s 0m00.93s | Experiments/DerivationsOptionRectLetInEncoding | 0m00.88s || +0m00.05s 0m00.84s | ModularArithmetic/ModularBaseSystemListProofs | 0m00.87s || -0m00.03s 0m00.82s | ModularArithmetic/Montgomery/ZBounded | 0m00.83s || -0m00.01s 0m00.68s | ModularArithmetic/ExtPow2BaseMulProofs | 0m00.64s || +0m00.04s 0m00.67s | Encoding/ModularWordEncodingTheorems | 0m00.61s || +0m00.06s 0m00.64s | Util/AdditionChainExponentiation | 0m00.68s || -0m00.04s 0m00.64s | ModularArithmetic/ModularBaseSystem | 0m00.57s || +0m00.07s 0m00.62s | Spec/EdDSA | 0m00.58s || +0m00.04s 0m00.61s | ModularArithmetic/ModularBaseSystemList | 0m00.62s || -0m00.01s 0m00.56s | ModularArithmetic/PseudoMersenneBaseParamProofs | 0m00.57s || -0m00.00s 0m00.43s | ModularArithmetic/Pow2Base | 0m00.42s || +0m00.01s 0m00.40s | ModularArithmetic/PseudoMersenneBaseParams | 0m00.39s || +0m00.01s
* Add ext_limb_widths_upper_boundGravatar Jason Gross2016-08-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | After | File Name | Before || Change ---------------------------------------------------------------------------------- 1m00.15s | Total | 1m00.12s || +0m00.03s ---------------------------------------------------------------------------------- 0m14.85s | Specific/GF25519 | 0m16.44s || -0m01.59s 0m16.98s | ModularArithmetic/ModularBaseSystemProofs | 0m16.66s || +0m00.32s 0m04.21s | ModularArithmetic/Pow2BaseProofs | 0m04.23s || -0m00.02s 0m03.81s | BaseSystemProofs | 0m03.96s || -0m00.14s 0m03.33s | Experiments/SpecificCurve25519 | 0m03.33s || +0m00.00s 0m03.01s | Util/ListUtil | 0m02.98s || +0m00.02s 0m02.43s | Specific/GF1305 | 0m02.00s || +0m00.43s 0m02.11s | ModularArithmetic/ModularBaseSystemOpt | 0m02.05s || +0m00.06s 0m01.45s | BaseSystem | 0m01.16s || +0m00.29s 0m01.21s | ModularArithmetic/ExtendedBaseVector | 0m01.17s || +0m00.04s 0m00.91s | ModularArithmetic/ModularBaseSystemField | 0m00.90s || +0m00.01s 0m00.83s | ModularArithmetic/ModularBaseSystemListProofs | 0m00.76s || +0m00.06s 0m00.70s | ModularArithmetic/ExtPow2BaseMulProofs | 0m00.58s || +0m00.12s 0m00.66s | Testbit | 0m00.63s || +0m00.03s 0m00.64s | ModularArithmetic/ModularBaseSystemList | 0m00.58s || +0m00.06s 0m00.62s | Util/AdditionChainExponentiation | 0m00.62s || +0m00.00s 0m00.61s | ModularArithmetic/PseudoMersenneBaseParamProofs | 0m00.55s || +0m00.05s 0m00.60s | ModularArithmetic/PseudoMersenneBaseParams | 0m00.60s || +0m00.00s 0m00.60s | ModularArithmetic/ModularBaseSystem | 0m00.55s || +0m00.04s 0m00.60s | ModularArithmetic/Pow2Base | 0m00.38s || +0m00.21s
* Add lemma in 8.6 std lib to ListUtil for 8.4Gravatar Jason Gross2016-08-08
|
* Add a ListUtil lemmaGravatar Jason Gross2016-08-08
|
* Make the library 20% faster: [auto with *] is evilGravatar Jason Gross2016-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I do hereby revoke the privilege of [intuition] to grab random hints from random databases. This privilege is reserved for [debug_intuition], which comes with a warning about not being used in production code. This tactic is useful in conjunction with `Print Hint *`, to discover what hint databases the hints were grabbed from. (Suggestions for renaming [debug_intuition] welcome.) Any file using [intuition] must [Require Export Crypto.Util.FixCoqMistakes.]. It's possible we could lift this restriction by compiling [FixCoqMistakes] separately, and passing along `-require FixCoqMistakes` to Coq. Should we do this? After | File Name | Before || Change ------------------------------------------------------------------------------------ 3m29.54s | Total | 4m33.13s || -1m03.59s ------------------------------------------------------------------------------------ 0m03.75s | BaseSystemProofs | 0m43.84s || -0m40.09s 0m42.57s | CompleteEdwardsCurve/ExtendedCoordinates | 0m34.48s || +0m08.09s 0m03.04s | Util/ListUtil | 0m11.18s || -0m08.14s 0m01.62s | ModularArithmetic/PrimeFieldTheorems | 0m09.53s || -0m07.90s 0m00.87s | Util/NumTheoryUtil | 0m07.61s || -0m06.74s 0m01.61s | Encoding/PointEncodingPre | 0m06.93s || -0m05.31s 0m51.95s | Specific/GF25519 | 0m47.52s || +0m04.42s 0m12.30s | Experiments/SpecEd25519 | 0m11.29s || +0m01.01s 0m09.22s | Specific/GF1305 | 0m08.17s || +0m01.05s 0m03.48s | CompleteEdwardsCurve/Pre | 0m04.77s || -0m01.28s 0m02.70s | Assembly/State | 0m04.09s || -0m01.38s 0m01.55s | ModularArithmetic/ModularArithmeticTheorems | 0m02.93s || -0m01.38s 0m01.16s | Assembly/Pseudize | 0m02.34s || -0m01.17s 0m15.67s | CompleteEdwardsCurve/CompleteEdwardsCurveTheorems | 0m16.37s || -0m00.70s 0m06.02s | Algebra | 0m06.67s || -0m00.65s 0m05.90s | Experiments/GenericFieldPow | 0m06.68s || -0m00.77s 0m04.65s | WeierstrassCurve/Pre | 0m05.27s || -0m00.61s 0m03.93s | ModularArithmetic/Pow2BaseProofs | 0m03.94s || -0m00.00s 0m03.70s | ModularArithmetic/Tutorial | 0m03.85s || -0m00.14s 0m02.83s | ModularArithmetic/ModularBaseSystemOpt | 0m02.84s || -0m00.00s 0m02.74s | Experiments/EdDSARefinement | 0m01.80s || +0m00.94s 0m02.35s | Util/ZUtil | 0m02.51s || -0m00.15s 0m01.86s | Assembly/Wordize | 0m02.32s || -0m00.45s 0m01.23s | ModularArithmetic/ExtendedBaseVector | 0m01.20s || +0m00.03s 0m01.21s | BaseSystem | 0m01.63s || -0m00.41s 0m01.03s | Experiments/SpecificCurve25519 | 0m00.98s || +0m00.05s 0m01.01s | ModularArithmetic/ModularBaseSystemProofs | 0m01.11s || -0m00.10s 0m00.95s | ModularArithmetic/BarrettReduction/Z | 0m01.38s || -0m00.42s 0m00.92s | Experiments/DerivationsOptionRectLetInEncoding | 0m01.81s || -0m00.89s 0m00.85s | ModularArithmetic/ModularBaseSystemField | 0m00.86s || -0m00.01s 0m00.82s | ModularArithmetic/ModularBaseSystemListProofs | 0m00.79s || +0m00.02s 0m00.80s | Assembly/QhasmEvalCommon | 0m00.93s || -0m00.13s 0m00.73s | Spec/EdDSA | 0m00.59s || +0m00.14s 0m00.72s | Util/Tuple | 0m00.71s || +0m00.01s 0m00.70s | Util/IterAssocOp | 0m00.72s || -0m00.02s 0m00.67s | Encoding/ModularWordEncodingTheorems | 0m00.71s || -0m00.03s 0m00.66s | Assembly/Pipeline | 0m00.64s || +0m00.02s 0m00.65s | Testbit | 0m00.65s || +0m00.00s 0m00.65s | Assembly/PseudoConversion | 0m00.65s || +0m00.00s 0m00.64s | Util/AdditionChainExponentiation | 0m00.63s || +0m00.01s 0m00.63s | ModularArithmetic/ExtPow2BaseMulProofs | 0m00.64s || -0m00.01s 0m00.63s | Assembly/Pseudo | 0m00.65s || -0m00.02s 0m00.62s | ModularArithmetic/ModularBaseSystem | 0m00.57s || +0m00.05s 0m00.61s | ModularArithmetic/ModularBaseSystemList | 0m00.57s || +0m00.04s 0m00.60s | Encoding/ModularWordEncodingPre | 0m00.69s || -0m00.08s 0m00.60s | ModularArithmetic/PseudoMersenneBaseParamProofs | 0m00.59s || +0m00.01s 0m00.56s | Assembly/StringConversion | 0m00.56s || +0m00.00s 0m00.54s | Spec/ModularWordEncoding | 0m00.61s || -0m00.06s 0m00.54s | Assembly/QhasmUtil | 0m00.46s || +0m00.08s 0m00.52s | Assembly/Qhasm | 0m00.53s || -0m00.01s 0m00.48s | Assembly/AlmostQhasm | 0m00.52s || -0m00.04s 0m00.48s | ModularArithmetic/Pre | 0m00.48s || +0m00.00s 0m00.46s | Assembly/Vectorize | 0m00.72s || -0m00.25s 0m00.45s | Spec/WeierstrassCurve | 0m00.44s || +0m00.01s 0m00.44s | Assembly/AlmostConversion | 0m00.44s || +0m00.00s 0m00.43s | ModularArithmetic/Pow2Base | 0m00.51s || -0m00.08s 0m00.42s | ModularArithmetic/PseudoMersenneBaseParams | 0m00.38s || +0m00.03s 0m00.41s | Spec/CompleteEdwardsCurve | 0m00.43s || -0m00.02s 0m00.34s | Spec/ModularArithmetic | 0m00.36s || -0m00.01s 0m00.03s | Util/FixCoqMistakes | N/A || +0m00.03s 0m00.02s | Util/Notations | 0m00.04s || -0m00.02s 0m00.02s | Util/Tactics | 0m00.02s || +0m00.00s
* Add a distr_length databaseGravatar Jason Gross2016-07-19
|
* Add a lemma about sum_firstnGravatar Jason Gross2016-07-18
|
* Add a ListUtil lemmaGravatar Jason Gross2016-07-18
|
* Fix for Coq 8.4 (missing lemmas)Gravatar Jason Gross2016-07-18
|
* Fix some typos in the previous commitGravatar Jason Gross2016-07-18
|
* Add some lemmas about nth_default in boundsGravatar Jason Gross2016-07-18
|
* Added lemmas to ZUtil and NatUtil (for Testbit)Gravatar jadep2016-07-18
|
* mergeGravatar jadep2016-07-10
|\
* | added proofs about addition chain exponentiation for later use in ↵Gravatar jadep2016-07-10
| | | | | | | | ModularBaseSystem [pow], which we need for sqrt and inversion.
| * Fix ListUtil for Coq 8.4Gravatar Jason Gross2016-07-10
| |
| * Update ListUtilGravatar Jason Gross2016-07-08
| |
| * Add useful tactics and util lemmasGravatar Jason Gross2016-07-08
| |
| * Add a ListUtil lemmaGravatar Jason Gross2016-07-08
| |
| * Add a ListUtil lemmaGravatar Jason Gross2016-07-08
| |
| * Fix ListUtil for Coq 8.4Gravatar Jason Gross2016-07-08
| | | | | | | | | | [rewrite_strat] ignores [using tac] sometimes, and [Hint Rewrite] only accepts one database in 8.4.
| * Add update_nth out of boundsGravatar Jason Gross2016-07-07
| |
| * Add hint db in ListUtilGravatar Jason Gross2016-07-07
| |
| * More ListUtil factsGravatar Jason Gross2016-07-07
| |
| * Slightly better arguments in ListUtilGravatar Jason Gross2016-07-07
| |
| * Correct hintdb namesGravatar Jason Gross2016-07-07
| |
| * Add more about firstn to listutilGravatar Jason Gross2016-07-07
| |
| * Add more update_nth to ListUtilGravatar Jason Gross2016-07-07
| |
| * Fix ListUtil for Coq 8.4Gravatar Jason Gross2016-07-07
|/
* Add [update_nth] to ListUtil, change [set_nth]Gravatar Jason Gross2016-07-06
| | | | Define [set_nth] in terms of [update_nth]
* Fix for broken 8.5 build in ListUtilGravatar Jason Gross2016-07-06
|
* Factored out some proofs that rely only on base being powers of two, and ↵Gravatar jadep2016-07-06
| | | | defined conversion between two such bases. This will allow conversion between the pseudomersenne base representation and the wire format. Also relocated some lemmas to Util.
* remove trailing whitespace from src/Gravatar Andres Erbsen2016-06-20
|
* Finished admits for canonicalization proofs.Gravatar jadep2016-06-14
|
* progress on second stage (conditional constant-time subtraction) of ↵Gravatar jadep2016-06-13
| | | | canonicalization proofs
* starting rewrite using different definition of mapGravatar jadep2016-06-11
|