---
slug: "Gradient"
name: "Gradient"
type: "Primitives"
layer: "Physics"
ref: "Gradient#ecfc"
sema_id: "sema:Gradient#mh:SHA-256:ecfc2cd2d9eb95778ef04ede8a7e872c33822f174a9e3273fa7bba92b3a30e36"
tags: ["Physics","Primitives"]
updated: 2026-11-11
mindscape: "bootstrap"
index_url: https://mindscape.world/scapes/bootstrap.json
url: https://mindscape.world/bootstrap/Gradient/
related: ["Entropy","Judge","MemeticSeed","Optimize","SurprisalUpdate"]
---

# Gradient

The directional rate of change of a scalar field — substrate for hill-climbing, attention flow, and credit assignment

Layer: Physics · Category: Primitives

## Mechanism

The directional rate of change of a scalar field across a differentiable space. For any sufficiently smooth field f over a differentiable space, the gradient ∇f at a point is the vector whose direction is the one of steepest ascent of f and whose magnitude is the rate of increase in that direction. Substrate property: gradients exist wherever fields exist, whether or not anyone measures them. Specific cases include [Entropy](https://mindscape.world/scapes/bootstrap/Entropy.md) gradients (the direction of maximum disorder increase), attention gradients, credibility gradients, information-density gradients. Higher patterns use gradients for hill-climbing search, attention allocation, credit assignment, and flow routing.

## Invariants

- Existence: every sufficiently smooth field on a differentiable space has a gradient defined at every interior point.
- Direction: ∇f points in the direction of steepest ascent of f.
- Magnitude: |∇f| is the rate of change in the direction of steepest ascent.

## Failure modes

—

## Builds on

- [Entropy](https://mindscape.world/scapes/bootstrap/Entropy.md) (Physics; References)

## Used by

- [Judge](https://mindscape.world/scapes/bootstrap/Judge.md) (Infrastructure; References)
- [MemeticSeed](https://mindscape.world/scapes/bootstrap/MemeticSeed.md) (Society; References)
- [Optimize](https://mindscape.world/scapes/bootstrap/Optimize.md) (Mind; References)
- [SurprisalUpdate](https://mindscape.world/scapes/bootstrap/SurprisalUpdate.md) (Mind; References)

## Identity

- Sema ID: `sema:Gradient#mh:SHA-256:ecfc2cd2d9eb95778ef04ede8a7e872c33822f174a9e3273fa7bba92b3a30e36`
- Ref: `Gradient#ecfc`
- Supersedes:
  - `sema:Gradient#mh:SHA-256:dcf04816f4c8639244be889bb5030889bcd786600046a64a67b3ad59a679bb96`

## Links

- [Pattern page](https://mindscape.world/bootstrap/Gradient/)
- [View in the interactive graph](https://mindscape.world/bootstrap/#Gradient)
- [JSON](https://mindscape.world/scapes/bootstrap/Gradient.json)
- [Index of all patterns](https://mindscape.world/scapes/bootstrap.json)
