Programming Languages

0.0(0)
studied byStudied by 0 people
0.0(0)
call with kaiCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:01 PM on 12/10/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

(\lambda x. s) t reduces to…

s[t/x] (Substitute t for x inside s)

2
New cards

IfThenElse(tt, s, t) reduces to…

s (The "Then" branch)

3
New cards

IfThenElse(ff, s, t) reduces to…

t (The "Else" branch)

4
New cards

case(lft a, f, g) reduces to…

f a (Apply left handler)

5
New cards

case(rgt b, f, g) reduces to…

g b (Apply right handler)

6
New cards

fold(r, s, []) reduces to…

s (The base case value)

7
New cards

fold(r, s, h@t) reduces to…

r h (fold(r, s, t)) (Recursive step)

8
New cards

Y f (Fixed Point Combinator) reduces to…

f (Y f) (Unrolls recursion once)

9
New cards

fst(s, t) reduces to…

s

10
New cards

snd(s, t) reduces to…

t

11
New cards

Sum Type Syntax

A ⊔ B (Contains either type A or type B)

12
New cards

Constructor for Left Sum

lft(a) (where a is type A)

13
New cards

Constructor for Right Sum

rgt(b) (where b is type B)

14
New cards

Typing Rule: Case Statement

If r: A⊔B, f: A->C, and g: B->C, then case(r,f,g): C

15
New cards

Typing Rule: List Cons (@)

If s: A and t: [A], then s@t : [A]

16
New cards

Typing Rule: List Nil ([])

[] has type [A]

17
New cards

Typing Rule: Fold

If r: A->B->B, s: B, and t: [A], then fold(r,s,t): B

18
New cards

Typing Rule: Fixpoint (Y)

If t: A->A, then Y t : A

19
New cards

Typing Rule: Pairs

If s: A and t: B, then (s, t) : A x B

20
New cards

Typing Rule: Projections

If s: A x B, then fst(s): A and snd(s): B

21
New cards

Typing Rule: Ex Falso

If e: 0 (Empty), then exfalso(e): A (Any type)

22
New cards

Call-by-Value (CBV)

Evaluate arguments before substitution.

23
New cards

Call-by-Name (CBN)

Substitute arguments immediately (un-evaluated).

24
New cards

Explore top flashcards