{"title": "Document specimen",
 "producer": ["tools/Drivers/DocSpecimen.lean", "tools/view/v -d"],
 "format": "effect4-document/1",
 "body":
 [{"line":
   [{"text": "A paragraph of running text, with "},
    {"code": "inline code"},
    {"text": ", a reference to "},
    {"ref": "tables", "label": "the table part"},
    {"text": ", and a status: "},
    {"status": "proved"},
    {"text":
     ". A line long enough to show the measure of a paragraph at the page's width. "},
    {"text":
     "Its length can be judged against the type's size and the leading between lines."}],
   "kind": "para"},
  {"title": "Every status",
   "kind": "part",
   "key": "statuses",
   "body":
   [{"line":
     [{"text":
       "Each mark is a shape, with no hue (decisions row 354, point 2):"}],
     "kind": "para"},
    {"line":
     [{"status": "proved"},
      {"text": " "},
      {"status": "modulo"},
      {"text": " "},
      {"status": "goal"},
      {"text": " "},
      {"status": "open"},
      {"text": " "},
      {"status": "refuted"},
      {"text": " "},
      {"status": "absent"},
      {"text": " "},
      {"status": "assumed"},
      {"text": " "},
      {"status": "missing"},
      {"text": " "}],
     "kind": "para"},
    {"rows":
     [{"line": [{"status": "proved"}, {"text": " filled"}], "label": "proved"},
      {"line": [{"status": "modulo"}, {"text": " half"}], "label": "modulo"},
      {"line": [{"status": "goal"}, {"text": " hollow"}], "label": "goal"},
      {"line": [{"status": "open"}, {"text": " dashed"}], "label": "open"},
      {"line": [{"status": "refuted"}, {"text": " the cross"}],
       "label": "refuted"}],
     "kind": "fields"}]},
  {"title": "Every block kind",
   "kind": "part",
   "key": "blocks",
   "body":
   [{"line": [{"text": "Fields, a list, and code in three languages."}],
     "kind": "para"},
    {"rows":
     [{"line": [{"code": "reactive-scheduling"}], "label": "concept"},
      {"line": [{"ref": "statuses", "label": "random-descent"}],
       "label": "claim"},
      {"line": [{"text": "and a value that runs on for a while to wrap"}],
       "label": "a field with a long label that wraps"}],
     "kind": "fields"},
    {"lines":
     [[{"text": "a first item"}],
      [{"text": "a second item, with "}, {"code": "code"}],
      [{"text": "a third item, with a status "}, {"status": "modulo"}]],
     "kind": "items"},
    {"language": "lean",
     "kind": "code",
     "body":
     "theorem complete_unique (eqv : Equivalence R) (bis : Bisim step R)\n    (dia : Diamond step R) : R t1 t2 ∧ c1.length = c2.length := by\n  exact ⟨hR, hl⟩"},
    {"language": "mermaid",
     "kind": "code",
     "body": "flowchart LR\n  A[edit] --> B[build]\n  B --> C[look]"},
    {"language": "text",
     "kind": "code",
     "body": "a plain text block\n  with its indentation kept"}]},
  {"title": "A wide table",
   "kind": "part",
   "key": "tables",
   "body":
   [{"rows":
     [[[{"code": "random-descent"}],
       [{"text": "fundamentalProperty"}],
       [{"status": "proved"}],
       [{"code": "Effect4.Machine.Descent.complete_unique"}],
       [{"text": "a long cell that wraps"}]],
      [[{"code": "keys-once"}],
       [{"text": "preservation"}],
       [{"status": "proved"}],
       [{"code": "Effect4.Run.session_keys_once"}],
       [{"text": "—"}]],
      [[{"code": "schedule-independent"}],
       [{"text": "fundamentalProperty"}],
       [{"status": "absent"}],
       [{"text": "—"}],
       [{"ref": "statuses", "label": "see the statuses"}]]],
     "kind": "table",
     "headers":
     ["claim", "role", "status", "pointer", "a long column header"]}]},
  {"title": "A figure",
   "kind": "part",
   "key": "figure",
   "body":
   [{"line":
     [{"text":
       "A graph as data, drawn by the view's layout. A node links to the part it opens, a goal is lit, "},
      {"text": "and the figure is also given in words."}],
     "kind": "para"},
    {"nodes":
     [{"status": "modulo",
       "ref": "statuses",
       "label": "decision_preserves",
       "key": "claim",
       "detail": ""},
      {"status": "modulo",
       "label": "loop_preserves",
       "key": "loop",
       "detail": ""},
      {"status": "modulo",
       "label": "deliver_preserves",
       "key": "deliver",
       "detail": "2 steps"},
      {"status": "goal",
       "ref": "tables",
       "label": "countdown_parks",
       "key": "goal",
       "detail": ""},
      {"status": "proved",
       "label": "frame_typing",
       "key": "base",
       "detail": ""}],
     "kind": "graph",
     "key": "fig:specimen",
     "edges":
     [["claim", "loop"],
      ["claim", "deliver"],
      ["loop", "goal"],
      ["deliver", "goal"],
      ["deliver", "base"]],
     "caption":
     "A claim proved modulo one goal, through two steps; an arrow goes to a node the proof reaches first."}]},
  {"title": "Nesting, level 2",
   "kind": "part",
   "key": "depth",
   "body":
   [{"line": [{"text": "Each part's heading level is its depth."}],
     "kind": "para"},
    {"title": "Level 3",
     "kind": "part",
     "key": "depth-3",
     "body":
     [{"title": "Level 4",
       "kind": "part",
       "key": "depth-4",
       "body":
       [{"title": "Level 5",
         "kind": "part",
         "key": "depth-5",
         "body":
         [{"title": "Level 6",
           "kind": "part",
           "key": "depth-6",
           "body":
           [{"line": [{"text": "The deepest heading."}],
             "kind": "para"}]}]}]}]}]}]}
