GithubHelp home page GithubHelp logo

hoodmane / steenrod_modules Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 12.54 MB

Python steenrod algebra implementation

Python 28.34% Shell 0.03% CMake 1.16% C 42.99% C++ 3.06% JavaScript 21.20% HTML 3.06% CSS 0.16%
mathematics homotopy-theory algebraic-topology

steenrod_modules's Introduction

Steenrod Modules

Requires Python 3 (tested in python 3.6.7). To use it you should download the repository and then run ./steenrod_modules in the root directory.

You can load a module from a file by saying M = SteenrodModule.from_Bruner_file(file_path), for instance file_path could be "Bruner-modules/CP-1". You can write a module to a file with M.to_Bruner_file(file_path).

The tensor product of modules M and N is M * N, the dual of a module M is ~M, and the truncation is M[min:max]. You can create a new empty module with M = SteenrodModule(p = a_prime) and then add basis vectors by saying x = M.add_basis_element("name", degree) and add relations with M.add_Sq_action(Sq_degree, basis_element, output_vector) You can check the relations define a correct action with M.validate().

So for instance:

A = AdemAlgebra(p=2)
M = SteenrodModule(p=2)
x0 = M.add_basis_element("x0", 0)
x1 = M.add_basis_element("x1", 1)
y1 = M.add_basis_element("y1", 1)
M.add_Sq_action(1, x0, x1 + y1)
M.validate()

Now A.Sq(1) * x0 will return x1 + y1.

You could build the same module by saying:

M = SteenrodModule(p=2)
x0 = M.add_basis_element("x0", 0)
x1 = M.add_basis_element("x1", 1)
M.add_Sq_action(1, x0, x1)
N = (M*M)[0:1]
x0x0 = N.get_basis_element("x0*x0")

though now the elements will be named x0*x0, x0*x1, and x1*x0. Now A.Sq(1) * x0x0 will return x0*x1 + x1*x0.

M.get_failed_relations() will return a list of the Adem relations that are violated in M.

steenrod_modules's People

Contributors

dalcde avatar

Watchers

 avatar  avatar  avatar

Forkers

dalcde

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.