Generic group model, discrete log algorithms (brute force and BSGS) and lower bound - #83
Open
fharding1 wants to merge 1 commit into
Open
Generic group model, discrete log algorithms (brute force and BSGS) and lower bound#83fharding1 wants to merge 1 commit into
fharding1 wants to merge 1 commit into
Conversation
The generic group model is a nice cryptography target for this project because you can prove some interesting lower bounds without computational assumptions. This formalization follows Maurer's. * Models/GenericGroup.lean - generic model * Algorithms/DiscreteLog.lean - brute-force discrete log algorithm is correct and Theta(p) element-producing group operations (add and neg) * Algorithms/BabyStepGiantStep.lean - baby-step giant-step discrete log algorithm is correct and Theta(sqrt(p)) element-producing group ops * LowerBounds/DiscreteLog.lean - any (generic) discrete log algorithm that is correct on all inputs uses Omega(sqrt(p)) element-producing group ops AI disclosure: prepared with significant AI assistance (mainly Opus 5). I scrutinized the model, algorithm descriptions, top-level theorems, and skimmed the proofs to make sure they were what I expected. There are also some tests in AlgoleanTests/GroupExamples.lean which are meant to give some intuition for how the model works, and show off some examples of using the algorithms.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The generic group model is a nice cryptography target for this project because you can prove some interesting lower bounds without computational assumptions. This formalization follows Maurer's.
Models/GenericGroup.lean- generic model. See some more discussion on the formalization in the doc-string.Algorithms/DiscreteLog.lean- brute-force discrete log algorithm is correct andAlgorithms/BabyStepGiantStep.lean- baby-step giant-step discrete log algorithm is correct andLowerBounds/DiscreteLog.lean- any (generic) discrete log algorithm that is correct on all inputs usesAI disclosure: this PR was prepared with significant AI assistance (mainly Opus 5). I scrutinized the model, algorithm descriptions, top-level theorems, doc-strings, and skimmed the proofs to make sure they were what I expected. There are also some tests in
AlgoleanTests/GroupExamples.leanwhich are meant to give some intuition for how the model works, and show off some examples of using the algorithms.