AFTD Auto-Formalizing Theoretical Domains

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.
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
Used by 5

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)
See it in the graphDiscuss this resultChallenge it