Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.01 KB

File metadata and controls

35 lines (24 loc) · 1.01 KB

astar pathfinding

Language: Python · Sphere: programming · Category: Reasoning

What it does

A* Pathfinding Algorithm Implementation

This module implements the A* pathfinding algorithm for grid-based navigation. It includes classes for nodes, grid representation, and the A* algorithm itself.

Guarantee

When it runs, astar pathfinding guarantees len(p) - 1 == 18; len(a_path) - 1 == truth; agreements == 30 (proven by run).

Checkable constraints:

  • path is not None
  • _valid_path(path, maze, (0, 0), (9, 9))
  • len(path) - 1 == oracle
  • len(p) - 1 == 18
  • AStar(g2).find_path((0, 0), (9, 9)) is None
  • AStar(g2).find_path((0, 0), (9, 8)) is None
  • a_path is None
  • a_path is not None

Verification evidence

  • Green-run: ✓ passes (re-run under the extractor's gate)
  • Constraint strength: recovery (truth-pinned)
  • Independent oracle:consensus — xlang (validator v1.9)
  • Peer review: unreviewed

△ AURA Pattern Library — © Reality Optimizer