Ranvier.Base.Prelude

Reading settings

Look

Mode

Definitions

Proofs

Imports

Arguments

References

References open

Saved in this browser.

ModulesGuarantees

Modules

Audit0Extract12

Base

Prelude9Syntax43

Reference

Semantics63Properties202

Pure

ObserverSet29SourceList104State16Edges12Marking117Engine103Check204Runs259Scheduler241Ownership49WholeGraph562Refinement465Witnesses244Optimised271Ledger6Collections302Concurrency141Extensions123Deltas68FastPaths435Combinators106MemoTable147MemoTableWitnesses62MemoTableFastPaths113

Heap

ObserverSet46SourceList89Ghost160Marking22Run286Scheduler7Ownership29Adequacy3Collections38Concurrency41Extensions17Deltas10MemoTable28

Conformance

Expected64Check119
On this page

On this page

node_idowner_idvalfreshnessstalefreshness_rankfreshness_lefreshness_eq_decfreshness_le_dec
This definition

Ranvier.Base.Prelude

2
From stdpp Require Import prelude.
From Stdlib Require Import ZArith.

Identifier of a node in the graph.

Definition node_id := nat.
References

Uses

  • nat

Used by

770 more

Identifier of an owner in the ownership tree.

Definition owner_id := nat.
References

Uses

  • nat

The values nodes hold: integers.

Definition val := Z.
References

Uses

  • Z

Used by

130 more

A node's freshness mark: Clean, Check (some source may have changed) or Dirty (a source changed).

Inductive freshness := Clean | Check | Dirty.
References

Used by

299 more

true for Check and Dirty.

Definition stale (f : freshness) : bool :=
  match f with Clean => false | _ => true end.
References

Uses

Definition freshness_rank (f : freshness) : nat :=
  match f with Clean => 0 | Check => 1 | Dirty => 2 end.
References

Order Clean <= Check <= Dirty.

Definition freshness_le (f g : freshness) : Prop := freshness_rank f <= freshness_rank g.
References
Global Instance freshness_eq_dec : EqDecision freshness.
Defined
Proof. solve_decision. Defined.
References

Uses

Global Instance freshness_le_dec : RelDecision freshness_le.
Defined
Proof. intros f g. unfold freshness_le. apply _. Defined.
References

Uses