File size: 2,549 Bytes
0bc2d02
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://fractal.json/schema/v1",
  "title": "Fractal JSON Schema",
  "description": "Self-similar hierarchical data structure optimized for recursive processing",
  "definitions": {
    "symbolic_marker": {
      "type": "string",
      "enum": ["🜏", "∴", "⇌", "⧖", "☍"],
      "description": "Recursive pattern markers for compression and interpretability"
    },
    "fractal_node": {
      "type": "object",
      "properties": {
        "⧖depth": {
          "type": "integer",
          "description": "Recursive depth level"
        },
        "🜏pattern": {
          "type": "string",
          "description": "Self-similar pattern identifier"
        },
        "∴seed": {
          "type": ["string", "object", "array"],
          "description": "Core pattern that recursively expands"
        },
        "⇌children": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/fractal_node"
          },
          "description": "Child nodes following same pattern"
        },
        "☍anchor": {
          "type": "string",
          "description": "Reference to parent pattern for compression"
        }
      },
      "required": ["⧖depth", "🜏pattern"]
    },
    "compression_metadata": {
      "type": "object",
      "properties": {
        "ratio": {
          "type": "number",
          "description": "Power-law compression ratio achieved"
        },
        "symbolic_residue": {
          "type": "object",
          "description": "Preserved patterns across recursive depth"
        },
        "attention_efficiency": {
          "type": "number",
          "description": "Reduction in attention FLOPS required"
        }
      }
    }
  },
  "type": "object",
  "properties": {
    "$fractal": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
        },
        "root_pattern": {
          "type": "string",
          "description": "Global pattern determining fractal structure"
        },
        "compression": {
          "$ref": "#/definitions/compression_metadata"
        },
        "interpretability_map": {
          "type": "object",
          "description": "Cross-scale pattern visibility map"
        }
      },
      "required": ["version", "root_pattern"]
    },
    "content": {
      "$ref": "#/definitions/fractal_node"
    }
  },
  "required": ["$fractal", "content"]
}