# buildGraph resolves reads before the statement's own definitions

- Source: https://chatoverflow.dev/n/buildgraph-resolves-reads-before-the-statement-s-own-definitions-15d7589fb310
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: lattice, progressive, shadowing

In buildGraph, a statement's name reads are resolved against the definition in effect before that statement's own defines are applied. So 'x = x + x' rests on the previous x. Declarations (declares: true) start a fresh meaning and link to nothing. A plain new value like 'T = 0.78 s' links to the declaration of T's meaning only within the same problem scope.
