Proposition If the ambient category C\mathbf{C} is a topos (such as Sets) and the view VV is inhabited, then the adjunction (1) is monadic. For the case C=Sets\mathbf{C} = Sets this is Johnson, Rosebrugh & Wood 2010, Thm. 12, Cor. 13. Proof The monadicity theorem (here) readily gives that the above adjunction (1) is monadic functor: (-)×V(\text{-})\times V preserves all colimits (cf. universal colimits) hence in particular the relevant coequalizers, and it is conservative by the assumption that VV is inhabited (this is clear by inspection in Sets – which is what JRW10 observe on their p. 13 – for the general case use Johnstone 2002, vol 1, Lem. 1.3.2).

In computer science, originally in database theory, a data structure-type now called (lawful) lenses [Bohannon, Pierce & Vaughan (2006, §3), Foster, Greenwald, Moore, Pierce & Schmitt (2007, §3), but considered under different names already by Oles 1982, 1986 and Hofmann & Pierce 1996] is used to encode data(-base) types SS equipped with a read/write functionality (only) for a specified view-type VV.

Remark (relation to monadic descent) In (algebraic) geometry, the statement of Prop. is known as monadic descent. In this context one would say that: the epimorphism V→*V \to \ast (reflecting that VV is inhabited, necessarily an effective epimorphism given that C\mathbf{C} is assumed to be a topos) is the morphism of effective descent, representing a covering, ◊ V\lozenge_V-modale-structure is descent data on the underlying object in C /V\mathbf{C}_{/V}, the EM-category (C /V) ◊ V\big(\mathbf{C}_{/V}\big)^{\lozenge_V} is the category of descent data along V→*V \to \ast, and so the monadicity theorem C≃(C /V) ◊ V\mathbf{C} \,\simeq\, \big(\mathbf{C}_{/V}\big)^{\lozenge_V} in Prop. states that objects over VV which are equipped with such descent data are equivalent to objects over *\ast, hence “do descend” along V→*V \to \ast.

In particular, “very well-behaved” or “lawful” lenses (see Def. below) – those for which updates of the “view” VV completely overwrite any previous such changes – turn out to equivalently be data base types of product form S=D×VS = D \times V with “view” given by projecting onto the VV-factor. As such, lawful lenses are equivalent to (cf. monads in computer science):

2023515 — Depth of field is a technically sounding term for basically saying what is (and isn't) in focus in a photograph. Given that a photograph aims to ...

Types of video production cameras · 1. DSLR and Mirrorless Cameras · 2. Cinema Cameras · 3. Camcorders · 4. Action Cameras · 5. Smartphone Cameras.

Image

Remark Crucially, associativity of this composition relies on naturality of the diagonals, which is a given in cartesian categories but not in more general monoidal categories. Optics are a sweeping generalization of lenses which overcomes this obstacle.

Proposition (lawful lenses are the costate coalgebras) For C\mathbf{C} a cartesian closed category, the lawful VV-lenses in C\mathbf{C} (Def. ) are equivalently the coalgebras of the VV-CoState comonad, i.e. that induced by the internal hom-adjunction: This is due to O’Connor (2010), O’Connor (2011), for further discussion see Gibbons & Johnson (2012), Section 3.2.

Lawful lenses (as above) are an algebraic structure which axiomatize product projections. The laws govern the ways views and updates relate. These are generalized into Delta lenses, which are more flexible lawful lenses.

Definition appears, under no particular name, in Hofmann & Pierce 1996, p. 12, where it is thought of as providing aspects of object-oriented programming: Here one thinks of SS as a “class” which inherits functionality from the class VV. And indeed, for lawful lenses it follows (see below) that S≃D×VS \simeq D \times V is a “record” which inherits all fields present in VV but may add some more).

Functionallenses

Michael Johnson, Robert Rosebrugh, Unifying Set-Based, Delta-Based and Edit-Based Lenses, CEUR Workshop Proceedings 1571 (2016) [pdf]

Russell O'Connor, Functor is to Lens as Applicative is to Biplate: Introducing Multiplate, contribution to ICFP ‘11: ACM SIGPLAN International Conference on Functional Programming (2011) [arXiv:1103.2841]

Functional lens glasses

and so the monadicity theorem C≃(C /V) ◊ V\mathbf{C} \,\simeq\, \big(\mathbf{C}_{/V}\big)^{\lozenge_V} in Prop. states that objects over VV which are equipped with such descent data are equivalent to objects over *\ast, hence “do descend” along V→*V \to \ast.

For C\mathbf{C} a cartesian closed category, the lawful VV-lenses in C\mathbf{C} (Def. ) are equivalently the coalgebras of the VV-CoState comonad, i.e. that induced by the internal hom-adjunction:

Transducersprogramming

Founded in 1993 as a high-tech manufacturing facility specializing in lighting and audio equipment, Godox has now become a lighting equipment expert and ...

202019 — Click here:point_up_2:to get an answer to your question :writing_hand:formula of focal length in convex lens is.

Aaron Bohannon, Benjamin C. Pierce, Jeffrey A. Vaughan, Relational lenses: a language for updatable views, Proceedings of Principles of Database Systems (PODS) (2006) 338-347 [doi:10.1145/1142351.1142399, pdf]

Martin Hofmann, Benjamin Pierce, p. 12 in: Positive Subtyping, Information and Computation 126 1 (1996) 11-33 [doi:10.1006/inco.1996.0031]

These sorts of lenses are generalized by Spivak 19. For a quick explanation of how these sorts of generalized lenses are of use in systems theory, see Myers20; for a longer explanation, see Chapter 2 of Myers.

Michael Johnson, Robert Rosebrugh, The more legs the merrier: A new composition for symmetric (multi-)lenses, EPTCS 333 (2021) 92-107 [arXiv:2101.10482, doi:10.4204/EPTCS.333.7]

(relation to epistemic logic) Prop. says that the category of ◊ V\lozenge_V-modales among objects in C /V\mathbf{C}_{/V} is equivalent to C\mathbf{C}. This makes good sense when viewing ◊ V\lozenge_V as the possibility-modality, see the discussion of potentiality there.

Optics functionalprogramming

Matthew Di Meglio, The category of asymmetric lenses and its proxy pullbacks, Master’s Thesis, Macquarie University, (2021) [doi:10.25949/20236449.v1]

Michael Johnson, Robert Rosebrugh, and Richard J. Wood, Lenses, fibrations and universal translations Math. Structures Comput. Sci. 22 1 (2012) 25–42 [doi:10.1017/S0960129511000442]

φ(s,u):s→p(s,u)\varphi(s, u) : s \to p(s, u) in SS where p(s,u)=cod(φ(a,u))p(s, u) = cod(\varphi(a, u)) is the Put function. The function φ\varphi must also satisfy three lens laws. When SS and VV are codiscrete categories, delta lenses are equivalent to a lens in Set; see (Johnson-Rosebrugh 2016, Proposition 4).

Lawless lenses, and in particular bi-directional or polymorphic lenses, separate the two directions of view and update so that the laws no longer type-check. These lawless lenses are used to organize bi-directional flow of data, and are generalized into optics in the functional programming literature.

This popular community event is free for all ages and features live music, kids' crafts, fun games and activities, and over 20000 LED lights illuminating ...

An alternate generalization of lawless lenses is put forward in Spivak 19 as the Grothendieck construction of the fiberwise dual of an indexed category. This notion of lawless lens has been adopted in the context of categorical systems theory because they represent a bidirectional stateful computation which describes the way some systems expose and update their internal state. For instance, see Myers, Spivak & Niu or Hedges (2021).

Frank J. Oles, Type algebras, functor categories and block structure, Algebraic methods in semantics (1986) 543–573, Daimi Report No. 156 (1983): [doi:10.7146/dpb.v12i156.7430, pdf]

Frank J. Oles, A category-theoretic approach to the semantics of programming languages, Syracuse University (1982) [pdf]

The Choosing: Directed by Evan Gamble. With Lance Allen, Jesse C. Boyd, Calico Cooper, Adam Fleck. The Church of the Celestial God, a religious cult, ...

Definition (lenses) Given a category (C,1,×)(\mathbf{C}, 1, \times) with finite products, a lens in C\mathbf{C} is: a pair of objects of C\mathbf{C} (“source”) S∈CS \,\in\, \mathbf{C} (“view”) V∈CV \,\in\, \mathbf{C} a pair of morphisms of the form (“view”, “read-out”, “forward operation”) get:S⟶V \mathrm{get} \;\colon\; S \longrightarrow V (“update”, “write”, “backward operation”) put:V×S⟶S. \mathrm{put} \;\colon\; V \times S \longrightarrow S \,. The lens is called well-behaved if this data satisfies: (PutGet) “what has just been written is read out as such”: v:V,s:S⊢get(put(v,s))=v, v \colon V ,\, s \colon S \;\;\;\;\;\; \vdash \;\;\;\;\;\; get\big( put (v,\,s) \big) \;=\; v \,, and (GetPut) “writing what has just been read out means no change”: s:S⊢put(get(s),s)=s s \colon S \;\;\;\;\;\; \vdash \;\;\;\;\;\; put\big( get(s) ,\, s \big) \;=\; s and it is called very well-behaved or lawful if in addition it satisfies: (PutPut) “writing means to over-write previous edits”: v,v′:V,s:S⊢put(v′,put(v,s))=put(v′,s) v,\,v' \colon V ,\; s \colon S \;\;\;\;\;\; \vdash \;\;\;\;\;\; put\Big( v',\, put\big( v,\, s \big) \Big) \;=\; put(v',\, s)

Proposition (lawful lenses are possibility modales) Lawful lenses in C\mathbf{C} with view VV (Def. ) are equivalently the modules (modales) of the left base change monad on the slice category over VV (the VV-possibility-modality ◊ V\lozenge_V): (1) where view:S→Vview \,\colon\, S \to V is identified with the slicing morphism, get:V×S→Sget \,\colon\, V \times S \to S is identified with the module action ◊ V(S)→S\lozenge_V(S) \to S. (Johnson, Rosebrugh & Wood 2010, Prop. 9) Proof By direct unwinding of the definitions:

Thus, lawful lenses may be thought of as encoding read/write functionality (only) at a certain address in a data base (compare the RAM-model given by the state monad which encodes read/write of the entire data base type at once).

Michael Johnson, Robert Rosebrugh, Richard Wood, Algebras and Update Strategies, Journal of Universal Computer Science 16 (2010) [doi:10.3217/jucs-016-05-0729]

(lawful lenses are possibility modales) Lawful lenses in C\mathbf{C} with view VV (Def. ) are equivalently the modules (modales) of the left base change monad on the slice category over VV (the VV-possibility-modality ◊ V\lozenge_V):

A morphism between directed containers is another kind of generalised lens satisfying laws called update-update lenses; see (Ahman-Uustalu 2017, Section 5). These are equivalent to cofunctors.

Ein Forum für die Wissenschaft seit 1798.

There are many generalizations of lenses which have been proposed, however they can be broadly classified into those which satisfy analogues of the lens laws, and those without any axioms or laws.

In this sense, lawless lenses are applications of two mathematical frameworks which are interesting in their own right: fibrations and optics (thus Tambara modules).

the epimorphism V→*V \to \ast (reflecting that VV is inhabited, necessarily an effective epimorphism given that C\mathbf{C} is assumed to be a topos) is the morphism of effective descent, representing a covering,

Welcome to AI Hoop Highlights, your ultimate destination for the most electrifying and technologically advanced basketball highlights on the web!

J. N. Foster, M. B. Greenwald, J. T. Moore, Benjamin C. Pierce, A. Schmitt, Combinators for bidirectional tree transformations: A linguistic approach to the view-update problem, ACM Transactions on Programming Languages and Systems 29 3 (2007) 17-es [doi:x10.1145/1232420.1232424]

The observation that lenses are equivalently nothing but the coalgebras of the costate comonad (cf. monads in computer science) is due to:

Bryce Clarke, Derek Elkins, Jeremy Gibbons, Fosco Loregian, Bartosz Milewski, Emily Pillmore, Mario Román, Profunctor optics, a categorical update, (arXiv:2001.07488)

If the ambient category C\mathbf{C} is a topos (such as Sets) and the view VV is inhabited, then the adjunction (1) is monadic.

Crucially, associativity of this composition relies on naturality of the diagonals, which is a given in cartesian categories but not in more general monoidal categories. Optics are a sweeping generalization of lenses which overcomes this obstacle.

Remark (relation to epistemic logic) Prop. says that the category of ◊ V\lozenge_V-modales among objects in C /V\mathbf{C}_{/V} is equivalent to C\mathbf{C}. This makes good sense when viewing ◊ V\lozenge_V as the possibility-modality, see the discussion of potentiality there.

Delta lenses are a generalization which does satisfy laws. Here we have categories SS and VV called the source and view, together with a Get functor g:S→Vg : S \to V and a function φ:S 0× V 0V 1→S 1\varphi \colon S_{0} \times_{V_{0}} V_{1} \to S_{1} which takes a pair (s∈S,u:gs→v∈V)(s \in S, u : g s \to v \in V) to a morphism

Lenses (regardless of their lawfulness) organize in a category Lens(C)\mathrm{Lens}(\mathbf C) whose objects are the same as C\mathbf C and whose morphisms X→YX \to Y are lenses with states XX and views YY. The identity lens is given by (1 X,π 1):X→X(1_X, \pi_1) :X \to X. Composition of (get 1,put 1):X→Y(\mathrm{get}_1, \mathrm{put}_{1}):X \to Y and (get 2,put 2):Y→Z(\mathrm{get}_2, \mathrm{put}_{2}):Y \to Z is given by:

(relation to monadic descent) In (algebraic) geometry, the statement of Prop. is known as monadic descent. In this context one would say that:

Sep 8, 2023 — Gun Interactive has shared the patch notes for the next Texas Chain Saw Massacre update.

The monadicity theorem (here) readily gives that the above adjunction (1) is monadic functor: (-)×V(\text{-})\times V preserves all colimits (cf. universal colimits) hence in particular the relevant coequalizers, and it is conservative by the assumption that VV is inhabited (this is clear by inspection in Sets – which is what JRW10 observe on their p. 13 – for the general case use Johnstone 2002, vol 1, Lem. 1.3.2).

2 megapixel | IP Camera | Amcrest technology.