WORDS, GRAPHS, CODE A unified model Andy Shu v1.0 MMXVIII HKBU - - PowerPoint PPT Presentation

words graphs code
SMART_READER_LITE
LIVE PREVIEW

WORDS, GRAPHS, CODE A unified model Andy Shu v1.0 MMXVIII HKBU - - PowerPoint PPT Presentation

WORDS, GRAPHS, CODE A unified model Andy Shu v1.0 MMXVIII HKBU ENTITIES, SYMBOLS, BINDINGS Building blocks of symbolic systems ATOMIC primitive, elementary, assumed, axiomatic, self- evident, self-explained, taken-for-granted


slide-1
SLIDE 1

WORDS, GRAPHS, CODE

A unified model

Andy Shu v1.0 MMXVIII HKBU

slide-2
SLIDE 2

Building blocks of symbolic systems

ENTITIES, SYMBOLS, BINDINGS

slide-3
SLIDE 3

“ATOMIC”

primitive, elementary, assumed, axiomatic, self- evident, self-explained, taken-for-granted…

slide-4
SLIDE 4

ENTITIES

Physical objects and concepts

slide-5
SLIDE 5

(These are symbols, not entities themselves.)

slide-6
SLIDE 6

SYMBOLS

(let’s say symbols are just any marks that may mean anything)

slide-7
SLIDE 7

WRITTEN SYMBOLS

➤ Words ➤ Punctuations

slide-8
SLIDE 8

EXAMPLE OF GRAPHIC SYMBOLS

➤ Positions ➤ Sizes ➤ Shapes ➤ Colours ➤ Established symbols ➤ Words (written symbols)

slide-9
SLIDE 9

SYMBOLS IN A GRAPH

25 50 75 100 April May June July

Position changes Hue changes Size changes

slide-10
SLIDE 10

COLOUR MODELS

Colour is not “atomic”: it can be separated into parts

➤ Biological model ➤ RGB model ➤ HSL model

slide-11
SLIDE 11

ESTABLISHED SYMBOLS

slide-12
SLIDE 12

SYMBOLS IN PROGRAMMINGS

➤ Variables (for data) ➤ Functions (for computation)

slide-13
SLIDE 13

BINDINGS

Connecting entities with symbols

slide-14
SLIDE 14

“apple” “malum” “蘋果” “林檎”

Binding1 Binding2 Binding3 Binding4

slide-15
SLIDE 15

“NAME”

A name is a symbol bound to an entity

slide-16
SLIDE 16

COMPOSITION

Composition groups multiple symbol into an entity, and name the entity with a symbol

slide-17
SLIDE 17

EXAMPLES OF SYMBOLIC COMPOSITION

➤ “Association football, more commonly known as

football or soccer, is a team sport played between two teams of eleven players with a spherical ball.” (Wikipedia) const average = array => array.reduce( (a, b) => a + b ) / array.length

slide-18
SLIDE 18

ALIAS

Binding multiple symbols to one entity

slide-19
SLIDE 19

“SYSTEM”

slide-20
SLIDE 20

THE IDEA OF “SYSTEMS”

➤ A system is structured: ➤ 1. It has parts; ➤ 2. Connections between the parts are significant. ➤ Systems often interface with other systems: Input/Output ➤ Systems may contain sub-systems

slide-21
SLIDE 21

“SYMBOLIC SYSTEM”

A symbolic system is a system whose parts are symbols

slide-22
SLIDE 22

SYMBOLIC ENGINEERING

Problem field Symbolic System Audience

Primitive Primitive Primitive Primitive Primitive Symbol Symbol Symbol Symbol Entity Entity (name) (name) Symbol Entity (name) Symbol Symbol (composition) (composition) (alias) (composition) analysis synthesis

slide-23
SLIDE 23

WHY USE SYMBOLS?

slide-24
SLIDE 24

BENEFITS OF SYMBOLS

➤ Easy to transfer ➤ Cheap duplication ➤ Bend physical laws ➤ What-ifs ➤ Arbitrary rules can be set up

slide-25
SLIDE 25

SYMBOLIC SYNTHESIS

Composing symbols

slide-26
SLIDE 26

CSV: CALCULATING THE AVERAGE AGE

name, age John, 23 Mary, 44 Justin, 67 Lucy, 32 row newline (\n) column comma (,) index cell data (age) summation adding average characters

slide-27
SLIDE 27

GENERAL PROCEDURE OF SYMBOLIC SYNTHESIS

Procedure Writing Graphing Coding

  • 1. What are the

primitives? What does my audience already know? What visual patterns can my readers already recognise? What are provided by the standard library and host environment?

  • 2. What are the

entities to represent? What do I want to write about? What do I want to show? What do I want to implement?

  • 3. What to optimise

for the system? Brief? Eye-grabbing? Memorable? Fast? Short? Maintainable?

  • 4. Start with

primitives or entities? Combine primitives,

  • r decompose entities (or names thereof)
  • 5. What intermediate

symbols are the best choices? Work out the connections

slide-28
SLIDE 28

THE UGLY DUCKLING THEOREM (SATOSI WATANABE, 1969)

➤ For complex entities, any grouping is arbitrary and equally

valid, unless criteria are in force

slide-29
SLIDE 29

WHICH FIELD DOES PROGRAMMING BELONG?

Writing Graphing Programming Electronic Enginering Mechanical Engineering

Engineering Arts Symbolic Physical

slide-30
SLIDE 30

REALLY, ANY GROUPING CAN BE JUSTIFIED

Writing Graphing Programming Electronic Enginering Mechanical Engineering

“Skills” Literary Static Dynamic

slide-31
SLIDE 31

CAVEATS

➤ Entities need to be “complex”, i.e. feature rich ➤ You can’t really group (1, 1, 1, 1, 1, 2, 2, 2) ➤ If some criteria are in force (some groupings are favoured over

  • thers), by definition some groupings are superior
slide-32
SLIDE 32

ALL SYMBOLIC STRUCTURES ARE POSSIBLE

Writing Graphing Programming Electronic Enginering Mechanical Engineering Primitives

The alphabetical?

Symbolic System

The electronic? A-lot-of-drawing? ????

slide-33
SLIDE 33

SYMBOLIC ANALYSIS

Decomposing symbols

slide-34
SLIDE 34

SO, WHAT EXACTLY IS BITCOIN?

slide-35
SLIDE 35

Bitcoin cryptographic currency cryptographic currency more primitive token value work proof SHA256 Length of block chain block chain proof-of-work digital signature primitive primitive … … … primitive

slide-36
SLIDE 36

GENERAL PROCEDURE OF SYMBOLIC ANALYSIS

Procedure Writing Graphing Coding

  • 1. What is the symbol

to investigate? A term? A graph? A function?

  • 2. Is the symbol

primitive? Do I know this symbol already? Do I know what this graph says? Do I know what this function do?

  • 3. If not primitive,

how is the symbol composed? How is the symbol defined in terms of others

What’s components of this graph?

What functions does this function call?

  • 4. Repeat 2-3 until all

symbols are primitives Keep decomposing symbols

slide-37
SLIDE 37

SYNTHESIS VS. ANALYSIS IS ARBITRARY

slide-38
SLIDE 38

ALL SYSTEMS ARE EQUAL; SOME SYSTEMS ARE MORE EQUAL…

slide-39
SLIDE 39

CRITERIA OF GOOD SYMBOLIC SYSTEMS

➤ Consequential criteria ➤ Pragmatic ➤ Darwinian ➤ Formal criteria ➤ Explicit ➤ Bijective ➤ Minimal ➤ Aesthetic The lists are neither exhaustive nor mutually exclusive ➤ Contextual criteria ➤ Empirical ➤ Scientific

slide-40
SLIDE 40

THE EXPLICIT CRITERION

➤ Primitives, compositions, and new symbols are expressed

rather than implied

➤ Declaration of Independence of the Thirteen Colonies ➤ We hold these truths to be self-evident, that all men are

created equal…

➤ Explicitness depends on the audience

slide-41
SLIDE 41

RESULT OF AN IMAGINARY ELECTION IN US

52% 48%

Democrat Republican

slide-42
SLIDE 42

THIS IS AN INFINITE LOOP IN PYTHON

should_continue = true while should_continue: do_work() if work_finished(): shoud_continue = false

slide-43
SLIDE 43

THE BIJECTIVE CRITERION

➤ Each entity has one and only one name ➤ Each name refers to one and only one entity ➤ No alias or synonyms (e.g. liberty vs. freedom) ➤ No unbound names (symbols that don’t mean anything) ➤ No anonymous entities ➤ Bijective written works could be drys

slide-44
SLIDE 44

Similar things should look similar; Different things should look different.

(or, in Classical Chinese: 同同異異)

CENTRAL DOGMA OF VISUAL DESIGN

slide-45
SLIDE 45

WHY DOES THIS LAYOUT LOOK OFF?

We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness. ––That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, ––That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.

slide-46
SLIDE 46

THE MINIMAL CRITERION

➤ Use as few symbols as possible to achieve the desired effects ➤ “Occam’s razor” ➤ “If it is possible to cut a word out, always cut it out.” Politics and the English Language, George Orwell ➤ “Enter late, exit early” William Goldman

slide-47
SLIDE 47

MINIMALISM IS A PROGRAMMING GENRE

slide-48
SLIDE 48

THE AESTHETIC CRITERION

➤ “It simply looks good” ➤ Emotional / personal / not-explicit-at-all

slide-49
SLIDE 49

THE EMPIRICAL CRITERION

➤ How strongly the system relates to observable things

entity entity entity entity symbol symbol symbol entity entity symbol symbol symbol symbol symbol symbol symbol symbol Symbolic realm Physical realm

slide-50
SLIDE 50

SCIENTIFIC CRITERION

➤ A scientific symbolic systems makes verifiable predictions

slide-51
SLIDE 51

THE PRAGMATIC CRITERION

➤ The system is somehow “useful” or “helpful” ➤ Not necessarily the most explicit ➤ Laws vs public understanding of the law ➤ Not necessarily the minimal ➤ “

A monad is just a monoid in the category of endofunctors, what's the problem?”

➤ Not necessarily the most “correct” ➤ Aristotelian / Newtonian / Einsteinian mechanics ➤ Remember the ugly duckling theorem

slide-52
SLIDE 52

A DARWINIAN SYMBOLIC SYSTEM

➤ A Darwinian Symbolic system is one that is designed to

survive and be reproduced (by humans or machines)

➤ Religions/ideologies (esp. the proselytising ones) ➤ New reports ➤ Virus (biological and computer)

slide-53
SLIDE 53

WORDS, GRAPHS, CODE MATHS

A symbolic model

slide-54
SLIDE 54

MATHEMATICAL NOTATION IS CONFUSING

slide-55
SLIDE 55

“A CAMEL IS A HORSE DESIGNED BY A COMMITTEE”

slide-56
SLIDE 56

MATHEMATICAL NOTATION WAS DESIGNED
 BY A COMMITTEE…

LIVING CENTURIES AWAY, WHO DON’T KNOW EACH OTHER, WHO WERE DESIGNING FOR THEMSELVES

slide-57
SLIDE 57

INCONSISTENT (NOT BIJECTIVE, NOR EXPLICIT)

➤ abc(d + f) is a × b × c × (d + f) ➤ sin(d + f) is “sine” function applied to (d + f) ➤ xdx is x × “differential of x”, but πd is π × d ➤ sin2(x) is [sin(x)]2 ➤ sin-1(x) is arcsin(x) ➤ (or vice versa?)

slide-58
SLIDE 58

WHAT TO DO WITH THE SYMBOLIC HAZARD IN MATHEMATICS?

➤ The Feymann approach ➤ The von Neumann approach

slide-59
SLIDE 59

TO ME, "SIN F" LOOKED LIKE S TIMES I TIMES N TIMES F! SO I INVENTED ANOTHER SYMBOL…

Richard Feynman

slide-60
SLIDE 60

FEYMANN’S SYMBOLS (ARTIST’S IMPRESSION)

slide-61
SLIDE 61

“IN MATHEMATICS YOU DON'T UNDERSTAND

  • THINGS. YOU

JUST GET USED TO THEM”

John von Neumann

slide-62
SLIDE 62

EXPANDING YOUR MATHEMATICAL PRIMITIVES…

cost function partial differentiation learning rate … hypothesis assignment vector … … minus primitive

slide-63
SLIDE 63

SUMMING UP

slide-64
SLIDE 64

Entity Entity Entity words Audience (Coding) variables functions Entities Symbols (Human / Compiler) (Graphing) positions shapes colours (Writing) Entity Primitives Primitives Primitives Primitives (Physical / Conceptual) (the “media”) Entity naming analysis/
 synthesis

slide-65
SLIDE 65

ALL WAYS TO SYMBOLISE ARE EQUAL

Criteria

slide-66
SLIDE 66

REFERENCES

slide-67
SLIDE 67

FURTHER READING

➤ Growing a Language, Guy Steele ➤ Structure and Interpretation of Computer

Programs, Harold Abelson & Gerald Jay Sussman

➤ The Shortest History of European, John Hirst ➤ Thinking in Systems, Donella H. Meadows ➤ World-Systems Analysis, Immanuel Wallerstein ➤ Thinking and Deciding, Jonathan Baron

slide-68
SLIDE 68

IMAGE SOURCES

➤ Von Neuman: https://www.nytimes.com/2012/05/06/books/review/turings-cathedral-by-george-

dyson.html

➤ Physical apple: http://pngimg.com/download/12405 ➤ Imaginary Apple: https://commons.wikimedia.org/wiki/File:Apple_logo_black.svg ➤ The ugly duckling cartoon: https://commons.wikimedia.org/wiki/File:A_Corny_Concerto_(2).png ➤ The “Camel”: https://pixabay.com/en/alpaca-head-animal-fluffy-furry-1668519/ ➤ Samuel Johnson by Joshua Reynolds: https://en.wikipedia.org/wiki/

File:Samuel_Johnson_by_Joshua_Reynolds_2.png

➤ Feymann’s triangular functions: https://tex.stackexchange.com/questions/274463/feynman-trig-

notation-creating-custom-characters

➤ Gradient descent formulae: https://hackernoon.com/gradient-descent-aynk-7cbe95a778da ➤ Donkey and elephant: https://www.infoplease.com/history-and-government/elections/democratic-

donkey-and-republican-elephant

➤ Bismillah: https://en.wikipedia.org/wiki/File:Bismillah.svg ➤ Flat map: https://en.wikipedia.org/wiki/File:Orlando-Ferguson-flat-earth-map_edit.jpg

slide-69
SLIDE 69

MAY THE SYMBOLS BE WITH YOU

andy@blaesus.com