---
title: "Behavior and proofs"
url: https://afflom.github.io/prism-devrel/case-studies/uorust/behavior/
diataxis: reference
developer-journey: build
collection: case-studies
collection-group: "UORust"
subject: https://github.com/afflom/uorust
commit: afd5cea950a8987da02bbf0cc7cca420b71c4b53
---

# Behavior and proofs

> Every theorem of UORust, and how it is proved. The Lean kernel checks each one.

Subject: [UORust](https://github.com/afflom/uorust) at commit [`afd5cea950a8`](https://github.com/afflom/uorust/tree/afd5cea950a8987da02bbf0cc7cca420b71c4b53), 331 facet records, source digest `f3f743b6834adaff`.

**Figure: Behavior and proofs records by kind.** The 29 records this page teaches, one bar for each kind. Each kind has its own section below.

| | Count |
| --- | --- |
| theorem | 29 |

Behavior is what the Lean kernel checks. Every theorem below is proved when `prismpm verify` runs, by the method named beside it. [Proof and assurance](https://uor.foundation/docs/concepts/proof-and-assurance) explains what a proof covers, and what it does not.

- `decide` evaluates a closed statement; `simplify` and `boolean_reflection` prove statements over every input.

[Behavior and proofs facet](https://afflom.github.io/prism-devrel/facets/behavior/) explains the facet for every Prism model, with the counts of every case study.

## Every record

| Index | Record | Kind | Name |
| --- | --- | --- | --- |
| 41 | `Architecture::edgesJoinDistinctComponents` | theorem | edgesJoinDistinctComponents |
| 62 | `Architecture::viewpointsFrameDeclaredConcerns` | theorem | viewpointsFrameDeclaredConcerns |
| 64 | `Brand::everyContrastMeetsItsCriterion` | theorem | everyContrastMeetsItsCriterion |
| 65 | `Brand::everyContrastNamesItsTokens` | theorem | everyContrastNamesItsTokens |
| 66 | `Brand::everyElementIsSourced` | theorem | everyElementIsSourced |
| 67 | `Brand::everyTokenIsSourced` | theorem | everyTokenIsSourced |
| 68 | `Compliance::everyObligationEvidenced` | theorem | everyObligationEvidenced |
| 157 | `Foundation.Experience.V1.Model::metHasNoShortfall` | theorem | metHasNoShortfall |
| 158 | `Foundation.Experience.V1.Model::noShortfallIsMet` | theorem | noShortfallIsMet |
| 159 | `Foundation.Experience.V1.Model::shortfallFallsAsTheObservationRises` | theorem | shortfallFallsAsTheObservationRises |
| 166 | `Quality::excessFallsWithTheObservation` | theorem | excessFallsWithTheObservation |
| 167 | `Quality::excessRisesOnlyWithTheObservation` | theorem | excessRisesOnlyWithTheObservation |
| 180 | `Quality::metHasNoExcess` | theorem | metHasNoExcess |
| 181 | `Quality::noExcessIsMet` | theorem | noExcessIsMet |
| 182 | `Quality::requestThresholdIsTheTableLimit` | theorem | requestThresholdIsTheTableLimit |
| 195 | `Quality::selfProjectionHasNoExcess` | theorem | selfProjectionHasNoExcess |
| 206 | `Release::releaseVersionIsTheSystemVersion` | theorem | releaseVersionIsTheSystemVersion |
| 208 | `Routes::routeFacetsAreKnown` | theorem | routeFacetsAreKnown |
| 209 | `Routes::routeFactsAreDistinct` | theorem | routeFactsAreDistinct |
| 210 | `Routes::routeIndexesArePositions` | theorem | routeIndexesArePositions |
| 211 | `Routes::routeTableIsTotal` | theorem | routeTableIsTotal |
| 212 | `Routes::routeTableRefusesAmbiguity` | theorem | routeTableRefusesAmbiguity |
| 213 | `Routes::unknownAfterKnownIsRefused` | theorem | unknownAfterKnownIsRefused |
| 214 | `Routes::unknownFactIsRefused` | theorem | unknownFactIsRefused |
| 325 | `System::uorustSystemReleaseReady` | theorem | uorustSystemReleaseReady |
| 327 | `Users::everyGoalHasItsUser` | theorem | everyGoalHasItsUser |
| 328 | `Users::everyMeasureNamesAGoal` | theorem | everyMeasureNamesAGoal |
| 329 | `Users::everyTaskIsAccepted` | theorem | everyTaskIsAccepted |
| 330 | `Users::everyTaskServesAGoal` | theorem | everyTaskServesAGoal |

## theorem (29)

**Architecture: 2 records**

### `edgesJoinDistinctComponents`

`Architecture::edgesJoinDistinctComponents` · theorem · #41 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Architecture.lex.tex)

- statement: `((edgesWithin (edgeRecords) 14) = true)`
- proof: `decide`

Taught by: behavior, slides

### `viewpointsFrameDeclaredConcerns`

`Architecture::viewpointsFrameDeclaredConcerns` · theorem · #62 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Architecture.lex.tex)

- statement: `((viewpointsFrame (viewpointRecords) 5 7) = true)`
- proof: `decide`

Taught by: behavior

**Brand: 4 records**

### `everyContrastMeetsItsCriterion`

`Brand::everyContrastMeetsItsCriterion` · theorem · #64 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Brand.lex.tex)

- statement: `((Foundation.Experience.V1.Model::contrastsMet (contrasts)) = true)`
- proof: `decide`

Taught by: behavior

### `everyContrastNamesItsTokens`

`Brand::everyContrastNamesItsTokens` · theorem · #65 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Brand.lex.tex)

- statement: `((Foundation.Experience.V1.Model::contrastsWithin (contrasts) 30 55) = true)`
- proof: `decide`

Taught by: behavior

### `everyElementIsSourced`

`Brand::everyElementIsSourced` · theorem · #66 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Brand.lex.tex)

- statement: `((Foundation.Experience.V1.Model::elementsSourced (elements) 55) = true)`
- proof: `decide`

Taught by: behavior

### `everyTokenIsSourced`

`Brand::everyTokenIsSourced` · theorem · #67 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Brand.lex.tex)

- statement: `((Foundation.Experience.V1.Model::tokensSourced (tokens) 55) = true)`
- proof: `decide`

Taught by: behavior

**Compliance: 1 record**

### `everyObligationEvidenced`

`Compliance::everyObligationEvidenced` · theorem · #68 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Compliance.lex.tex)

- statement: `((evidenced (obligations)) = true)`
- proof: `decide`

Taught by: behavior

**Foundation.Experience.V1.Model: 3 records**

### `metHasNoShortfall`

`Foundation.Experience.V1.Model::metHasNoShortfall` · theorem · #157 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Foundation/Experience/V1/Model.lex.tex)

- statement: `((required <= observed) -> ((shortfallUnder required observed) = 0))`
- proof: `linear_arithmetic`

Taught by: behavior

### `noShortfallIsMet`

`Foundation.Experience.V1.Model::noShortfallIsMet` · theorem · #158 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Foundation/Experience/V1/Model.lex.tex)

- statement: `(((shortfallUnder required observed) = 0) -> (required <= observed))`
- proof: `linear_arithmetic`

Taught by: behavior

### `shortfallFallsAsTheObservationRises`

`Foundation.Experience.V1.Model::shortfallFallsAsTheObservationRises` · theorem · #159 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Foundation/Experience/V1/Model.lex.tex)

- statement: `((before <= after) -> ((shortfallUnder required after) <= (shortfallUnder required before)))`
- proof: `linear_arithmetic`

Taught by: behavior

**Quality: 6 records**

### `excessFallsWithTheObservation`

`Quality::excessFallsWithTheObservation` · theorem · #166 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Quality.lex.tex)

- statement: `((after <= before) -> ((excessOver threshold after) <= (excessOver threshold before)))`
- proof: `linear_arithmetic`

Taught by: behavior

### `excessRisesOnlyWithTheObservation`

`Quality::excessRisesOnlyWithTheObservation` · theorem · #167 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Quality.lex.tex)

- statement: `(((excessOver threshold before) < (excessOver threshold after)) -> (before < after))`
- proof: `linear_arithmetic`

Taught by: behavior

### `metHasNoExcess`

`Quality::metHasNoExcess` · theorem · #180 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Quality.lex.tex)

- statement: `((observed <= threshold) -> ((excessOver threshold observed) = 0))`
- proof: `linear_arithmetic`

Taught by: behavior

### `noExcessIsMet`

`Quality::noExcessIsMet` · theorem · #181 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Quality.lex.tex)

- statement: `(((excessOver threshold observed) = 0) -> (observed <= threshold))`
- proof: `linear_arithmetic`

Taught by: behavior

### `requestThresholdIsTheTableLimit`

`Quality::requestThresholdIsTheTableLimit` · theorem · #182 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Quality.lex.tex)

- statement: `((project (measureRouteRequestBytes) threshold) = (Routes::requestLimit))`
- proof: `decide`

Taught by: behavior

### `selfProjectionHasNoExcess`

`Quality::selfProjectionHasNoExcess` · theorem · #195 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Quality.lex.tex)

- statement: `((excessOver (project (measureSelfProjectionMilliseconds) threshold) (selfProjectionObservedMilliseconds)) = 0)`
- proof: `decide`

Taught by: behavior

**Release: 1 record**

### `releaseVersionIsTheSystemVersion`

`Release::releaseVersionIsTheSystemVersion` · theorem · #206 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Release.lex.tex)

- statement: `((prim equal (releaseVersion) (project (project (System::systemModel) product) version) : Bool) = true)`
- proof: `decide`

Taught by: behavior

**Routes: 7 records**

### `routeFacetsAreKnown`

`Routes::routeFacetsAreKnown` · theorem · #208 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Routes.lex.tex)

- statement: `((facetsKnown (routes)) = true)`
- proof: `decide`

Taught by: behavior

### `routeFactsAreDistinct`

`Routes::routeFactsAreDistinct` · theorem · #209 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Routes.lex.tex)

- statement: `((firstMatchIsSelf (routes)) = true)`
- proof: `decide`

Taught by: behavior

### `routeIndexesArePositions`

`Routes::routeIndexesArePositions` · theorem · #210 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Routes.lex.tex)

- statement: `((indexedFrom 0 (routes)) = true)`
- proof: `decide`

Taught by: behavior

### `routeTableIsTotal`

`Routes::routeTableIsTotal` · theorem · #211 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Routes.lex.tex)

- statement: `((everyFactRoutesHome (routes)) = true)`
- proof: `decide`

Taught by: behavior

### `routeTableRefusesAmbiguity`

`Routes::routeTableRefusesAmbiguity` · theorem · #212 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Routes.lex.tex)

- statement: `((everyPairDecided (routes) (routes)) = true)`
- proof: `decide`

Taught by: behavior

### `unknownAfterKnownIsRefused`

`Routes::unknownAfterKnownIsRefused` · theorem · #213 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Routes.lex.tex)

- statement: `((isUnknown (classify (cons "pub-fn" (cons "macro-rules" (nil String)))) "macro-rules") = true)`
- proof: `decide`

Taught by: behavior

### `unknownFactIsRefused`

`Routes::unknownFactIsRefused` · theorem · #214 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Routes.lex.tex)

- statement: `((isUnknown (classify (cons "struct" (nil String))) "struct") = true)`
- proof: `decide`

Taught by: behavior

**System: 1 record**

### `uorustSystemReleaseReady`

`System::uorustSystemReleaseReady` · theorem · #325 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/System.lex.tex)

- statement: `((Production.BrowserSystem::validateManifest (systemModel) (systemManifest)) = true)`
- proof: `decide`

Taught by: behavior

**Users: 4 records**

### `everyGoalHasItsUser`

`Users::everyGoalHasItsUser` · theorem · #327 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Users.lex.tex)

- statement: `((Foundation.Experience.V1.Model::goalsOfGroups (goals) 5) = true)`
- proof: `decide`

Taught by: behavior

### `everyMeasureNamesAGoal`

`Users::everyMeasureNamesAGoal` · theorem · #328 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Users.lex.tex)

- statement: `((Foundation.Experience.V1.Model::measuresOfGoals (measures) 5) = true)`
- proof: `decide`

Taught by: behavior

### `everyTaskIsAccepted`

`Users::everyTaskIsAccepted` · theorem · #329 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Users.lex.tex)

- statement: `((Foundation.Experience.V1.Model::tasksAccepted (tasks)) = true)`
- proof: `decide`

Taught by: behavior

### `everyTaskServesAGoal`

`Users::everyTaskServesAGoal` · theorem · #330 · [source](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/app/src/Users.lex.tex)

- statement: `((Foundation.Experience.V1.Model::tasksOfGoals (tasks) 5) = true)`
- proof: `decide`

Taught by: behavior

