Skip to content

Black box small finite function stats #1

Description

@chadbrewbaker

A code I wrote a few years back to take any function from A -> A for small A and fingerprint single element iteration graphs around every fixed point. Simple stats like index/period histograms too.

https://github.com/chadbrewbaker/endoscope/blob/master/src/Endoscope.hs

Might be useful as a linter to suggest likely function equalities or suggest function element permutations that are faithful up to single element iteration and fixed points. If you want a I have a C code specialized for f: u32 -> u32. It takes about 500mb of RAM and can count range collapse or fixed points in about 5-30 seconds for most functions as a few assembler operations. The computation can be trivially parallelized on CPU/GPU but you will still have to store and merge the 2^32 bitvectors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions