Left to Solve
Problems / MathOverflow (not formalized)

Quaternions: ellipse effect

Open, not yet stated in LeanMathOverflow (not formalized)Number Theorydifficulty55/100

Statement

I would be interested in an explanation of the "six ellipse effect" produced by the pseudocode below (I also wonder how close are these to being actual ellipses). Note the code is somewhat similar to the OEIS definition of A108618.

Update The original code, below, had + and - switched, i.e. was not representative of the data (also fixed parenthesis).

[code]

Plotting result(n) vs result(n+1) gives the following (zoomable) plot: Plotly: Six Ellipses (the data for the plot is here). A youtube slow-mo of this starts at 1:12. Note there are many small variations of this code which produce very different results- for example, where it appears ellipses are "filling up" or graphs like this which appear to be more or less symmetric about the x-axis.

[code]

Update Removing the terms with the floor function produces apparent "touching" ellipses. Data is here. The ellipses can also be made to overlap. Side note: in my actual program X and Y look like this

[code]

since I'm working with 4th order floretions- a quaternion can be seen as a 1st order floretion.

Posed by Dement · nt.number-theory, quaternions

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-224376.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-224376.lean

import Mathlib

/-!
# Quaternions: ellipse effect

Source: https://mathoverflow.net/questions/224376
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_224376

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_224376