PrismDevRelOpen the app
Case studies: Behavior and proofs

Overview

Case studies

UORust

How UORust was modeledArchitecture walkthroughDesign views in OPM and UMLFeatures and journeysSecurity and threat modelQuality model (ISO/IEC 25010)Behavior and proofsSystem and releaseExtension facetsCommand referenceSlides and video scriptRecord explorerllms.txt and Markdown twins

Prism-DevRel

How Prism-DevRel was modeledArchitecture walkthroughDesign views in OPM and UMLFeatures and journeysSecurity and threat modelQuality model (ISO/IEC 25010)Behavior and proofsExtension facetsSlides and video scriptRecord explorerllms.txt and Markdown twins

Rule 30

How Rule 30 was modeledArchitecture walkthroughSecurity and threat modelQuality model (ISO/IEC 25010)Behavior and proofsSlides and video scriptRecord explorerllms.txt and Markdown twins

Verdant Resonance

How Verdant Resonance was modeledBehavior and proofsExtension facetsSlides and video scriptRecord explorerllms.txt and Markdown twins

Foundry

How Foundry was modeledBehavior and proofsSlides and video scriptRecord explorerllms.txt and Markdown twins

// case study · UORust

Behavior and proofs

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

Subject: UORust at commit afd5cea950a8, 331 facet records, source digest f3f743b6834adaff.

Behavior and proofs records by kindtheorem: 29 recordstheorem29
Behavior and proofs records by kind. The 29 records this page teaches, one bar for each kind. Each kind has its own section below.
The data in this figure
records
theorem29

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 explains what a proof covers, and what it does not.

Behavior and proofs facet explains the facet for every Prism model, with the counts of every case study.

Every record

Every record 29 rows
IndexRecordKindName
41Architecture::edgesJoinDistinctComponentstheoremedgesJoinDistinctComponents
62Architecture::viewpointsFrameDeclaredConcernstheoremviewpointsFrameDeclaredConcerns
64Brand::everyContrastMeetsItsCriteriontheoremeveryContrastMeetsItsCriterion
65Brand::everyContrastNamesItsTokenstheoremeveryContrastNamesItsTokens
66Brand::everyElementIsSourcedtheoremeveryElementIsSourced
67Brand::everyTokenIsSourcedtheoremeveryTokenIsSourced
68Compliance::everyObligationEvidencedtheoremeveryObligationEvidenced
157Foundation.Experience.V1.Model::metHasNoShortfalltheoremmetHasNoShortfall
158Foundation.Experience.V1.Model::noShortfallIsMettheoremnoShortfallIsMet
159Foundation.Experience.V1.Model::shortfallFallsAsTheObservationRisestheoremshortfallFallsAsTheObservationRises
166Quality::excessFallsWithTheObservationtheoremexcessFallsWithTheObservation
167Quality::excessRisesOnlyWithTheObservationtheoremexcessRisesOnlyWithTheObservation
180Quality::metHasNoExcesstheoremmetHasNoExcess
181Quality::noExcessIsMettheoremnoExcessIsMet
182Quality::requestThresholdIsTheTableLimittheoremrequestThresholdIsTheTableLimit
195Quality::selfProjectionHasNoExcesstheoremselfProjectionHasNoExcess
206Release::releaseVersionIsTheSystemVersiontheoremreleaseVersionIsTheSystemVersion
208Routes::routeFacetsAreKnowntheoremrouteFacetsAreKnown
209Routes::routeFactsAreDistincttheoremrouteFactsAreDistinct
210Routes::routeIndexesArePositionstheoremrouteIndexesArePositions
211Routes::routeTableIsTotaltheoremrouteTableIsTotal
212Routes::routeTableRefusesAmbiguitytheoremrouteTableRefusesAmbiguity
213Routes::unknownAfterKnownIsRefusedtheoremunknownAfterKnownIsRefused
214Routes::unknownFactIsRefusedtheoremunknownFactIsRefused
325System::uorustSystemReleaseReadytheoremuorustSystemReleaseReady
327Users::everyGoalHasItsUsertheoremeveryGoalHasItsUser
328Users::everyMeasureNamesAGoaltheoremeveryMeasureNamesAGoal
329Users::everyTaskIsAcceptedtheoremeveryTaskIsAccepted
330Users::everyTaskServesAGoaltheoremeveryTaskServesAGoal

theorem (29)

Architecture: 2 records

viewpointsFrameDeclaredConcerns

Architecture::viewpointsFrameDeclaredConcerns theorem #62 source

statement
((viewpointsFrame (viewpointRecords) 5 7) = true)
proof
decide

Taught by Behavior and proofs

Brand: 4 records

everyContrastMeetsItsCriterion

Brand::everyContrastMeetsItsCriterion theorem #64 source

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

Taught by Behavior and proofs

everyContrastNamesItsTokens

Brand::everyContrastNamesItsTokens theorem #65 source

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

Taught by Behavior and proofs

everyElementIsSourced

Brand::everyElementIsSourced theorem #66 source

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

Taught by Behavior and proofs

everyTokenIsSourced

Brand::everyTokenIsSourced theorem #67 source

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

Taught by Behavior and proofs

Compliance: 1 record

everyObligationEvidenced

Compliance::everyObligationEvidenced theorem #68 source

statement
((evidenced (obligations)) = true)
proof
decide

Taught by Behavior and proofs

Foundation.Experience.V1.Model: 3 records

metHasNoShortfall

Foundation.Experience.V1.Model::metHasNoShortfall theorem #157 source

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

Taught by Behavior and proofs

noShortfallIsMet

Foundation.Experience.V1.Model::noShortfallIsMet theorem #158 source

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

Taught by Behavior and proofs

shortfallFallsAsTheObservationRises

Foundation.Experience.V1.Model::shortfallFallsAsTheObservationRises theorem #159 source

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

Taught by Behavior and proofs

Quality: 6 records

excessFallsWithTheObservation

Quality::excessFallsWithTheObservation theorem #166 source

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

Taught by Behavior and proofs

excessRisesOnlyWithTheObservation

Quality::excessRisesOnlyWithTheObservation theorem #167 source

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

Taught by Behavior and proofs

metHasNoExcess

Quality::metHasNoExcess theorem #180 source

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

Taught by Behavior and proofs

noExcessIsMet

Quality::noExcessIsMet theorem #181 source

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

Taught by Behavior and proofs

requestThresholdIsTheTableLimit

Quality::requestThresholdIsTheTableLimit theorem #182 source

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

Taught by Behavior and proofs

selfProjectionHasNoExcess

Quality::selfProjectionHasNoExcess theorem #195 source

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

Taught by Behavior and proofs

Release: 1 record

releaseVersionIsTheSystemVersion

Release::releaseVersionIsTheSystemVersion theorem #206 source

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

Taught by Behavior and proofs

Routes: 7 records

routeFacetsAreKnown

Routes::routeFacetsAreKnown theorem #208 source

statement
((facetsKnown (routes)) = true)
proof
decide

Taught by Behavior and proofs

routeFactsAreDistinct

Routes::routeFactsAreDistinct theorem #209 source

statement
((firstMatchIsSelf (routes)) = true)
proof
decide

Taught by Behavior and proofs

routeIndexesArePositions

Routes::routeIndexesArePositions theorem #210 source

statement
((indexedFrom 0 (routes)) = true)
proof
decide

Taught by Behavior and proofs

routeTableIsTotal

Routes::routeTableIsTotal theorem #211 source

statement
((everyFactRoutesHome (routes)) = true)
proof
decide

Taught by Behavior and proofs

routeTableRefusesAmbiguity

Routes::routeTableRefusesAmbiguity theorem #212 source

statement
((everyPairDecided (routes) (routes)) = true)
proof
decide

Taught by Behavior and proofs

unknownAfterKnownIsRefused

Routes::unknownAfterKnownIsRefused theorem #213 source

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

Taught by Behavior and proofs

unknownFactIsRefused

Routes::unknownFactIsRefused theorem #214 source

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

Taught by Behavior and proofs

System: 1 record

uorustSystemReleaseReady

System::uorustSystemReleaseReady theorem #325 source

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

Taught by Behavior and proofs

Users: 4 records

everyGoalHasItsUser

Users::everyGoalHasItsUser theorem #327 source

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

Taught by Behavior and proofs

everyMeasureNamesAGoal

Users::everyMeasureNamesAGoal theorem #328 source

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

Taught by Behavior and proofs

everyTaskIsAccepted

Users::everyTaskIsAccepted theorem #329 source

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

Taught by Behavior and proofs

everyTaskServesAGoal

Users::everyTaskServesAGoal theorem #330 source

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

Taught by Behavior and proofs

referenceBuildcase studyMarkdown

Words on this page 5
Prism model
A description of an app, written in LexLean, that covers every facet of it and that the Lean kernel checks before the app is built.
facet
One view of a model, such as its architecture, its security or its quality. Each facet holds records.
record
One entry in a facet: a component, a threat, a measure or a journey step, with the place in the source it came from.
Lean kernel
The small checker at the heart of the Lean prover. It accepts a proof only if every step follows the rules.
theorem
A statement about the model that the Lean kernel has checked, so it holds for every input, not only the ones tested.