{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Physics Symbol Matches Schema",
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "symbol_latex",
      "db_id",
      "description",
      "explanation",
      "confidence"
    ],
    "properties": {
      "symbol_latex": {
        "type": "string",
        "minLength": 1,
        "description": "The LaTeX representation of the symbol from the derivation."
      },
      "db_id": {
        "type": "string",
        "pattern": "^[0-9]+$",
        "minLength": 8,
        "description": "The unique numerical ID from the physics database."
      },
      "equation_labels": {
        "type": "array",
        "description": "equations in the derivation that use the symbol"
      },
      "description": {
        "type": "string",
        "minLength": 1,
        "description": "A description of the symbol's role in the derivation."
      },
      "explanation": {
        "type": "string",
        "minLength": 1,
        "description": "Justification for why this derivation symbol matches the database entry."
      },
      "confidence": {
        "type": "string",
        "enum": ["high", "medium", "low"],
        "description": "The certainty level of the match."
      }
    }
  }
}