Lambda calculus, hashing, financing.
parent
87ca0829b2
commit
42fc08e4c1
|
@ -141,7 +141,8 @@
|
|||
"function-bijective.png",
|
||||
"function-injective.png",
|
||||
"function-surjective.png",
|
||||
"function-general.png"
|
||||
"function-general.png",
|
||||
"church-rosser.png"
|
||||
],
|
||||
"File Hashes": {
|
||||
"algorithms/index.md": "3ac071354e55242919cc574eb43de6f8",
|
||||
|
@ -164,7 +165,7 @@
|
|||
"logic/index.md": "46cdc7a552900e99a7d2d0140971118c",
|
||||
"logic/propositional.md": "1ac07079aff07a7c2cb09daacefbb960",
|
||||
"lua/index.md": "fd3d0b66765f0e9df233e8e02ce33e94",
|
||||
"nix/callPackage.md": "8ab988c8f1982ff047c706c5d66b69c7",
|
||||
"nix/callPackage.md": "9aeeaa22878434d3c4498cb92cfe230b",
|
||||
"nix/index.md": "4efc7fcc4ea22834ba595497e5fb715c",
|
||||
"posix/index.md": "97b1b8ecb9a953e855a9acf0ab25b8c8",
|
||||
"posix/signals.md": "f4132369878c683bfac4d7fd863d19ba",
|
||||
|
@ -193,7 +194,7 @@
|
|||
"binary/index.md": "9089c6f0e86a0727cd03984f51350de0",
|
||||
"_journal/2024-02-09.md": "a798d35f0b2bd1da130f7ac766166109",
|
||||
"c/types.md": "cf3e66e5aee58a94db3fdf0783908555",
|
||||
"logic/quantification.md": "1116c6ac2267198a6ad9cc8b673b1c5b",
|
||||
"logic/quantification.md": "1bc37ddebe69b4a291753a6e454d81ef",
|
||||
"c/declarations.md": "2de27f565d1020819008ae80593af435",
|
||||
"algorithms/sorting/bubble-sort.md": "872fb23e41fb3ac36e8c46240e9a027f",
|
||||
"_journal/2024-02-10.md": "562b01f60ea36a3c78181e39b1c02b9f",
|
||||
|
@ -321,7 +322,7 @@
|
|||
"_journal/2024-03-18.md": "8479f07f63136a4e16c9cd07dbf2f27f",
|
||||
"_journal/2024-03/2024-03-17.md": "23f9672f5c93a6de52099b1b86834e8b",
|
||||
"set/directed-graph.md": "b4b8ad1be634a0a808af125fe8577a53",
|
||||
"set/index.md": "24a66a792b7b75329590dcfc495faa91",
|
||||
"set/index.md": "c366c641119b2f83558666eede68eef0",
|
||||
"set/graphs.md": "75f0ee994436ae39f7ba94a4eb73435a",
|
||||
"_journal/2024-03-19.md": "a0807691819725bf44c0262405e97cbb",
|
||||
"_journal/2024-03/2024-03-18.md": "63c3c843fc6cfc2cd289ac8b7b108391",
|
||||
|
@ -459,7 +460,7 @@
|
|||
"_journal/2024-05/2024-05-16.md": "9fdfadc3f9ea6a4418fd0e7066d6b10c",
|
||||
"_journal/2024-05-18.md": "c0b58b28f84b31cea91404f43b0ee40c",
|
||||
"hashing/direct-addressing.md": "f75cc22e74ae974fe4f568a2ee9f951f",
|
||||
"hashing/index.md": "577ce1d6655e60e2c3a7a9b5a9c2fa8a",
|
||||
"hashing/index.md": "378d86af6fe91fa93a6d9a6d8e52a1bf",
|
||||
"set/classes.md": "6776b4dc415021e0ef60b323b5c2d436",
|
||||
"_journal/2024-05-19.md": "fddd90fae08fab9bd83b0ef5d362c93a",
|
||||
"_journal/2024-05/2024-05-18.md": "c0b58b28f84b31cea91404f43b0ee40c",
|
||||
|
@ -482,7 +483,7 @@
|
|||
"_journal/2024-05/2024-05-25.md": "3e8a0061fa58a6e5c48d12800d1ab869",
|
||||
"_journal/2024-05-27.md": "b36636d10eab34380f17f288868df3ae",
|
||||
"_journal/2024-05/2024-05-26.md": "abe84b5beae74baa25501c818e64fc95",
|
||||
"algebra/set.md": "e3e57a0f4f15535e02adbda16bba21ed",
|
||||
"algebra/set.md": "237c9817db3d26f247e81ceb6a86b97f",
|
||||
"algebra/boolean.md": "ee41e624f4d3d3aca00020d9a9ae42c8",
|
||||
"git/merge-conflicts.md": "761ad6137ec51d3877f7d5b3615ca5cb",
|
||||
"_journal/2024-05-28.md": "0f6aeb5ec126560acdc2d8c5c6570337",
|
||||
|
@ -512,7 +513,7 @@
|
|||
"_journal/2024-06/2024-06-06.md": "db3407dcc86fa759b061246ec9fbd381",
|
||||
"_journal/2024-06-08.md": "b20d39dab30b4e12559a831ab8d2f9b8",
|
||||
"_journal/2024-06/2024-06-07.md": "c6bfc4c1e5913d23ea7828a23340e7d3",
|
||||
"lambda-calculus/alpha-conversion.md": "5fd232190961830498348fc6137e881a",
|
||||
"lambda-calculus/alpha-conversion.md": "c9b7d60602e13e8a60d8784a859d4655",
|
||||
"lambda-calculus/index.md": "64efe9e4f6036d3f5b4ec0dc8cd3e7b9",
|
||||
"x86-64/instructions/condition-codes.md": "56ad6eb395153609a1ec51835925e8c9",
|
||||
"x86-64/instructions/logical.md": "818428b9ef84753920dc61e5c2de9199",
|
||||
|
@ -527,16 +528,16 @@
|
|||
"_journal/2024-06/2024-06-10.md": "1fe3a8beb03b1cc9af188b85933339e4",
|
||||
"_journal/2024-06-12.md": "8cc810c0f594093768117f57461e2e9e",
|
||||
"_journal/2024-06/2024-06-11.md": "764ccba25646673fdf7bb6a5f090394d",
|
||||
"hashing/open-addressing.md": "c6f3fb2a5dbb270043c71af32bceae5b",
|
||||
"hashing/closed-addressing.md": "afc4aac46e73208039edfd4e40824ed5",
|
||||
"hashing/open-addressing.md": "a5129362af1cbc5f831abcdab1aa737f",
|
||||
"hashing/closed-addressing.md": "970c1b6c77e20c5a4d70bfec32171e61",
|
||||
"_journal/2024-06-13.md": "dec86b3a3e43eca306c3cf9a46b260ed",
|
||||
"_journal/2024-06/2024-06-12.md": "f82dfa74d0def8c3179d3d076f94558e",
|
||||
"_journal/2024-06-14.md": "5d12bc272238ac985a1d35d3d63ea307",
|
||||
"_journal/2024-06/2024-06-13.md": "e2722a00585d94794a089e8035e05728",
|
||||
"set/functions.md": "29fbc5fe127487649cd260aa9e290a3a",
|
||||
"set/functions.md": "b436a00b2d21aa6870b8c5f0684d0e51",
|
||||
"_journal/2024-06-15.md": "92cb8dc5c98e10832fb70c0e3ab3cec4",
|
||||
"_journal/2024-06/2024-06-14.md": "5d12bc272238ac985a1d35d3d63ea307",
|
||||
"lambda-calculus/beta-reduction.md": "e8b7fbca6c0395314ecbaf93a24e653b",
|
||||
"lambda-calculus/beta-reduction.md": "bd7ed2d1b8aae2e584c3e7be1d116170",
|
||||
"_journal/2024-06-16.md": "ded6ab660ecc7c3dce3afd2e88e5a725",
|
||||
"_journal/2024-06/2024-06-15.md": "c3a55549da9dfc2770bfcf403bf5b30b",
|
||||
"_journal/2024-06-17.md": "63df6757bb3384e45093bf2b9456ffac",
|
||||
|
@ -545,7 +546,7 @@
|
|||
"_journal/2024-06/2024-06-17.md": "49840b71f2c5e37c89e0afcc1c20850a",
|
||||
"_journal/2024-06-19.md": "ef5364091417de463a1d00dc18c628e8",
|
||||
"_journal/2024-06/2024-06-18.md": "390d3c78d46a4e25164ea595f37a23bf",
|
||||
"startups/venture-capitalist.md": "73de72c88261e54e9280f02cdf6f890d",
|
||||
"startups/venture-capitalist.md": "c6818ec5a96c4b6b95d54c36e4cf3a17",
|
||||
"startups/index.md": "00fd32876fc7a190dfecb2c37c15aadc",
|
||||
"startups/fundraising.md": "a8ba72cc16941a91f2367e96114daf15",
|
||||
"_journal/2024-06-20.md": "e67a8832003f0eb286dc6b5d6a916494",
|
||||
|
@ -553,7 +554,22 @@
|
|||
"_journal/2024-06-21.md": "12e37e2c57abab09c781b32793fbbe1a",
|
||||
"_journal/2024-06/2024-06-20.md": "12d4d8cc2f6dfa37b8d2c09095c5e636",
|
||||
"_journal/2024-06-22.md": "8f566883a70458a20d9c750065ce4025",
|
||||
"programming/ars.md": "70cfc820968cc24d9f0198bc98f5f9a2"
|
||||
"programming/ars.md": "a62db41d53a0ec5973742a09e0b48f0a",
|
||||
"_journal/2024-06-23.md": "72e157bbf19d2d35843873ff9e900927",
|
||||
"_journal/2024-06/2024-06-22.md": "81879cf81ad8f4c1b5622614df648252",
|
||||
"_journal/2024-06/2024-06-21.md": "12e37e2c57abab09c781b32793fbbe1a",
|
||||
"startups/financing.md": "1978def9644211c989564faa3e4a56ea",
|
||||
"_journal/2024-06-24.md": "7fc0f4cd231ef7cd6aa2b556d1244cf4",
|
||||
"_journal/2024-06/2024-06-23.md": "72e157bbf19d2d35843873ff9e900927",
|
||||
"_journal/2024-06-25.md": "fe70e3c260da1b2bb7535fb1eb656695",
|
||||
"_journal/2024-06/2024-06-24.md": "07e731eb482339db5f78c6e255c344a2",
|
||||
"_journal/2024-06-26.md": "9c5d7e6395496736f2f268e9fdba117f",
|
||||
"_journal/2024-06/2024-06-25.md": "4d475105c61b23842b575152bcbc4a5d",
|
||||
"_journal/2024-06-28.md": "327d1abef4be0d1526a585dcfe03db5a",
|
||||
"_journal/2024-06/2024-06-27.md": "237c73268a28f652985a5ef7ca7e188e",
|
||||
"_journal/2024-06/2024-06-26.md": "9c5d7e6395496736f2f268e9fdba117f",
|
||||
"_journal/2024-06-29.md": "d4bdb04616774ff741886e94e5f2e385",
|
||||
"_journal/2024-06/2024-06-28.md": "3f6a47a6324918b6c3af6b9549663372"
|
||||
},
|
||||
"fields_dict": {
|
||||
"Basic": [
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: "2024-06-29"
|
||||
---
|
||||
|
||||
- [ ] Anki Flashcards
|
||||
- [x] KoL
|
||||
- [x] OGS
|
||||
- [ ] Sheet Music (10 min.)
|
||||
- [ ] Korean (Read 1 Story)
|
|
@ -10,4 +10,5 @@ title: "2024-06-22"
|
|||
|
||||
* Notes on [[beta-reduction#Normal Form|β-normal forms]].
|
||||
* Very basic notes on [[ars|abstract rewriting systems]].
|
||||
* Additional set theory definitions ([[functions#Restrictions|restrictions]] and [[functions#Images|images]]).
|
||||
* Additional set theory definitions ([[functions#Restrictions|restrictions]] and [[functions#Images|images]]).
|
||||
* Read chapters 2 ("Methodology") and 3 ("Properties") of "An Introduction to Ontology".
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: "2024-06-23"
|
||||
---
|
||||
|
||||
- [x] Anki Flashcards
|
||||
- [x] KoL
|
||||
- [x] OGS
|
||||
- [ ] Sheet Music (10 min.)
|
||||
- [ ] Korean (Read 1 Story)
|
||||
|
||||
* Read chapter 4 ("Numbers") of "An Introduction to Ontology".
|
||||
* Notes on [[financing]] rounds.
|
||||
* Additional notes on hash tables with [[closed-addressing#Chaining|chaining]] and independent uniform hashing.
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
title: "2024-06-24"
|
||||
---
|
||||
|
||||
- [x] Anki Flashcards
|
||||
- [x] KoL
|
||||
- [x] OGS
|
||||
- [ ] Sheet Music (10 min.)
|
||||
- [ ] Korean (Read 1 Story)
|
||||
|
||||
* Further reading on possible worlds in "An Introduction to Ontology".
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
title: "2024-06-25"
|
||||
---
|
||||
|
||||
- [x] Anki Flashcards
|
||||
- [x] KoL
|
||||
- [x] OGS
|
||||
- [ ] Sheet Music (10 min.)
|
||||
- [ ] Korean (Read 1 Story)
|
||||
|
||||
* Finished transcribing notes on chapter 1 of "Venture Deals".
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: "2024-06-26"
|
||||
---
|
||||
|
||||
- [x] Anki Flashcards
|
||||
- [x] KoL
|
||||
- [x] OGS
|
||||
- [ ] Sheet Music (10 min.)
|
||||
- [ ] Korean (Read 1 Story)
|
||||
|
||||
* Prove basic theorems on functions (chapter 3 of "Elements of Set Theory").
|
||||
* Notes on substitution being well defined with respect to $\beta$-reductions.
|
||||
* Finished chapter 5 ("Possible Worlds") of "An Introduction to Ontology".
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
title: "2024-06-27"
|
||||
---
|
||||
|
||||
- [x] Anki Flashcards
|
||||
- [x] KoL
|
||||
- [x] OGS
|
||||
- [ ] Sheet Music (10 min.)
|
||||
- [ ] Korean (Read 1 Story)
|
||||
|
||||
* Read chapter 6 "Space" in "An Introduction to Ontology."
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
title: "2024-06-28"
|
||||
---
|
||||
|
||||
- [x] Anki Flashcards
|
||||
- [x] KoL
|
||||
- [x] OGS
|
||||
- [ ] Sheet Music (10 min.)
|
||||
- [ ] Korean (Read 1 Story)
|
||||
|
||||
* Notes on the [[beta-reduction#Church-Rosser Theorem|Church-Rosser theorem]] and [[ars#Confluence|confluence]] in general.
|
||||
* Read chapter 7 "Time" and chapter 8 "Mereology" of "An Introduction to Ontology".
|
|
@ -391,7 +391,7 @@ END%%
|
|||
For any sets $A$, $B$, and $C$, $$\begin{align*} A \times (B \cap C) & = (A \times B) \cap (A \times C) \\ A \times (B \cup C) & = (A \times B) \cup (A \times C) \\ A \times (B - C) & = (A \times B) - (A \times C) \end{align*}$$
|
||||
%%ANKI
|
||||
Basic
|
||||
Which algebra of sets operators is the Cartesian product distributive over?
|
||||
Which of the algebra of sets operators does the Cartesian product distributive over?
|
||||
Back: $\cap$, $\cup$, and $-$
|
||||
Reference: “Cartesian Product,” in _Wikipedia_, April 17, 2024, [https://en.wikipedia.org/w/index.php?title=Cartesian_product&oldid=1219343305](https://en.wikipedia.org/w/index.php?title=Cartesian_product&oldid=1219343305).
|
||||
<!--ID: 1718069881718-->
|
||||
|
|
|
@ -147,6 +147,78 @@ Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (
|
|||
<!--ID: 1718759188281-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is the worst-case behavior of hashing with chaining?
|
||||
Back: All keys hash to the same slot.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719174576856-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is the load factor of a hash table in which all $n$ keys hash to one of $m$ slots?
|
||||
Back: $n / m$ (the load factor is a property of the table, not the distribution of keys)
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719174576860-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
In a hash table with chaining and independent uniform hashing, what is the average *unsuccessful* search runtime?
|
||||
Back: Given load factor $\alpha$, $\Theta(1 + \alpha)$.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719174576864-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
In a hash table with chaining and independent uniform hash function $h$, *which* elements are examined in an unsuccessful search for element $x$?
|
||||
Back: All the elements in slot $h(x.key)$.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719176493045-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
In a hash table with chaining and independent uniform hashing, what is the average *successful* search runtime?
|
||||
Back: Given load factor $\alpha$, $\Theta(1 + \alpha)$.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719176493050-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
In a hash table with chaining and independent uniform hash function $h$, *which* elements are examined in a successful search for element $x$?
|
||||
Back: $x$ and the elements preceding $x$ in slot $h(x.key)$.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719176797748-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
In a hash table with chaining and independent uniform hashing, what is the average seach runtime?
|
||||
Back: Given load factor $\alpha$, $\Theta(1 + \alpha)$.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719176797752-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
In a hash table with chaining and independent uniform hashing, *when* is the average runtime of search $O(1)$?
|
||||
Back: When the number of entries is at most proportional to the number of slots in the table.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719176797756-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Suppose $n$ is at most proportional to $m$. How is this denoted in complexity notation?
|
||||
Back: $n = O(m)$
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719176797760-->
|
||||
END%%
|
||||
|
||||
## Bibliography
|
||||
|
||||
* “Hash Tables: Open vs Closed Addressing | Programming.Guide,” accessed June 12, 2024, [https://programming.guide/hash-tables-open-vs-closed-addressing.html](https://programming.guide/hash-tables-open-vs-closed-addressing.html).
|
||||
|
|
|
@ -137,11 +137,13 @@ Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (
|
|||
<!--ID: 1716307180980-->
|
||||
END%%
|
||||
|
||||
## Load Factor
|
||||
|
||||
Consider hash table $T$ with $m$ slots that stores $n$ entries. Then the **load factor** $\alpha$ for $T$ is defined to be $n / m$, i.e. the average number of entries that map to the same slot.
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
The load factor is a ratio of what two numbers?
|
||||
The load factor of a hash table is a ratio of what two numbers?
|
||||
Back: The number of entries in the table to the number of slots stored in the table.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1718759188190-->
|
||||
|
@ -201,6 +203,8 @@ END%%
|
|||
|
||||
An **independent uniform hash function** is the ideal theoretical abstraction. For each possible input $k$ in universe $U$, an output $h(k)$ is produced randomly and independently chosen from range $\{0, 1, \ldots, m - 1\}$. Once a value $h(k)$ is chosen, each subsequent call to $h$ with the same input $k$ yields the same output $h(k)$.
|
||||
|
||||
Independent uniform hashing is **universal**, meaning the chance of any two distinct keys colliding is at most $1 / m$.
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is considered the ideal (though only theoretical) hash function?
|
||||
|
@ -241,6 +245,22 @@ Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (
|
|||
<!--ID: 1718197741555-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is uniform hashing?
|
||||
Back: Any given element is equally likely to hash into any slot.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719174576842-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is independent hashing?
|
||||
Back: The slot an element hashes to is independent of where other elements hash to.
|
||||
Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
||||
<!--ID: 1719174576848-->
|
||||
END%%
|
||||
|
||||
## Bibliography
|
||||
|
||||
* Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022).
|
|
@ -59,7 +59,7 @@ END%%
|
|||
|
||||
%%ANKI
|
||||
Basic
|
||||
*Why* is the theoretical maximum load factor of open addressing unbounded?
|
||||
*Why* is the theoretical maximum load factor of open addressing bounded?
|
||||
Back: An open addressing hash table can only store as many entries as slots.
|
||||
Reference: “Hash Tables: Open vs Closed Addressing | Programming.Guide,” accessed June 12, 2024, [https://programming.guide/hash-tables-open-vs-closed-addressing.html](https://programming.guide/hash-tables-open-vs-closed-addressing.html).
|
||||
<!--ID: 1718759188176-->
|
||||
|
|
|
@ -404,12 +404,12 @@ Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combi
|
|||
<!--ID: 1717855810802-->
|
||||
END%%
|
||||
|
||||
For $\lambda$-terms $M$, $M'$, $N$, and $N'$, and variable $x$, $$M \equiv_\alpha M' \land N \equiv_\alpha N' \Rightarrow [N/x]M \equiv_\alpha [N'/x]M'$$
|
||||
Substitution is well-defined with respect to $\alpha$-conversion. That is, if $M \equiv_\alpha M'$ and $N \equiv N'$, then $$[N/x]M \equiv_\alpha [N'/x]M'$$
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
The proof of which implication shows "substitution is well-behaved w.r.t. $\alpha$-conversion"?
|
||||
Back: $P \equiv_\alpha P' \land M \equiv_\alpha M' \Rightarrow [P/x]M \equiv_\alpha [P'/x]M'$
|
||||
The proof of which implication shows substitution is well-behaved w.r.t. $\alpha$-conversion?
|
||||
Back: $M \equiv_\alpha M' \land N \equiv_\alpha N' \Rightarrow [N/x]M \equiv_\alpha [N'/x]M'$
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1718422973129-->
|
||||
END%%
|
||||
|
@ -417,7 +417,7 @@ END%%
|
|||
%%ANKI
|
||||
Basic
|
||||
What does Hindley et al. mean by "substitution is well-behaved w.r.t. $\alpha$-conversion"?
|
||||
Back: $\alpha$-converting substitution inputs yields congruent outputs.
|
||||
Back: Substitution then $\alpha$-conversion is congruent to $\alpha$-conversion then substitution.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1718422973135-->
|
||||
END%%
|
||||
|
@ -431,12 +431,28 @@ END%%
|
|||
|
||||
%%ANKI
|
||||
Basic
|
||||
What does Hindley et al. say the following implication says about substitution? $$M \equiv_\alpha M' \land N \equiv_\alpha N' \Rightarrow [N/x]M \equiv_\alpha [N'/x]M'$$
|
||||
Back: It is well-defined with respect to $\alpha$-conversion.
|
||||
How does Hindley et al. describe the following implication? $$M \equiv_\alpha M' \land N \equiv_\alpha N' \Rightarrow [N/x]M \equiv_\alpha [N'/x]M'$$
|
||||
Back: As "substitution is well-defined with respect to $\alpha$-conversion."
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1718422981125-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Suppose $P \equiv_\alpha Q$. How do $FV(P)$ and $FV(Q)$ relate to one another?
|
||||
Back: $FV(P) = FV(Q)$
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719406791439-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
*Why* is this implication true: $P \equiv_\alpha Q \Rightarrow FV(P) = FV(Q)$
|
||||
Back: $\alpha$-conversions do not modify free variables in any way.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719406791443-->
|
||||
END%%
|
||||
|
||||
## Simultaneous Substitution
|
||||
|
||||
Substitution can be generalized in the natural way to define simultaneous substitution $$[N_1/x_1, N_2/x_2, \ldots, N_n/x_n]M$$ for $n \geq 2$. As in [[equiv-trans#Substitution|equivalence-transformation]], simultaneous substitution is different from sequential substitution.
|
||||
|
|
|
@ -95,18 +95,26 @@ Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combi
|
|||
<!--ID: 1718475424853-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
*Why* isn't $(\lambda x. x) \,\triangleright_{1\beta}\, (\lambda x. x)$ true?
|
||||
Back: No $\beta$-redex was replaced with its contractum.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719143537493-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Given $\lambda$-term $P$, is $P \,\triangleright_{1\beta}\, P$ true?
|
||||
Back: No.
|
||||
Back: Not necessarily.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1718475424855-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Given $\lambda$-term $P$, *why* isn't $P \,\triangleright_{1\beta}\, P$ true?
|
||||
Back: Replacing a $\beta$-redex in $P$ with its contractum cannot again yield $P$ again.
|
||||
Given $\lambda$-term $P$, when is $P \,\triangleright_{1\beta}\, P$ true?
|
||||
Back: When substituting a $\beta$-redex in $P$ with its contractum yields $P$ again.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1718475424857-->
|
||||
END%%
|
||||
|
@ -167,6 +175,39 @@ Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combi
|
|||
<!--ID: 1718475424868-->
|
||||
END%%
|
||||
|
||||
Substitution is well-defined with respect to $\beta$-reduction. That is, if $M \,\triangleright_\beta\, M'$ and $N \,\triangleright_\beta\, N'$, then $$[N/x]M \,\triangleright_\beta\, [N'/x]M'$$
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
The proof of which implication shows "substitution is well-behaved w.r.t. $\beta$-reduction"?
|
||||
Back: $M \,\triangleright_\beta\, M' \land N \,\triangleright_\beta\, N' \Rightarrow [N/x]M \,\triangleright_\beta\, [N'/x]M'$
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719406791418-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What does Hindley et al. mean by "substitution is well-behaved w.r.t. $\beta$-conversion"?
|
||||
Back: Substitution then $\beta$-reduction is congruent to $\beta$-reduction then substitution.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719406791421-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
{$M \,\triangleright_\beta\, M' \land N \,\triangleright_\beta\, N'$} $\Rightarrow [N/x]M \,\triangleright_\beta\, [N'/x]M'$
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719406791424-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
How does Hindley et al. describe the following implication? $$M \,\triangleright_\beta\, M' \land N \,\triangleright_\beta\, N' \Rightarrow [N/x]M \,\triangleright_\beta\, [N'/x]M'$$
|
||||
Back: As "substitution is well-defined with respect to $\beta$-reduction."
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719406791427-->
|
||||
END%%
|
||||
|
||||
## Normal Form
|
||||
|
||||
A term $Q$ which contains no $\beta$-redexes is called a **$\beta$-normal form** (or a **term in $\beta$-normal form** or just a **$\beta$-nf**). The class of all $\beta$-normal forms is called $\beta$-nf or $\lambda\beta$-nf. If a term $P$ $\beta$-reduces to a term $Q$ in $\beta$-nf, then $Q$ is called a **$\beta$-normal form of $P$**.
|
||||
|
@ -298,6 +339,142 @@ Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combi
|
|||
<!--ID: 1719103644325-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Let $P \,\triangleright_\beta\, Q$. How do $FV(P)$ and $FV(Q)$ relate to one another?
|
||||
Back: $FV(Q) \subseteq FV(P)$
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719406791430-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Suppose $P \,\triangleright_\beta\, Q$. When is $FV(Q) \subset FV(P)$ true?
|
||||
Back: When replacing a $\beta$-redex with its contractum removes a free variable.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719406791433-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
$\beta$-reduction "loses" free variable $N$ when it contains what $\beta$-redex?
|
||||
Back: If $x \not\in FV(M)$, then $(\lambda x. M)N$.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719406791436-->
|
||||
END%%
|
||||
|
||||
## Church-Rosser Theorem
|
||||
|
||||
If $P \,\triangleright_\beta\, M$ and $P \,\triangleright_\beta\, N$, then there exists a term $T$ such that $M \,\triangleright_\beta\, T$ and $N \,\triangleright_\beta\, T$.
|
||||
|
||||
As an immediate corollary, if $P$ has a $\beta$-normal form then it it is unique modulo $\equiv_\alpha$.
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
According to Hindley et al., what is the most quoted theorem in $\lambda$-calculus?
|
||||
Back: The Church-Rosser theorem.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152587-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
The Church-Rosser theorem is related to which greek-prefixed concept?
|
||||
Back: $\beta$-reductions.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152591-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What does the Church-Rosser theorem state in terms of $\triangleright_\beta$?
|
||||
Back: If $P \,\triangleright_\beta\, M$ and $P \,\triangleright_\beta\, N$, then there exists a term $T$ such that $M \,\triangleright_\beta\, T$ and $N \,\triangleright_\beta\, T$.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152594-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
When does a $\lambda$-term have zero $\beta$-normal forms (modulo $\equiv_\alpha$)?
|
||||
Back: When its $\beta$-reductions fail to simplify.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152597-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
When does a $\lambda$-term have one $\beta$-normal form (modulo $\equiv_\alpha$)?
|
||||
Back: When its $\beta$-reductions simplify to a point of containing no $\beta$-redexes.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152601-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
When does a $\lambda$-term have two $\beta$-normal form (modulo $\equiv_\alpha$)?
|
||||
Back: N/A.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152604-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What theorem is used to prove uniqueness of $\beta$-normal forms?
|
||||
Back: The Church-Rosser theorem.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152607-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
If a $\lambda$-term has $\beta$-normal forms $P$ and $Q$, what can be said about $P$ and $Q$?
|
||||
Back: $P \equiv_\alpha Q$
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152610-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What does the Church-Rosser theorem state in terms of confluence?
|
||||
Back: $\beta$-reduction is confluent.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152613-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
The following diagram is a representation of what theorem?
|
||||
![[church-rosser.png]]
|
||||
Back: The Church-Rosser theorem for $\triangleright_\beta$.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152616-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
According to Hindley et al., what is the most important application of the Church-Rosser theorem?
|
||||
Back: Showing computations in $\lambda$-calculus produce congruent results.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152620-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
For a given $\lambda$-term $P$, how many $\beta$-normal forms does $P$ have?
|
||||
Back: Zero or one.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152623-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
In the following Church-Rosser diagram, what do the arrows represent?
|
||||
![[church-rosser.png]]
|
||||
Back: $\beta$-reductions.
|
||||
Reference: Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
||||
<!--ID: 1719577152627-->
|
||||
END%%
|
||||
|
||||
## Bibliography
|
||||
|
||||
* Hindley, J Roger, and Jonathan P Seldin. “Lambda-Calculus and Combinators, an Introduction,” n.d. [https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf](https://www.cin.ufpe.br/~djo/files/Lambda-Calculus%20and%20Combinators.pdf).
|
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -145,7 +145,7 @@ END%%
|
|||
%%ANKI
|
||||
Basic
|
||||
How is $\exists x : S, P(x)$ written in terms of counting quantification?
|
||||
Back: $\exists^{\geq 1} x : S, P(x)$
|
||||
Back: $\exists^{\geq 1}\, x : S, P(x)$
|
||||
Reference: Gries, David. *The Science of Programming*. Texts and Monographs in Computer Science. New York: Springer-Verlag, 1981.
|
||||
<!--ID: 1707494832056-->
|
||||
END%%
|
||||
|
@ -153,7 +153,7 @@ END%%
|
|||
%%ANKI
|
||||
Basic
|
||||
How is $\forall x : S, P(x)$ written in terms of counting quantification?
|
||||
Back: Assuming $S$ has $k$ members, $\exists^{= k} x : S, P(x)$
|
||||
Back: Assuming $S$ has $k$ members, $\exists^{= k}\, x : S, P(x)$
|
||||
Reference: Gries, David. *The Science of Programming*. Texts and Monographs in Computer Science. New York: Springer-Verlag, 1981.
|
||||
<!--ID: 1707494832058-->
|
||||
END%%
|
||||
|
|
|
@ -1,116 +0,0 @@
|
|||
---
|
||||
title: callPackage
|
||||
TARGET DECK: Obsidian::STEM
|
||||
FILE TAGS: nix
|
||||
tags:
|
||||
- nix
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
We first examine `lib.makeOverridable`. It's implementation isn't too important but understanding how it's used is. We adapt the example found in [nixpkgs](https://github.com/NixOS/nixpkgs/blob/56df668386ac83c5bcddf9849c645cf0d25706d7/lib/customisation.nix#L77):
|
||||
|
||||
```nix
|
||||
nix-repl> x = {a, b}: { example = a + b; }
|
||||
nix-repl> y = lib.makeOverridable x { a = 1; b = 2; }
|
||||
nix-repl> y
|
||||
{ override = «lambda»; overrideDerivation = «lambda»; example = 3; }
|
||||
nix-repl> y.override { a = 10; }
|
||||
{ override = «lambda»; overrideDerivation = «lambda»; example = 12; }
|
||||
```
|
||||
|
||||
`lib.makeOverridable` is an example of partial function application. Notice `y` still contains the result (`example`) of evaluating `x`. We can re-run the computation with a different value (in this case `a`) by invoking `y.override`.
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is the result of the following?
|
||||
```nix
|
||||
x = {a, b}: { example = a + b; }
|
||||
lib.functionArgs x
|
||||
```
|
||||
Back: `{ a = false; b = false; }`
|
||||
Reference: Yin, Ryan. “NixOS and Flakes Book.” Nix, February 1, 2024. [https://github.com/ryan4yin/nixos-and-flakes-book](https://github.com/ryan4yin/nixos-and-flakes-book)
|
||||
<!--ID: 1706828138583-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What does each boolean returned by `lib.functionArgs` indicate?
|
||||
Back: Whether the associated attribute has a default value.
|
||||
Reference: Yin, Ryan. “NixOS and Flakes Book.” Nix, February 1, 2024. [https://github.com/ryan4yin/nixos-and-flakes-book](https://github.com/ryan4yin/nixos-and-flakes-book)
|
||||
<!--ID: 1706828138588-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What additional attributes is included in the set returned by `lib.makeOverridable`?
|
||||
Back: `override` and `overrideDerivation`.
|
||||
Reference: Yin, Ryan. “NixOS and Flakes Book.” Nix, February 1, 2024. [https://github.com/ryan4yin/nixos-and-flakes-book](https://github.com/ryan4yin/nixos-and-flakes-book)
|
||||
<!--ID: 1706828138590-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is the value of `y.example` in the following?
|
||||
```nix
|
||||
x = {a, b}: { example = a + b; }
|
||||
y = lib.makeOverridable x { a = 1; b = 2; }
|
||||
```
|
||||
Back: `3`
|
||||
Reference: Yin, Ryan. “NixOS and Flakes Book.” Nix, February 1, 2024. [https://github.com/ryan4yin/nixos-and-flakes-book](https://github.com/ryan4yin/nixos-and-flakes-book)
|
||||
<!--ID: 1706828225233-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is the value of `(y.override { a = 10; }).example` in the following?
|
||||
```nix
|
||||
x = {a, b}: { example = a + b; }
|
||||
y = lib.makeOverridable x { a = 1; b = 2; }
|
||||
```
|
||||
Back: `12`
|
||||
Reference: Yin, Ryan. “NixOS and Flakes Book.” Nix, February 1, 2024. [https://github.com/ryan4yin/nixos-and-flakes-book](https://github.com/ryan4yin/nixos-and-flakes-book)
|
||||
<!--ID: 1706828225236-->
|
||||
END%%
|
||||
|
||||
Now we can understand how `pkgs.callPackage` works. The following is a simplification of the [actual implementation](https://github.com/NixOS/nixpkgs/blob/56df668386ac83c5bcddf9849c645cf0d25706d7/lib/customisation.nix#L153):
|
||||
|
||||
```nix
|
||||
callPackageWith = autoArgs: fn: args:
|
||||
let
|
||||
f = if isFunction fn then fn else import fn;
|
||||
fargs = functionArgs f;
|
||||
allArgs = intersectArgs fargs autoArgs // args;
|
||||
in
|
||||
lib.makeOverridable f allArgs
|
||||
|
||||
callPackage = callPackageWith pkgs;
|
||||
```
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What two functions is `callPackage` implemented on top of?
|
||||
Back: `callPackageWith` and `makeOverridable`.
|
||||
Reference: Yin, Ryan. “NixOS and Flakes Book.” Nix, February 1, 2024. [https://github.com/ryan4yin/nixos-and-flakes-book](https://github.com/ryan4yin/nixos-and-flakes-book)
|
||||
<!--ID: 1706828138592-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is the purpose of `callPackage`?
|
||||
Back: It calls package functions with arguments automatically supplied if not overridden.
|
||||
Reference: Yin, Ryan. “NixOS and Flakes Book.” Nix, February 1, 2024. [https://github.com/ryan4yin/nixos-and-flakes-book](https://github.com/ryan4yin/nixos-and-flakes-book)
|
||||
<!--ID: 1706828138594-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What attribute must be invoked in `callPackage`'s return value to override arguments?
|
||||
Back: `override`
|
||||
Reference: Yin, Ryan. “NixOS and Flakes Book.” Nix, February 1, 2024. [https://github.com/ryan4yin/nixos-and-flakes-book](https://github.com/ryan4yin/nixos-and-flakes-book)
|
||||
<!--ID: 1706828225240-->
|
||||
END%%
|
||||
|
||||
## Bibliography
|
||||
|
||||
* Yin, Ryan. “NixOS and Flakes Book.” Nix, February 1, 2024. [https://github.com/ryan4yin/nixos-and-flakes-book](https://github.com/ryan4yin/nixos-and-flakes-book)
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: Nix
|
||||
tags:
|
||||
- nix
|
||||
---
|
|
@ -59,7 +59,36 @@ Reference: “Canonical Form,” in _Wikipedia_, January 7, 2024, [https://en.wi
|
|||
<!--ID: 1719067812833-->
|
||||
END%%
|
||||
|
||||
## Confluence
|
||||
|
||||
**Confluence** is the property by which two different terms can be further reduced to one common term. That is to say, confluence is a property of rewriting systems describing which terms in such a system can be rewritten in more than one way.
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is confluence?
|
||||
Back: A property by which two different terms can be further reduced to one common term.
|
||||
Reference: “Confluence (Abstract Rewriting),” in _Wikipedia_, May 22, 2024, [https://en.wikipedia.org/w/index.php?title=Confluence](https://en.wikipedia.org/w/index.php?title=Confluence_(abstract_rewriting)&oldid=1225041322).
|
||||
<!--ID: 1719578045810-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
How might $(11 + 9) \times (2 + 4)$ be reduced to demonstrate confluence?
|
||||
Back: As $20 \times (2 + 4)$ and as $(11 + 9) \times 6$.
|
||||
Reference: “Confluence (Abstract Rewriting),” in _Wikipedia_, May 22, 2024, [https://en.wikipedia.org/w/index.php?title=Confluence](https://en.wikipedia.org/w/index.php?title=Confluence_(abstract_rewriting)&oldid=1225041322).
|
||||
<!--ID: 1719578045839-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
How might $(\lambda x. (\lambda y. yx)z)v$ be reduced to demonstrate confluence?
|
||||
Back: As $(\lambda y.yv)z$ and as $(\lambda x. zx)v$.
|
||||
Reference: “Confluence (Abstract Rewriting),” in _Wikipedia_, May 22, 2024, [https://en.wikipedia.org/w/index.php?title=Confluence](https://en.wikipedia.org/w/index.php?title=Confluence_(abstract_rewriting)&oldid=1225041322).
|
||||
<!--ID: 1719578045843-->
|
||||
END%%
|
||||
|
||||
## Bibliography
|
||||
|
||||
* “Canonical Form,” in _Wikipedia_, January 7, 2024, [https://en.wikipedia.org/w/index.php?title=Canonical_form](https://en.wikipedia.org/w/index.php?title=Canonical_form&oldid=1194093963).
|
||||
* “Confluence (Abstract Rewriting),” in _Wikipedia_, May 22, 2024, [https://en.wikipedia.org/w/index.php?title=Confluence](https://en.wikipedia.org/w/index.php?title=Confluence_(abstract_rewriting)&oldid=1225041322).
|
||||
* Normal Form,” in _Wikipedia_, April 27, 2024, [https://en.wikipedia.org/w/index.php?title=Normal_form](https://en.wikipedia.org/w/index.php?title=Normal_form_(abstract_rewriting)&oldid=1221094193).
|
||||
|
|
|
@ -476,7 +476,7 @@ END%%
|
|||
%%ANKI
|
||||
Basic
|
||||
How is the inverse of set $F$ defined in set-builder notation?
|
||||
Back: $F^{-1} = \{\langle u, v \rangle \mid vFu\}$\
|
||||
Back: $F^{-1} = \{\langle u, v \rangle \mid vFu\}$
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719016770752-->
|
||||
END%%
|
||||
|
@ -633,6 +633,29 @@ Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Pre
|
|||
<!--ID: 1719103644293-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Given set $F$, what does $\mathop{\text{dom}}F^{-1}$ evaluate to?
|
||||
Back: $\mathop{\text{ran}}F$
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719398756549-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Given set $F$, what does $\mathop{\text{ran}}F^{-1}$ evaluate to?
|
||||
Back: $\mathop{\text{dom}}F$
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719398756554-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
For any set $F$, {1:$F$} is {2:single-valued} iff {2:$F^{-1}$} is {1:single-rooted}.
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719398756558-->
|
||||
END%%
|
||||
|
||||
## Compositions
|
||||
|
||||
Let $F$ and $G$ be arbitrary sets. The **composition** of $F$ and $G$ is the set $$F \circ G = \{\langle u, v \rangle \mid \exists t, uGt \land tFv \}$$
|
||||
|
@ -716,6 +739,67 @@ Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Pre
|
|||
<!--ID: 1719103644296-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
Let $F$ be {a function}. If $t \in$ {$\mathop{\text{ran}}F$}, then $F(F^{-1}(t)) = t$.
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719398756562-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
Let $F$ be {an injection}. If $t \in$ {$\mathop{\text{dom}}F$}, then $F^{-1}(F(t)) = t$.
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719398756565-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
If $F$ is a relation and $G$ is a function, is $F \circ G$ a function?
|
||||
Back: Not necessarily.
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719406791406-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
If $F$ is a function and $G$ is a relation, is $F \circ G$ a function?
|
||||
Back: Not necessarily.
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719406791410-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
If $F$ is a function and $G$ is a function, is $F \circ G$ a function?
|
||||
Back: Yes.
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719406791413-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Let $F$ and $G$ be functions. How is $\mathop{\text{dom}}(F \circ G)$ defined using set-builder notation?
|
||||
Back: $\{x \in \mathop{\text{dom}}G \mid G(x) \in \mathop{\text{dom}}F\}$
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719406791415-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
For any sets $F$ and $G$, {$(F \circ G)^{-1}$} $=$ {$G^{-1} \circ F^{-1}$}.
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719666552283-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
How might you explain $(F \circ G)^{-1} = G^{-1} \circ F^{-1}$ in plain English?
|
||||
Back: The opposite of applying $G$ then $F$ is to undo $F$ then $G$.
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1719666552291-->
|
||||
END%%
|
||||
|
||||
## Restrictions
|
||||
|
||||
Let $F$ and $A$ be arbitrary sets. The **restriction of $F$ to $A$** is the set $$F \restriction A = \{\langle u, v \rangle \mid uFv \land u \in A\}$$
|
||||
|
|
|
@ -400,7 +400,7 @@ For any sets $a$ and $b$, there exists a set whose members are those sets belong
|
|||
%%ANKI
|
||||
Basic
|
||||
What does the union axiom (preliminary form) state?
|
||||
Back: For any sets $a$ and $b$, there exists a set whose members are all in either $a$ or $b$.
|
||||
Back: For any sets $a$ and $b$, there exists a set whose members are all in either $a$ or $b$ (or both).
|
||||
Reference: Herbert B. Enderton, *Elements of Set Theory* (New York: Academic Press, 1977).
|
||||
<!--ID: 1715688034333-->
|
||||
END%%
|
||||
|
|
|
@ -0,0 +1,433 @@
|
|||
---
|
||||
title: Financing
|
||||
TARGET DECK: Obsidian::H&SS
|
||||
FILE TAGS: startups::financing
|
||||
tags:
|
||||
- financing
|
||||
- startups
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Financing rounds roughly follow the given naming scheme:
|
||||
|
||||
* Early-stage companies:
|
||||
* Series Pre-Seed
|
||||
* Series Seed
|
||||
* Series A
|
||||
* Mid-stage companies:
|
||||
* Series B
|
||||
* Series C
|
||||
* Late-stage companies:
|
||||
* Series D
|
||||
* ...
|
||||
|
||||
Financing rounds with numerical suffices (e.g. Series B-1) usually refer to situations where the same investors, on the same terms, invest additional money.
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What name is given to the earliest financing round?
|
||||
Back: Series Pre-Seed.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151112996-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
The Series {Seed} round follows the Series {Pre-Seed} round.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151113006-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
The Series {A} round follows the Series {Seed} round.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151113010-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What two financing rounds can follow a Series B round?
|
||||
Back: A "Series B-1" or "Series C".
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151159514-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
When does a Series A round transition to a Series A-1 round?
|
||||
Back: When the same investors, on the same terms, invest additional money.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151113015-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
When does a Series A round transition to a Series B round?
|
||||
Back: When new investors or new terms are applied to a new investment.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151113019-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
When does a Series A-2 round transition to a Series B round?
|
||||
Back: When new investors or new terms are applied to a new investment.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151113024-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
When does a Series A-2 round transition to a Series B-1 round?
|
||||
Back: N/A.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151113030-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What financing rounds are considered "early-stage"?
|
||||
Back: Series Pre-Seed, Seed, and A.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151113034-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What financing rounds are considered "mid-stage"?
|
||||
Back: Series B and C.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151113039-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What financing rounds are considered "late-stage"?
|
||||
Back: Series D and after.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719151113045-->
|
||||
END%%
|
||||
|
||||
A **party round** refers to a financing round with many investors that make relatively small investments.
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
A {party round} is a {round of financing with many investors making small investments}.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934653-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Why are party rounds discouraged?
|
||||
Back: You have many VCs but none committed in any meaningful way.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934657-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Why aren't VCs usually meaningfully committed in a party round?
|
||||
Back: Their investment is likely much smaller relative to what they'd normally invest.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934661-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is the primary motivation behind having a party round?
|
||||
Back: You can potentially have many fancy names associated with your company.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934665-->
|
||||
END%%
|
||||
|
||||
## Venture Capitalists
|
||||
|
||||
A **venture capitalist** (VC) is an investor who provides capital to companies in exchange for an equity stake on behalf of a firm. A firm comprises of the following roles (in order of seniority):
|
||||
|
||||
* **Managing director** (MD) or **general partner** (GP). The VCs that make the final investment decisions and sit on the boards of directors of the companies they invest in.
|
||||
* **Principal** or **director**. Junior deal professionals looking to become managing directors.
|
||||
* **Associate**. Work for one or more deal partners, usually a managing director.
|
||||
* **Analyst**. Individuals with similar responsibilites as the associate, though usually less deal-centric.
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is VC short for?
|
||||
Back: **V**enture **c**apitalist.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788273-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What ambiguity does the term "VC" introduce?
|
||||
Back: It may refer to a VC firm or an individual of said firm.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788303-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
Typically VCs provide {capital} in exchange for {equity}.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788311-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
How is a "venture capitalist" defined?
|
||||
Back: An investor who provides capital to companies, on behalf of a firm, in exchange for equity.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788328-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What form of capital does a VC typically work in?
|
||||
Back: Cash flow.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788334-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Within a VC firm, what does MD stand for?
|
||||
Back: **M**anaging **d**irector.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788338-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Within a VC firm, what does GP stand for?
|
||||
Back: **G**eneral **p**artner.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788342-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does a "managing director" refer to?
|
||||
Back: A senior VC, generally responsible for making final investment decisions.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311552-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does a "general partner" refer to?
|
||||
Back: A senior VC, generally responsible for making final investment decisions.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788345-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
A {general partner} is also known as a {managing director}.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788348-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
The {principal/director} role follows the {MD/GP} role in seniority.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788353-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does a "principal" refer to?
|
||||
Back: A VC working their way up to becoming a GP.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788357-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does a "director" refer to?
|
||||
Back: A VC working their way up to becoming an MD.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311558-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
A {principal} is also known as a {director}.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788361-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What types of VCs are grouped under term "deal partner"?
|
||||
Back: GPs and principals.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788368-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What distinguishes VCs from angel investors?
|
||||
Back: The former use a pool of investors' money. The latter uses their own money.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311563-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
The {associate} role follows the {principal/director} role in seniority.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311566-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
The {analyst} role follows the {associate} role in seniority.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311572-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
How are analysts and associates typically distinguished?
|
||||
Back: The latter are usually more deal-centric than the former.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311577-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What role is a recent college graduate likely given at a VC firm?
|
||||
Back: Analyst.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311581-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does an "associate" refer to?
|
||||
Back: An employee usually working directly for one or more deal managers.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311586-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does an "analyst" refer to?
|
||||
Back: An employee working on general functions for the firm.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311590-->
|
||||
END%%
|
||||
|
||||
While some VCs invest alone, many invest with other VCs. A collection of investors is called a **syndicate**. Most syndicates have a **lead investor** usually responsible for taking the role of negotiating terms on behalf of the entire syndicate.
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
A {syndicate} is a {collection of investors}.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934669-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
A syndicate collectively refers to which kind of investors?
|
||||
Back: *Anyone* that ends up purchasing equity in a financing.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934673-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
A "lead investor" is considered the lead of what?
|
||||
Back: A syndicate.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934678-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is the usual responsibility of a lead investor?
|
||||
Back: Negotiating terms on behalf of the syndicate.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934682-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
*Why* do entrepreneurs want a lead investor?
|
||||
Back: To limit the number of negotiations to just those with the lead.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934687-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
How many lead investors can a syndicate have?
|
||||
Back: There is no limit.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934693-->
|
||||
END%%
|
||||
|
||||
## Angel Investors
|
||||
|
||||
**Angels** are usually high-net-worth individuals that invest in a company. They must qualify as an **accredited investor** or have an appropriate exemption to invest. Angel investors that make many small investments to companies are called **super angels**.
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
An {angel} is a shorthand term for an {angel investor}.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934700-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
Angels must be {accredited}, as defined by the SEC.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934706-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What distinguishes an angel and VC's funding source?
|
||||
Back: The former use their own money. The latter uses a group of investors' money.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934711-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is a super angel?
|
||||
Back: Angel investors that make many small investments to companies.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934716-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
{Angel}s become {super angel}s become {micro} VCs.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934720-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
VCs have a fiduciary reponsibility to whom?
|
||||
Back: Investors of the VC.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934724-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
At what point does a super angel become a VC?
|
||||
Back: When they accept money from others to raise a fund.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1719360934730-->
|
||||
END%%
|
||||
|
||||
## Bibliography
|
||||
|
||||
* Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
|
@ -1,190 +0,0 @@
|
|||
---
|
||||
title: Venture Capitalist
|
||||
TARGET DECK: Obsidian::H&SS
|
||||
FILE TAGS: startups::vc
|
||||
tags:
|
||||
- startups
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
A **venture capitalist** (VC) is an investor who provides capital to companies in exchange for an equity stake on behalf of a firm. A firm comprises of the following roles (in order of seniority):
|
||||
|
||||
* **Managing director** (MD) or **general partner** (GP). The VCs that make the final investment decisions and sit on the boards of directors of the companies they invest in.
|
||||
* **Principal** or **director**. Junior deal professionals looking to become managing directors.
|
||||
* **Associate**. Work for one or more deal partners, usually a managing director.
|
||||
* **Analyst**. Individuals with similar responsibilites as the associate, though usually less deal-centric.
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What is VC short for?
|
||||
Back: **V**enture **c**apitalist.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788273-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What ambiguity does the term "VC" introduce?
|
||||
Back: It may refer to a VC firm or an individual of said firm.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788303-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
Typically VCs provide {capital} in exchange for {equity}.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788311-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
How is a "venture capitalist" defined?
|
||||
Back: An investor who provides capital to companies, on behalf of a firm, in exchange for equity.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788328-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What form of capital does a VC typically work in?
|
||||
Back: Cash flow.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788334-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Within a VC firm, what does MD stand for?
|
||||
Back: **M**anaging **d**irector.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788338-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
Within a VC firm, what does GP stand for?
|
||||
Back: **G**eneral **p**artner.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788342-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does a "managing director" refer to?
|
||||
Back: A senior VC, generally responsible for making final investment decisions.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311552-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does a "general partner" refer to?
|
||||
Back: A senior VC, generally responsible for making final investment decisions.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788345-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
A {general partner} is also known as a {managing director}.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788348-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
The {principal/director} role follows the {MD/GP} role in seniority.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788353-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does a "principal" refer to?
|
||||
Back: A VC working their way up to becoming a GP.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788357-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does a "director" refer to?
|
||||
Back: A VC working their way up to becoming an MD.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311558-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
A {principal} is also known as a {director}.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788361-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What types of VCs are grouped under term "deal partner"?
|
||||
Back: GPs and principals.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718878788368-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What distinguishes VCs from angel investors?
|
||||
Back: The former use a pool of investors' money. The latter uses their own money.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311563-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
The {associate} role follows the {principal/director} role in seniority.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311566-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Cloze
|
||||
The {analyst} role follows the {associate} role in seniority.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311572-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
How are analysts and associates typically distinguished?
|
||||
Back: The latter are usually more deal-centric than the former.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311577-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
What role is a recent college graduate likely given at a VC firm?
|
||||
Back: Analyst.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311581-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does an "associate" refer to?
|
||||
Back: An employee usually working directly for one or more deal managers.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311586-->
|
||||
END%%
|
||||
|
||||
%%ANKI
|
||||
Basic
|
||||
With respect to a VC firm, what does an "analyst" refer to?
|
||||
Back: An employee working on general functions for the firm.
|
||||
Reference: Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
||||
<!--ID: 1718879311590-->
|
||||
END%%
|
||||
|
||||
## Bibliography
|
||||
|
||||
* Brad Feld and Jason Mendelson, _Venture Deals_, 3rd ed., n.d.
|
Loading…
Reference in New Issue