The half-open latch window captures the left endpoint and blocks the right endpoint. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.

highlighted = computed this step

Arrival at the left endpoint is inside the latch window

The latch window is [4, 7) seconds. Arrival at 4 seconds makes the gate capture and output 1.

44<7,Q=14\le 4<7,\quad Q=1
Latch window scanThe half-open endpoint convention is checked.window [4, 7) sarrival 4 sD 1Q 1captured

Interior arrival also copies the input

The latch window is [4, 7) seconds. Arrival at 6 seconds makes the gate capture and output 1.

46<7,Q=14\le 6<7,\quad Q=1
Latch window scanThe half-open endpoint convention is checked.window [4, 7) sarrival 6 sD 1Q 1captured

Arrival at the right endpoint is blocked

The latch window is [4, 7) seconds. Arrival at 7 seconds makes the gate block and output 0.

47,77,Q=04\le 7,\quad 7\not<7,\quad Q=0
Latch window scanThe half-open endpoint convention is checked.window [4, 7) sarrival 7 sD 1Q 0blocked