Prove weighted independent set DP has optimal substructure

Analyze the prove weighted independent set dp has optimal substructure.

Examples
Input: "proof_case_1"
Output: true
Hints

Prove weighted independent set DP has optimal substructure

Analyze the prove weighted independent set dp has optimal substructure.