Case-Based or Rule-Based: How Do Transformers Do the Math? | Synapse