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

Study the "wrong" Fractal #38

Open
favonia opened this issue Nov 27, 2023 · 0 comments
Open

Study the "wrong" Fractal #38

favonia opened this issue Nov 27, 2023 · 0 comments

Comments

@favonia
Copy link
Contributor

favonia commented Nov 27, 2023

There was a bug in the code before the major rewrite 147c8d9. It is a valid displacement algebra, though it's different from what's called "Fractal" on paper / in OCaml. The question is---what is it??? @cangiuli @TOTBWF

This was the "wrong" Fractal:

  _ᶠ_ : List  𝒟   List  𝒟   List  𝒟 
  [ x ] ᶠ [ y ] = [ x  y ]
  [ x ] ᶠ (y  ys) = (x  y)  ys
  (x  xs) ᶠ [ y ] = (x  y)  xs
  (x  xs) ᶠ (y  ys) = (x  y)  (xs ys)

This is the correct one:

  _ᶠ_ : List  𝒟   List  𝒟   List  𝒟 
  [ x ] ᶠ [ y ] = [ x  y ]
  [ x ] ᶠ (y  ys) = (x  y)  ys
  (x  xs) ᶠ ys = x  (xs ys)

However, the "wrong" one is a valid displacement algebra. What's this "wrong" one anyway?

@favonia favonia changed the title Study the wrong Fractal Study the "wrong" Fractal Nov 27, 2023
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