GitHunt
KI

KittyCAD/llm-spatial-reasoning-tests

A set of prompts for testing LLMs spatial reasoning. The LLMs are wordcels and we need a shape rotator.

llm-spatial-reasoning-tests

A set of prompts for testing LLMs spatial reasoning. The LLMs are wordcels and we need a shape rotator.

TLDR; the LLMs are great at math in N-dimensions (we tested 1, 2, 3, 4, & 5). BUT when it stops being raw math and starts getting physical and visual, they start to break down. DeepSeek excels where others fail.

Models tested

  • o3 πŸ¦–
  • Claude Opus 4 🎢
  • Gemini 2.5 Pro Preview β™ŠοΈ
  • DeepSeek R1 πŸ‹
  • Grok 3 πŸ€–

Note: results marked as not evaluated yet means we have not fully read thru the answers yet to find the winners, make a PR with your updates and reasoning if you did!

Prompts tried

# Skill probed Example prompt Why it’s tricky Result file Who was right
1 Mental rotation Imagine a block letter β€˜F’. Rotate it 90 Β° clockwise in the plane, then spin it 180 Β° about the vertical axis (like turning a page). Draw the result in ASCII. Two independent rotations plus left–right reversal. prompt 01 πŸ‹
2 3-D coordinate transforms A point is at (2, 1, βˆ’3) in camera space. The camera is at (0, 0, 0) looking down βˆ’Z with a 90 Β° FOV. What pixel row/column (in a 1920 Γ— 1080 sensor) does the point project to? Chains perspective math and pixel indexing. prompt 02 not evaluated yet
3 Cross-sections Slice a cube with a plane that passes through the mid-points of three mutually adjacent edges. What shape is the cross-section? Planes and cutting. prompt 03 πŸ¦–β™ŠοΈπŸ‹πŸ€–
4 Folding / paper-punch Fold a square sheet along its vertical center line. Punch a hole 1 cm from the top-left corner of the folded sheet. Unfold itβ€”where are the holes relative to the original corners? Combines mirroring with distance preservation. prompt 04 πŸ‹ (the closest answer)
5 Occlusion & visibility Camera at (0,0,0) looks toward +Z. Wall #1 is 4 m Γ— 4 m, 10 m away. Wall #2 is 2 m Γ— 2 m, 5 m away, centered in front of Wall #1. What percent of Wall #1’s area is visible? Needs solid-angle reasoning and area ratios. prompt 05 πŸ¦–β™ŠοΈπŸ‹πŸ€–
6 Path-planning / collision A circular robot with radius 0.4 m must move from (0,0) to (6,0). A 1 m-wide corridor has centerline (0,0)β†’(3,2)β†’(6,0). Can the robot stay inside the corridor the whole way? Must buffer corridor by robot radius and check clearance. prompt 06 πŸ¦–β™ŠοΈπŸ‹πŸ€–
7 Reference-frame concatenation Gripper frame G is rotated 30 Β° about X relative to robot frame R. Tool frame T is rotated 45 Β° about Y relative to G. Give the 3 Γ— 3 rotation matrix from T to R. Classic robotics transform stackβ€”easy to typo. prompt 07 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
8 Net identification Here’s an unfolded net of six squares in a T-shape. When folded, which squares share an edge with the center square? Requires mentally tucking flaps. prompt 08 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹ (diff interpretations)
9 Symmetry & chirality Is the right-hand rule still valid if you swap the Y and Z axes but leave X alone? Why / why not? Tests awareness of handedness parity. prompt 09 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
10 Mixed-unit Pythagorean Object A is 15 cm in X and 8 in in Y. Object B is 120 mm in X and 0.1 m in Y. Which is closer? Unit juggling + Pythagoras. prompt 10 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
11 Topological reasoning A torus and a coffee mug are homeomorphic. Describe a continuous deformation turning the mug into the torus without tearing or gluing. Separates parroting from genuine genus-1 insight. prompt 11 not evaluated yet
12 Mirror-image deduction You stand at (0,0,0) facing +Y. A mirror is the plane X = 3. Where will your reflection appear? Needs plane-reflection formula. prompt 12 not evaluated yet
13 Signed translation (1-D) A point starts at +7 cm, slides βˆ’18 cm. Where does it end up, and is it left or right of the origin? Positive/negative offsets & verbal direction. prompt 13 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
14 Interval overlap & length Segment A spans [βˆ’3 m, +9 m]; segment B spans [+4 m, +15 m]. How many meters (and what percent of A) do they overlap? Requires max-min overlap logic. prompt 14 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
15 1-D mirror reflection Reflect x = βˆ’12 across x = +5. Where is the image? Uses formula xβ€² = 2c βˆ’ x. prompt 15 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
16 Relative motion / chase Car X at 0 km moves +90 km/h. Car Y at +300 km moves βˆ’60 km/h. When and where do they meet? One-dimensional pursuit with signed velocities. prompt 16 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
17 Folding a strip Fold a 20 cm strip at 14 cm so ends align. After folding, how far apart are the original 0 cm and 20 cm marks? Distance halves only where foldedβ€”easy to miscount. prompt 17 not evaluated yet
18 Unit conversion (1-D) Point A is 250 mm from origin. Point B is 1 ft right of A. How far is B from origin in cm? mm β†’ cm β†’ ft conversions chain. prompt 18 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
19 Ordering after shifts Points P = βˆ’8, Q = 4, R = 10; shift each +13 and list them leftβ†’right with new coordinates. Must re-sort after translation. prompt 19 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
20 1-D collision spacing Robot interval 0.6 m wide centered at +2 m; obstacle interval 0.4 m centered at +3 m. Do they collide? Expand to half-widths & check interval overlap. prompt 20 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
21 Boolean interval logic Is (βˆ’2 < x ≀ 5) and (x > 3) equivalent to 3 < x ≀ 5? Explain. Symbolic simplification on a line. prompt 21 not evaluated yet
22 Discrete stepping & parity Start at βˆ’7, step +5 until past +20. List every landing spot and mark even/odd. Loop logic plus parityβ€”all 1-D. prompt 22 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
23 Composite perimeter (2-D) Two 4 cm Γ— 4 cm squares share one corner; interiors don't overlap. Draw the outline and state the total perimeter. Must visualize L-shape and avoid double-counting edges. prompt 23 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹
24 In-circle radius (2-D) Right-triangle legs 9 m and 12 m: find the inscribed circle’s radius. Uses r = (a + b βˆ’ c)/2 or area / semiperimeter. prompt 24 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
25 Polygon path & displacement Robot walks 10 m E, 10 m N, 10 m W, 10 m S. What is net displacement and what closed shape is traced? Zero displacement; traces a squareβ€”checks closure. prompt 25 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
26 Translation & overlap (2-D) Rectangle R (βˆ’3,βˆ’1)β†’(7,6) shifted (βˆ’4,βˆ’2) β†’ S. Give S corners and the overlap area of R and S. Combine vector shift with rectangle intersection math. prompt 26 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
27 Circumscribed circle (2-D) Regular hexagon side 5 cm is circumscribed by a circle. Find the circle’s radius and fraction of its area outside the hexagon. Needs r = s and area ratio Ο€rΒ² to 6Β·(√3/4)sΒ². prompt 27 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
28 Fold-and-punch (2-D) Square 16 cm folded on diagonal; punch 2 cm from fold & 5 cm from edge. After unfolding, mark all hole locations. Mirror across the diagonalβ€”yields two symmetric holes. prompt 28 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
29 Rotation + reflection (2-D) Rotate (2, 5) 120Β° CCW about origin, then reflect across x-axis. Where is the point now? Chains rotation matrix with sign flip. prompt 29 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
30 Offset frame area (2-D) 3 cm-wide path inside a 20 Γ— 12 cm rectangle (like an inner frame). Compute path area and remaining central area. Outer minus inner rectangle; adjust both dimensions. prompt 30 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
31 Circle-circle intersection Two discs radius 4 cm, centers 6 cm apart. Find the area of their overlap (lens) to nearest 0.1 cmΒ². Uses segment-area formula with arccos; numeric heavy. prompt 31 πŸ¦–β™ŠοΈπŸ‹πŸ€–
32 Centroid & median (2-D) Triangle (0,0), (8,0), (3,6): compute centroid and equation of median from (3,6). Combines centroid averaging and point-slope line. prompt 32 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
33 5-D Euclidean norm I have a 5-dimensional point (2, βˆ’5, 10, 3, 2). What is the magnitude of this point? Extends √(xΒ²+yΒ²+zΒ²+iΒ²+jΒ²); easy to drop one term. prompt 33 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
34 4-D single-axis rotation A 4-D point (2, βˆ’5, 10, 3). Rotate it 90 Β° about the z-axis. Must treat rotation in x-y plane while z & i components behave correctly. prompt 34 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
35 4-D Euclidean distance In ℝ⁴ the points A (1, βˆ’2, 4, 0) and B (βˆ’3, 6, 1, 5). Find the exact distance. Adds a fourth squared-difference term. prompt 35 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
36 Tesseract cross-section 4-cube edge 2 sliced by x + y + z + w = 1. Describe the 3-D polyhedron & its volume. Visualising a hyper-plane cut; volume of 3-D slice. prompt 36 not evaluated yet
37 4β†’3 projection & scaling Project (3, βˆ’1, 2, 5) onto w = 1, then scale by Β½. Give final coords. Orthographic drop of w, then uniform scale. prompt 37 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
38 Compound 4-D rotation Give the 4Γ—4 matrix for 15Β° in x-y then 30Β° in z-w (RH rule each). Two independent plane rotations; sign/order pitfalls. prompt 38 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
39 Hyper-volume of 4-sphere Hyper-volume of radius-7 4-sphere, in terms of Ο€. Uses Vβ‚„ = Β½ π² r⁴; many forget the factor. prompt 39 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
40 4-D constant-velocity motion Start (0,0,0,0), v = (1, βˆ’2, 3, 4) u/s. Where after √3 s? Vector-time product with radicals. prompt 40 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
41 Minkowski interval classification Events P(5,3,4,0) & Q(10,9,7,2) in signature (βˆ’+++). Compute interval & classify. Correct sign convention; decide time/space/light-like. prompt 41 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
42 Oriented 4-volume / determinant Vectors a=(1,0,0,1), b=(0,1,0,1), c=(0,0,1,1), d=(1,1,1,1): find oriented 4-volume & handedness. 4-D determinant; sign gives orientation. prompt 42 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
43 2-D rotation + reflection L-tetromino at (0,0)(1,0)(2,0)(2,1); rotate 270Β° CCW about origin, then reflect across y = x. List new coords ascending by x. Combines large rotation with diagonal mirrorβ€”easy to drop a block. prompt 43 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
44 Cone cross-section scaling Right cone (h 8 cm, r 3 cm) cut 3 cm below apex, plane βˆ₯ base β†’ What shape & area? Needs similar-triangles scaling and area formula. prompt 44 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
45 Out-of-plane flip (ASCII) Block letter β€œR”, flip 180Β° about horizontal in-plane axis. ASCII-draw result. Forces mental 3-D flip; many confuse with vertical mirror. prompt 45 πŸ‹
46 Arbitrary-axis 3-D rotation Rotate P = (1,2,βˆ’4) 120Β° about ⟨1,1,1⟩ axis. Give exact coords. Requires Rodrigues/homogeneous rotation math. prompt 46 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
47 Cube slice β†’ polygon vertices Unit cube, plane through (0,Β½,Β½), (Β½,0,Β½), (Β½,Β½,0). List resulting polygon’s vertices cyclically. Identify 3-D intersection edges; yields regular hexagon cross-section. prompt 47 not evaluated yet
48 4 β†’ 3 projection + 2-D rotation Project (7,βˆ’3,5,2) to w = 0; rotate 90Β° about z. Give final 3-D point. Mixes hyper-projection with classic xy-plane spin. prompt 48 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
49 Rotational symmetry reasoning Regular dodecagon, keep every 2nd vertex. What polygon results? Explain. Needs n/2 rule β†’ regular hexagon proof. prompt 49 πŸ¦–πŸŽΆβ™ŠοΈπŸ‹πŸ€–
50 Path buffer / Minkowski sum Robot radius 0.5 m along polyline (0,0)β†’(2,1)β†’(4,1). Is 1 m-wide corridor enough? Buffer polyline by radius and check narrowest segment. prompt 50 πŸ¦–β™ŠοΈπŸ‹πŸ€–
51 3-D rotation of extrusion Equilateral Ξ” side 6 cm extruded 10 cm (+z). Rotate prism 90Β° about y. New coords of (0,0,0). Apply y-axis rotation to 3-D vertex; mixes extrusion + rotation. prompt 51 πŸ‹
52 Spatial algorithm design Two random L-tetrominoes on 4Γ—4 grids. Outline algorithm (no reflection) to test rotational equivalence. Meta-spatial reasoning, not brute enumeration. prompt 52 not evaluated yet
53 Mirror-vs-rotation (ASCII) Block letter β€œG”: rotate 90Β° CW, then mirror across vertical axis. Draw final glyph. Rotation-plus-mirror decoy; many swap the order. prompt 53 πŸ¦–β™ŠοΈπŸ‹
54 Out-of-plane flip (ASCII) Cardboard β€œE” flipped 180Β° about horizontal axis. ASCII-draw result. Requires 3-D mental flip, not 2-D mirror. prompt 54 πŸ¦–β™ŠοΈπŸ€–
55 Shear + rotation outline Shear x' = x + 0.5y on 5Γ—3 box, then rotate 90Β° CCW; ASCII outline. Compound linear transform (shear then rotate). prompt 55 not evaluated yet
56 Diagonal mirror with punch 6Γ—6 ASCII square with hole (1,4); reflect across y = x; draw. Forces mapping of interior point through diagonal mirror. prompt 56 πŸŽΆβ™ŠοΈπŸ‹πŸ€–, some 0 indexed and some didn't sigh
57 3-D L-tetromino layers Extrude L-tetromino 3 layers, rotate 90Β° about y; show z = 0,1,2 ASCII layers. Mixes extrusion with axis rotation, then layer-by-layer depiction. prompt 57 not evaluated yet
58 Perspective trapezoid sketch Tilt 4Γ—2 rectangle 30Β° toward viewer (x-axis); draw 2-line ASCII trapezoid. Simplified 3-D β†’ 2-D projection; requires foreshortening. prompt 58 not evaluated yet
59 T-shape rotate + translate Rotate T-shape 180Β° in-plane, move +4 in x; render on β‰₯8-wide grid. Combines rotation with translation & grid re-layout. prompt 59 not evaluated yet
60 Spiral unwind (ASCII) Four-symbol spiral rotated 90Β° CCW about center; output new 2Γ—2 grid. Tiny but tests correct center-of-rotation handling. prompt 60 not evaluated yet

Methodology behind the prompts

  • 1-12 β†’ 2-D/3-D space
  • 13–22 β†’ 1-D & 2-D fundamentals
  • 23–32 β†’ Advanced 2-D set
  • 33–42 β†’ 4-D/5-D hyper-spatial
  • 43–52 β†’ β€œShape-rotator” mental-rotation specials
  • 53-60 β†’ β€œShape-rotator” ASCII specials

Languages

Rust87.6%Nix12.4%

Contributors

Created May 30, 2025
Updated March 16, 2026
KittyCAD/llm-spatial-reasoning-tests | GitHunt