Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Establish the connection with GF(2) #12

Open
breandan opened this issue Jun 23, 2020 · 1 comment
Open

Establish the connection with GF(2) #12

breandan opened this issue Jun 23, 2020 · 1 comment
Assignees

Comments

@breandan
Copy link
Owner

breandan commented Jun 23, 2020

Kotlin∇ tries to build a mathematically sound type system capturing the relationship between functions and fields. This design should be described more formally, but in short there are two approaches:

  1. The direct approach is to define Fun<X>: Field<X> where X is a member of some algebra over the reals, equipped with the usual arithmetic operators. When applying an operator, it is evaluated eagerly and you get back X immediately. This is a shallow eDSL, evaluated eagerly.
  2. Another way is to treat the function as a member of a field whose elements are themselves functions, e.g. Fun<X>: Field<Fun<X>>. Instead of returning X, operators return Fun<X> by default, which can be evaluated by using invoke(...): X (X and Fun<X> are both fields).

The second representation comes from finite field theory, which has important implications for expression parsing and language design. It would be useful to understand this connection more deeply.

References

@breandan breandan self-assigned this Apr 9, 2022
@breandan
Copy link
Owner Author

breandan commented May 9, 2022

An investigation pursuing the connection between GF(2) and automatic differentiation has been undertaken. Preliminary findings indicate that finite fields possess the remarkable ability to both recognize and parse context-free languages, with suspected extensions to LCFRS [Cohen et al. (2016)] and context-sensitive grammars [Tanaka and Fu (1978)]. These findings are noteworthy as they unlock a nearly-optimal compilation pathway from graph computation to Boolean circuits. To our surprise, rootfinding in GF(2) has adjacent applications to robust-parsing, error-correcting codes, type inference and sketch-based program synthesis. Further evidence is needed to support the postulated connection [Considine, 2019] between differential and algebraic geometry unifying derivatives of continuous functions [Leibniz, 1675], derivatives of regular languages [Brzozowski (1964), Antimirov (1996)] and derivatives of algebraic data types [McBride (2011)], however our findings indicate that automatic differentiation has a meaningful interpretation in discrete-valued spaces (contrary to verbal objections by illustrious professors who shall remain unnamed) and lends evidence to support the claim that binary matrix multiplication is a universal programming language conjectured by Considine (2020).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant