welcome and introduction - ptolemy project · welcome and introduction edward a. lee icyphy mini...

21
University of California at Berkeley Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School

Upload: others

Post on 27-Sep-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

UniversityofCaliforniaatBerkeley

WelcomeandIntroduction

EdwardA.Lee

iCyPhyMiniWorkshop,Berkeley,Feb.14,2019

Professor of the Graduate School

Page 2: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

iCyPhyIndustrialCyber-PhysicalSystemsCenter

Mission:

Tomakeadvancedsoftwareandnetworkingtechnologyusableinsafety-andmission-criticalindustrialapplications.

2 PrabalDutta,EdwardLee,AlbertoSangionvanni-Vincetelli,SanjitSeshia

Page 3: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

ActiveProjectPartners

•  Avast•  Camozzi•  Denso•  Ford•  Siemens•  Toyota

3

Page 4: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

FocusonModels

4

Amodelisanydescriptionofasystemthatisnotthething-in-itself.(dasDingansichinKantianphilosophy).

Page 5: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

Challenges

•  Confusingthemapandtheterritory•  Choosingamodelingparadigm•  Understandingthepurposeofthemodel

5

Solomon Wolf Golomb

Lee,Berkeley 5 Photo by Rusi Mchedlishvili

Youwillneverstrikeoilbydrillingthroughthemap!

Page 6: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

Modelsvs.Reality

Inthisexample,themodelinguniverseiscalculusandNewton’slaws.Faithfulnessishowwellthemodelanditstargetmatch

6

Themodel

Thetarget(thethingbeingmodeled).

Page 7: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

AModel

7 ImagebyDominiqueToussaint,GNUFreeDocumentationLicense,Version1.2orlater.

Page 8: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

APhysicalRealization

8

Page 9: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

•  Inscience,thevalueofamodelliesinhowwellitsbehaviormatchesthatofthephysicalsystem.

•  Inengineering,thevalueofthephysicalsystemliesinhowwellitsbehaviormatchesthatofthemodel.

Ascientistasks,“CanImakeamodelforthisthing?”Anengineerasks,“CanImakeathingforthismodel?”

9

TheValueofModels

Page 10: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

ModelFaithfulness

•  Toascientist,themodelisflawed.•  Toanengineer,therealizationisflawed.

Engineeringismoreaboutmakingthethingmatchthemodelratherthantheotherwayaround.

10

Page 11: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

ConsiderChipDesign

Apieceofsiliconthatdoesn’tbehavelikethemodelisjustbeachsand.

11

IntelHaswell,eachwith1.4billiontransistors

Page 12: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

ModelsandModelsandThings

12

Models

Things

Science Engineering

Assurance

Hope

Models

Abstraction Refinement

Assurance

Page 13: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

UsefulModelsandUsefulThings

“Essentially,allmodelsarewrong,butsomeareuseful.”

Box,G.E.P.andN.R.Draper,1987:EmpiricalModel-BuildingandResponseSurfaces.WileySeriesinProbabilityandStatistics,Wiley.

“Essentially,allsystemimplementations

arewrong,butsomeareuseful.”LeeandSirjani,“Whatgoodaremodels,”FACS2018.

13

Page 14: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

ChangingtheQuestion

Isthequestionwhetherourmodelsdescribethethinginitself(faithfully)?OrIsthequestionwhetherwecanbuildathing-in-itselfwherebehaviormatchesthatofourmodels(withhighprobability)?

14

Page 15: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

VerificationandValidation

PerBoehm:•  AmIbuildingtheproductright?(verification)•  AmIbuildingtherightproduct?(validation)

15

Page 16: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

VerificationandValidation

16

Model

Thing

Yourdesign

Whatyouwant

Model Requirements

Validation:Isthis

faithful?

Verification:Isthisasoundabstraction?

Page 17: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

CyberPhysicalSystems

17

Whatkindsofmodelsshouldweuse?

Page 18: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

SoftwareasaModel

18 Lee,Berkeley

PhysicalSystem Model

Single-threadedimperativeprogramsaredeterministicmodels

Page 19: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

PhysicsasaModel

PhysicalSystem Model

Signal Signal

DifferentialEquationsaredeterministicmodels

Lee,Berkeley 19

Image:WikimediaCommons

Page 20: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

Signal Signal

20 Image:WikimediaCommonsLee,Berkeley

AmajorproblemforCPS:combinationsofdeterministicmodelsarenondeterministic

Page 21: Welcome and Introduction - Ptolemy Project · Welcome and Introduction Edward A. Lee iCyPhy Mini Workshop, Berkeley, Feb. 14, 2019 Professor of the Graduate School . iCyPhy Industrial

OurStrategy

Findengineeringmodelsforwhichwecan:•  buildfaithfulrealizations,•  verifypropertieswecareabout,and•  designinterestingandusefulsystems.

21