Cslib.StatefulProcesses.Process
inductiveimported Lean
Processes.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in set_option linter.style.header false in set_option linter.style.longLine false in @[expose] public section in open Cslib.Mech in inductive Cslib.StatefulProcesses.Process (Pid Var Val FunId SelLabel ProcName : Type*)
- Defined in
- CSLib, `Cslib.StatefulProcesses.Process`
- Lean proof
- By Fabrizio Montesi, from github.com/leanprover/cslib at
3951377e5a3f(Copyright (c) 2026 Fabrizio Montesi. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.33.0.Cslib.StatefulProcesses.Process← Cslib.StatefulProcesses.Process (Cslib/Languages/StatefulProcesses/Basic.lean:65): adapted
What was changed in
Cslib.StatefulProcesses.Process--- Cslib/Languages/StatefulProcesses/Basic.lean:65 (Cslib.StatefulProcesses.Process) +++ as compiled here @@ -1,3 +1,8 @@ -/-- Processes. -/ -inductive Process (Pid Var Val FunId SelLabel ProcName : Type*) where +set_option autoImplicit true in +set_option relaxedAutoImplicit true in +set_option linter.style.header false in +set_option linter.style.longLine false in +@[expose] public section in +open Cslib.Mech in +inductive Cslib.StatefulProcesses.Process (Pid Var Val FunId SelLabel ProcName : Type*) where /-- The terminated process. -/
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 4
- Cslib.StatefulProcesses.PrefixPrefixes.
- Cslib.Mech.ExprExpressions for local computation.
- Cslib.Mech.instCoeExprUtility instance to write variables directly as expressions.
- Cslib.Mech.instCoeExpr_1Utility instance to write values directly as expressions.
- Used by 5
- Cslib.StatefulProcesses.instZeroNetworkThe 0 ('zero') network, mapping all processes to the process term 0.
- Cslib.StatefulProcesses.Process.TrSymbolic transition relation for processes. Do not use this directly, use
Process.ltsinstead. - Cslib.StatefulProcesses.instZeroProcessCslib.StatefulProcesses.instZeroProcess
- Cslib.StatefulProcesses.NetworkA network maps process names to process terms.
- Cslib.StatefulProcesses.Process.ltsSymbolic LTS of processes.
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in set_option linter.style.header false in set_option linter.style.longLine false in @[expose] public section in open Cslib.Mech in /-- Processes. -/ inductive Cslib.StatefulProcesses.Process (Pid Var Val FunId SelLabel ProcName : Type*) where /-- The terminated process. -/ | nil /-- Execute the prefix `prf` and proceed as the continuation `pr`. -/ | pre (prf : Prefix Pid Var Val FunId SelLabel) (pr : Process Pid Var Val FunId SelLabel ProcName) /-- Branching process: receives a selection label and continues accordingly. -/ | recvLabel (p : Pid) (branches : List (SelLabel × Process Pid Var Val FunId SelLabel ProcName)) /-- Conditional: evaluate `e` to choose between `pr₁` and `pr₂`. -/ | cond (e : Expr Var Val FunId) (pr₁ pr₂ : Process Pid Var Val FunId SelLabel ProcName) /-- Call the procedure `proc`. -/ | call (proc : ProcName) (ps : List Pid)