Lecture 09 · Mathematics

An alternating background as an error detector

Video in production

This lecture is still face down. Its script is written; filming and animation are under way.

Meanwhile, read the outline

What you will learn

Interpret alternating orientations as a two-pattern code, transport defects through legal moves, and state the limits of detection and recovery.

Before this lecture

In this lecture

An outline of the lecture, scene by scene, with the statements that appear on screen. It follows the draft script, so details may change in production.

  1. Reframe a magic selection as a disturbance in structure

    • Two valid backgrounds: DU… and UD…
    • One deliberate flip = one defect
    • Unique one-defect reveal: even N≥4
  2. Define binary disagreement and Hamming distance concretely

    • Reference: 010101
    • Actual: 011101
    • Disagreement: 001000
    • Distance = number of mismatches
  3. Prove defect transport under cuts and turnovers algebra-free

    • Same action in both rows preserves disagreement
    • Defect count survives
    • Decoder also needs a valid background
  4. Normalize the background by a fixed mask

    • Mask: 010101
    • Flip where mask=1
    • 010101⊕010101=000000
    • 101010⊕010101=111111
  5. Derive multiple-defect capacity and ambiguity boundary

    • 6 cards: 1 defect→5: 1; 2 defects→4: 2
    • 3 defects→3: 3 ambiguity
    • Unique majority if defects<N/2
  6. Distinguish reversals from selected identities and cancellation

    • Same identity twice cancels
    • Defect membership = odd number of extra flips
    • A, C, A, E, C →only E
  7. Explain detection versus recovery and model limits

    • Detection: does it violate the model?
    • Recovery: which intended state and change?
    • Error bound is part of the guarantee
  8. Specify error-diagnosis companion with worked set round

    • Decode only under the stated error bound
    • Track identities, not fixed slots
    • A tie can be the correct diagnosis

Companion interactive

Planned

Recover bounded orientation defects or correctly identify an ambiguous observation.

The interactive for this lecture is being built and will appear here.

Notes

Written notes for this lecture will appear here.

Sources

How these sources were used
  • Colm Mulcahy, Mathematical Card Magic: Alternating background preservation.
  • Persi Diaconis and Ron Graham, Magical Mathematics: Orientation structure underlying Hummer effects; coding interpretation is original teaching development.