Formalization Flashcards

1
Q

Statements on requirements serve

A

the professional communication between project participants
* the documentation
* for analysis by
− People
− Machines

examples
The system should respond as soon as possible.
* Operating errors are largely excluded.
* The system is self-explanatory.
* The system is highly reliable.
* All processes in the system are traceable.
* The system is inexpensive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Formalization - What is that?

A

Formulation and Representation of content in a form independent of individual
(subjective) interpretation and based on a given system of definitions (theory)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Formulation of Statements

A

Formulation of Statements on Properties:
* Subjective: No explicit model/description system
* Objective: Explicit model/description system
* Empirical: No mathematical prediction/explanatory model
– Observations/Measurements
* Formalized: Mathematical prediction/explanatory model
* Partially Combinable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The Tradeoff: Precision vs. Comprehensibility

A

Precision (“objective”):
How precise are Requirements
formulated
→ Ultimately requires formalization

Comprehensibility (“subjective”):
How good and simple are
requirements to understand
→ Depending on target group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Empirically Formulated Statements on Properties

A

Empirically Formulated Statements on Properties
→ Capturing the statements by observations of systems and their environment.
→ Verification by experiments and measurements possible.
→ Metrics!
Examples:
* A system error occurs only once in 10 hours for a given operating situation.
* With 10 entries from a certain sample 9 usable answers are generated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Formulation of Statements

A

Informal: Syntax and Semantics not formally defined
* Example: Natural language, sketches, informal diagrams, etc.
Semi-formal: Syntax formally defined
* Example: UML, SysML, Matlab Simulink
Formal: Syntax and Semantics formally defined
* Example: Propositional and predicate logic, temporal logic, Petri nets, 𝜆-calculus, programming
languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Formalization versus Modeling

A

Formalization Requires:
* A formal description language
– A set of description/modeling concepts
– Based on a specific system view

Models Require:
Implicit model building and is therefore
– An abstraction
– Only as correct as observations of reality
correspond to those on the model (validity
of a model)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Model versus Reality

A

A (formal) model is always an abstraction of reality
→ Formalization and modeling create an independent view of systems
→ Formalization only allows the formulation of certain properties that can be spoken about in the
model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Linear Time Temporal Logic (LTL)

A

Streams of states are sequentially ordered. Properties of streams can be described with
predicates. Linear Time Temporal Logic (LTL) is a special method for formulating
predicates over infinite state streams.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Concept: Next-Operator

A

Goal: Description of at the next time step valid properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Concept: Eventually-Operator

A

Goal: Description of in the future valid properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Concept: Always-Operator

A

Goal: Description of always valid properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Concept: Until-Operator

A

Goal: Binary Operator that describes relations between
two properties followed by each other

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Most of the specifications (specification templetes)correspond to the following categories:

A

Existence: Certain event must occur at least once
* Absence: Certain event must not occur
* Precedence: Event Y comes after event X
* Response: Event Y is the response to event X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Advantages and Disadvantages of Formalization

A

Pro/Strengths:
* Precise, clear description
* Automation
– Model testing
– Test case generation
– Program generation
* Clear terms for
– Consistency
– Completeness
* Rules for derivation
* Traceability
* Verifiability with formal proof

Contra/Weaknesses:
* Limited expressiveness
– Abstraction bound to a purpose
* Poor intelligibility
– Fear of contact
* If unnecessary unintended precision
* High initial outlay
– Costs for training
– Experience
* Modification may be difficult
* Poor scalability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How can we show that a specific functional requirement is fulfilled?(ML)

A

Test for performance metrics (90% accuracy)
* Test on the collected dataset might be problematic
* Need to avoid overfitting on training data with validation techniques (validation set, cross
validation)

Machine Learning doesn’t have a specification

17
Q

How can we show that a specific non-functional requirement is fulfilled? (ML)

A

ow can we show that a specific non-functional requirement is fulfilled?
* Runtime performance in Deep Learning influenced by model size
(trade off between requirements → slow response means high accuracy)
* Training != Using