AFTD Auto-Formalizing Theoretical Domains

Cslib.StatefulProcesses.Prefix

inductiveimported Lean

Prefixes.

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.Prefix (Pid Var Val FunId SelLabel : Type*)
Defined in
CSLib, `Cslib.StatefulProcesses.Prefix`
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.
What was changed in Cslib.StatefulProcesses.Prefix
--- Cslib/Languages/StatefulProcesses/Basic.lean:54 (Cslib.StatefulProcesses.Prefix)
+++ as compiled here
@@ -1,3 +1,8 @@
-/-- Prefixes. -/
-inductive Prefix (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.Prefix (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
Used by 3

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
/-- Prefixes. -/
inductive Cslib.StatefulProcesses.Prefix (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 `x`. -/
  | recvValue (p : Pid) (x : Var)
  /-- Send to `p` the label `l`. -/
  | sendLabel (p : Pid) (l : SelLabel)
See it in the graphDiscuss this resultChallenge it