Created
August 11, 2022 14:42
-
-
Save rntz/739bfcc2011cd29956dfc44a700da7c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chart | |
(A,A') -> (B,B') | |
lens | |
get : A -> B | |
put : A × B' -> A' | |
chart | |
get : A -> B | |
weird : A × A' -> B' | |
A' = ΔA | |
B' = ΔB | |
chart-as-incrementalization | |
f: A → B | |
f': A × ΔA → ΔB | |
RA ⊆ ΔA × A × A | |
RA(dx, x, y) means "dx changes x into y" | |
f' is a derivative of f iff: | |
when RA(dx, x, y) | |
then RB(f'(x,dx), f x, f y) | |
ie: f' tells me how (f x) changes as x changes | |
lens | |
f: A → B | |
f': A × ΔB → ΔA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment