lean-path: Angefangenes liegt auf dem Pfad (SPEC §9, D61)
Eine Zugabe (`+`) fällt aus dem günstigsten Pfad — außer sie ist realisiert und noch nicht erledigt (`[~]`/`[/]`). Angefangene Arbeit ist die offene Front, und seit D46 zeigt der Pfad genau die; bisher führte der Von-Station-zu-Station-Knopf nie dorthin, wo gearbeitet wird. Erledigte Zugaben bleiben draußen: dort ist nichts mehr zu tun, und was darunter offen blieb, ist mit ihnen zusammen entbehrlich (§3). Dabei die fehlende Hälfte von D46 gefunden: SPEC §9 sagt seit jeher „eine bereits realisierte Alternative gewinnt", umgesetzt war das aber nur über die Kosten — und die sind allein bei `[x]`/`[^]` null. Ein `[~]`-Zweig verlor damit gegen eine unangetastete billigere, obwohl die XOR-Regel gerade ihn als die realisierte Alternative ausweist. `chosenPool()` schränkt die Wahlmenge auf die realisierten ein; unter mehreren entscheiden wieder die Kosten. Nebengewinn: eine entschiedene Gruppe ist keine freie Variable mehr und verkleinert die Suche (D42). 10 neue Tests; Gegenprobe geführt (jede Regel einzeln herausgenommen lässt genau die nach ihr benannten Zusicherungen fallen). Der mitgelieferte Plan ändert sich nicht — er hat keine angefangene Zugabe. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
3018db9f61
commit
36b78efa53
@@ -43,6 +43,7 @@
|
||||
- [^] #ed.path: Cheapest path (M)
|
||||
- [^] #ed.path.cost: Cost model, missing size counts as M (S)
|
||||
- [^] #ed.path.front: Only the open front: what is done costs nothing (S) %% see D46
|
||||
- [x] #ed.path.started: Started work is on the path, extras included (S) %% see D61
|
||||
- [^] #ed.path.line: Metro-map line through the leaves (S)
|
||||
- [^] #ed.path.step: Step from station to station, one button (S) %% see D47
|
||||
- [^] #ed.closure: Count the whole dependency closure (M)
|
||||
@@ -385,6 +386,11 @@
|
||||
what the plan would have cost from scratch. An alternative already built
|
||||
therefore wins its group even against a cheaper untouched one.
|
||||
|
||||
#ed.path.started
|
||||
An extra (`+`) joins the path while it is being worked on, and a started
|
||||
alternative wins its group. Optionality says the plan can do without it;
|
||||
the status says work has begun, and the front is made of exactly that.
|
||||
|
||||
#ed.path.line
|
||||
A dashed curve threads through the open leaves of the path, with a pale
|
||||
station dot at each. Borrowed from metro maps: the dot is large and faint so
|
||||
|
||||
Reference in New Issue
Block a user