Skip to content

Commit 1d867fb

Browse files
committed
upd: reduction_sys for generating notations for reductions and the multi-step closure
1 parent a0a325b commit 1d867fb

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Cslib/Languages/LambdaCalculus/Unscoped/Untyped/BetaReduction.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ namespace Lambda
3939
open Term
4040

4141
/-- One-step β-reduction (compatible closure). -/
42+
@[reduction_sys "β"]
4243
public inductive Beta : Term → Term → Prop
4344
| abs {t t'} : Beta t t' → Beta (λ.t) (λ.t')
4445
| appL {t t' u} : Beta t t' → Beta (t·u) (t'·u)

Cslib/Languages/LambdaCalculus/Unscoped/Untyped/ParallelReduction.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ namespace Lambda
4141
open Term
4242

4343
/-- Parallel β-reduction (syntax-directed). -/
44+
@[reduction_sys "∥"]
4445
public inductive Par : Term → Term → Prop
4546
| var (n) : Par (𝕧 n) (𝕧 n)
4647
| abs {t t'} : Par t t' → Par (λ.t) (λ.t')

0 commit comments

Comments
 (0)