Revision 8a57f3b03992351f46c4537fd0d9351592278d2b (click the page title to view the current version)

EDMPoster/Intro

Changes from 8a57f3b03992351f46c4537fd0d9351592278d2b to 9b0d959aea55e085083652864435023cc39f0785
Master is giving positive examples:

```clafer
ExamplePhone1 
ExamplePhone1
   display
      LCD
   GSM
   CPU
   keyboard
```

```clafer
ExamplePhone2 
ExamplePhone2
   display
      OLED
   GSM
   touchscreen
```

```clafer
ExampleTablet1 
ExampleTablet1
   display
      AMOLED
   HSPA
   CPU 4
   touchscreen
```

Master is giving negative examples:

<b>negative</b>

```clafer
ExamplePhone3
   display
      LCD
   GSM
   CPU 4
   keyboard
```

<b>negative</b>

```clafer
ExampleTablet2 
ExampleTablet2
   display
      AMOLED
   HSPA
   CPU 4
   keyboard
```

Luke builds an abstraction:

```clafer
abstract AndroidDevice1
   xor display
      LCD
      OLED
      AMOLED
          [ no keyboard ]
   GSM
   HSPA ?
   CPU 1..4
   xor input 
   xor input
      keyboard
      touchscreen
```

and a specialization:

```clafer
abstract AndroidPhone : AndroidDevice
   [ GSM ] 
   [ GSM ]
   [ # CPU < 4 ]
```

Luke fixes the abstraction, since not all tablets have `GSM`:

```clafer
abstract AndroidDevice
   xor display
      LCD
      OLED
      AMOLED
          [ no keyboard ]
   GSM ?
   HSPA ?
   CPU 1..4
   xor input 
   xor input
      keyboard
      touchscreen
```

Luke validates the abstraction by generating examples and confirming with master:

```clafer
AndroidPhone4 : AndroidPhone
   display
      AMOLED
   GSM
   HSPA
   CPU 2
   input 
   input
      touchscreen
```

Luke discovers new variants and checks whether the positive ones are included and whether negative ones are excluded.

```{.clafer .summary}
```

```{.clafer .ide}
```

End.