Cslib.StatefulProcesses.Act
inductiveimported Lean
Actions.
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.Act (Pid Var Val FunId SelLabel : Type*)
- Defined in
- CSLib, `Cslib.StatefulProcesses.Act`
- 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.Act← Cslib.StatefulProcesses.Act (Cslib/Languages/StatefulProcesses/Basic.lean:138): adapted
What was changed in
Cslib.StatefulProcesses.Act--- Cslib/Languages/StatefulProcesses/Basic.lean:138 (Cslib.StatefulProcesses.Act) +++ as compiled here @@ -1,3 +1,8 @@ -/-- Actions. -/ -inductive Act (Pid Var Val FunId SelLabel : 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.Act (Pid Var Val FunId SelLabel : Type*) where /-- Assign to `x` the result of evaluating `e`. -/
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 3
- 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.Process.TrSymbolic transition relation for processes. Do not use this directly, use
Process.ltsinstead. - Cslib.StatefulProcesses.Prefix.toActTransforms a
Prefixinto anAct. - Cslib.StatefulProcesses.Act.isInternalAn action is internal if it is not meant to interact with another process.
- Cslib.StatefulProcesses.Process.ltsSymbolic LTS of processes.
- Cslib.StatefulProcesses.Network.TrLabelSymbolic transition labels for networks.
- Cslib.StatefulProcesses.Process.TrSymbolic transition relation for processes. Do not use this directly, use
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 /-- Actions. -/ inductive Cslib.StatefulProcesses.Act (Pid Var Val FunId SelLabel : Type*) where /-- Assign to `x` the result of evaluating `e`. -/ | assign (x : Var) (e : Expr Var Val FunId) /-- Send to `p` the result of evaluating `e`. -/ | sendValue (p : Pid) (e : Expr Var Val FunId) /-- Receive a value from `p` and store it in variable `x`. -/ | recvValue (p : Pid) (x : Var) /-- Send to `p` the selection label `l`. -/ | sendLabel (p : Pid) (l : SelLabel) /-- Receive from `p` the selection label `l`. -/ | recvLabel (p : Pid) (l : SelLabel) /-- Choose the then-branch of a conditional guarded by `e`. -/ | condThen (e : Expr Var Val FunId) /-- Choose the else-branch of a conditional guarded by `e`. -/ | condElse (e : Expr Var Val FunId)