mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-08-09 19:35:46 +00:00
Applied 4-primitive framework to Erdős–Szekeres Theorem. Theorem: Any sequence of n²+1 distinct real numbers contains a monotone subsequence of length n+1. Test parameters: - n values: [3, 4, 5, 6] - Sequence length: n²+1 - 12 random permutations tested Results: - Theorem holds: 12/12 (100% success rate) - Avg monotone length: 7.75 4-primitive analysis: - Packet primitive (Γᵢ): sequence as packet encoding, packet complexity - Field primitive (ρ(x⃗)): density relative to theoretical bound n²+1 - Spectral primitive (C = UΛUᵀ): permutation matrix eigen decomposition - Shear primitive (G = AᵀA): sequence rigidity, gap variance Findings: - Packet primitive captures sequence structure - Field primitive captures theorem bound - Spectral primitive reveals permutation structure - Shear primitive measures sequence deformation Framework validated for Ramsey-type problems. Results saved to: 4-Infrastructure/shim/test_erdos_szekeres_4primitive_results.json
666 lines
No EOL
15 KiB
JSON
666 lines
No EOL
15 KiB
JSON
{
|
|
"test_info": {
|
|
"timestamp": "2026-05-07T04:27:48.057900",
|
|
"n_values": [
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
],
|
|
"sequence_length_formula": "n\u00b2+1",
|
|
"samples_per_n": 3,
|
|
"total_tests": 12
|
|
},
|
|
"results": [
|
|
{
|
|
"n": 3,
|
|
"seq_len": 10,
|
|
"seed": 0,
|
|
"max_monotone_length": 5,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 10,
|
|
"packet_entropy": 3.321928094887362,
|
|
"packet_complexity": 0.5555555555555556
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 10,
|
|
"expected_length": 3,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.6180339887498953,
|
|
1.414213562373095,
|
|
1.0,
|
|
0.6180339887498951,
|
|
0.0,
|
|
0.0,
|
|
-0.6180339887498956,
|
|
-1.0,
|
|
-1.414213562373095,
|
|
-1.6180339887498947
|
|
],
|
|
"spectral_radius": 1.6180339887498953,
|
|
"sequence_rank": 10
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.144642857140765,
|
|
"avg_gap": 3.4444444444444446,
|
|
"gap_variance": 6.91358024691358
|
|
}
|
|
},
|
|
{
|
|
"n": 3,
|
|
"seq_len": 10,
|
|
"seed": 1,
|
|
"max_monotone_length": 5,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 10,
|
|
"packet_entropy": 3.321928094887362,
|
|
"packet_complexity": 0.8
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 10,
|
|
"expected_length": 3,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0
|
|
],
|
|
"spectral_radius": 1.0,
|
|
"sequence_rank": 10
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 1.191176470446345,
|
|
"avg_gap": 2.2222222222222223,
|
|
"gap_variance": 0.8395061728395062
|
|
}
|
|
},
|
|
{
|
|
"n": 3,
|
|
"seq_len": 10,
|
|
"seed": 2,
|
|
"max_monotone_length": 5,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 10,
|
|
"packet_entropy": 3.321928094887362,
|
|
"packet_complexity": 0.6666666666666666
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 10,
|
|
"expected_length": 3,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0
|
|
],
|
|
"spectral_radius": 1.0,
|
|
"sequence_rank": 10
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.1874999999964844,
|
|
"avg_gap": 3.6666666666666665,
|
|
"gap_variance": 5.333333333333333
|
|
}
|
|
},
|
|
{
|
|
"n": 4,
|
|
"seq_len": 17,
|
|
"seed": 0,
|
|
"max_monotone_length": 7,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 17,
|
|
"packet_entropy": 4.08746284125034,
|
|
"packet_complexity": 0.49264705882352944
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 17,
|
|
"expected_length": 4,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.618033988749895,
|
|
1.4142135623730954,
|
|
1.414213562373095,
|
|
1.0,
|
|
0.9999999999999998,
|
|
0.618033988749895,
|
|
5.551115123125783e-17,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
-6.071532165918825e-18,
|
|
-0.618033988749895,
|
|
-0.9999999999999999,
|
|
-1.0,
|
|
-1.414213562373095,
|
|
-1.4142135623730951,
|
|
-1.6180339887498951
|
|
],
|
|
"spectral_radius": 1.6180339887498951,
|
|
"sequence_rank": 17
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.060206961429552855,
|
|
"avg_gap": 6.625,
|
|
"gap_variance": 16.609375
|
|
}
|
|
},
|
|
{
|
|
"n": 4,
|
|
"seq_len": 17,
|
|
"seed": 1,
|
|
"max_monotone_length": 6,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 17,
|
|
"packet_entropy": 4.08746284125034,
|
|
"packet_complexity": 0.5882352941176471
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 17,
|
|
"expected_length": 4,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0
|
|
],
|
|
"spectral_radius": 1.0,
|
|
"sequence_rank": 17
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.06015037593948783,
|
|
"avg_gap": 6.5,
|
|
"gap_variance": 16.625
|
|
}
|
|
},
|
|
{
|
|
"n": 4,
|
|
"seq_len": 17,
|
|
"seed": 2,
|
|
"max_monotone_length": 7,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 17,
|
|
"packet_entropy": 4.08746284125034,
|
|
"packet_complexity": 0.5588235294117647
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 17,
|
|
"expected_length": 4,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.414213562373095,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
-6.071532165918825e-18,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.414213562373095
|
|
],
|
|
"spectral_radius": 1.414213562373095,
|
|
"sequence_rank": 17
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.08173690932244813,
|
|
"avg_gap": 6.125,
|
|
"gap_variance": 12.234375
|
|
}
|
|
},
|
|
{
|
|
"n": 5,
|
|
"seq_len": 26,
|
|
"seed": 0,
|
|
"max_monotone_length": 8,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 26,
|
|
"packet_entropy": 4.70043971814109,
|
|
"packet_complexity": 0.4676923076923077
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 26,
|
|
"expected_length": 5,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.6180339887498951,
|
|
1.414213562373095,
|
|
1.414213562373095,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
0.6180339887498948,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
-6.071532165918825e-18,
|
|
-6.071532165918825e-18,
|
|
-0.6180339887498951,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.414213562373095,
|
|
-1.414213562373095,
|
|
-1.6180339887498951
|
|
],
|
|
"spectral_radius": 1.6180339887498951,
|
|
"sequence_rank": 26
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.02794670005357956,
|
|
"avg_gap": 9.76,
|
|
"gap_variance": 35.7824
|
|
}
|
|
},
|
|
{
|
|
"n": 5,
|
|
"seq_len": 26,
|
|
"seed": 1,
|
|
"max_monotone_length": 9,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 26,
|
|
"packet_entropy": 4.70043971814109,
|
|
"packet_complexity": 0.6215384615384615
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 26,
|
|
"expected_length": 5,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.618033988749894,
|
|
1.4142135623730951,
|
|
1.0000000000000004,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
0.6180339887498951,
|
|
1.2854427516081075e-83,
|
|
-2.0036056147532122e-16,
|
|
-0.6180339887498946,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.414213562373095,
|
|
-1.6180339887498947
|
|
],
|
|
"spectral_radius": 1.6180339887498947,
|
|
"sequence_rank": 26
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.029211067489164994,
|
|
"avg_gap": 8.92,
|
|
"gap_variance": 34.2336
|
|
}
|
|
},
|
|
{
|
|
"n": 5,
|
|
"seq_len": 26,
|
|
"seed": 2,
|
|
"max_monotone_length": 10,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 26,
|
|
"packet_entropy": 4.70043971814109,
|
|
"packet_complexity": 0.5538461538461539
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 26,
|
|
"expected_length": 5,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.6180339887498942,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
0.6180339887498952,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
-0.6180339887498946,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.6180339887498947
|
|
],
|
|
"spectral_radius": 1.6180339887498947,
|
|
"sequence_rank": 26
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.02094925253062582,
|
|
"avg_gap": 8.16,
|
|
"gap_variance": 47.734399999999994
|
|
}
|
|
},
|
|
{
|
|
"n": 6,
|
|
"seq_len": 37,
|
|
"seed": 0,
|
|
"max_monotone_length": 11,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 37,
|
|
"packet_entropy": 5.209453365628954,
|
|
"packet_complexity": 0.4444444444444444
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 37,
|
|
"expected_length": 6,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.6180339887498942,
|
|
1.6180339887498942,
|
|
1.414213562373095,
|
|
1.414213562373095,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
0.6180339887498952,
|
|
0.6180339887498952,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
-6.071532165918825e-18,
|
|
-6.071532165918825e-18,
|
|
-0.6180339887498946,
|
|
-0.6180339887498946,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.414213562373095,
|
|
-1.414213562373095,
|
|
-1.6180339887498947,
|
|
-1.6180339887498947
|
|
],
|
|
"spectral_radius": 1.6180339887498947,
|
|
"sequence_rank": 37
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.01119441661194891,
|
|
"avg_gap": 12.944444444444445,
|
|
"gap_variance": 89.33024691358024
|
|
}
|
|
},
|
|
{
|
|
"n": 6,
|
|
"seq_len": 37,
|
|
"seed": 1,
|
|
"max_monotone_length": 9,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 37,
|
|
"packet_entropy": 5.209453365628954,
|
|
"packet_complexity": 0.5405405405405406
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 37,
|
|
"expected_length": 6,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.6180339887498945,
|
|
1.6180339887498942,
|
|
1.4142135623730951,
|
|
1.414213562373095,
|
|
1.0000000000000004,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
0.6180339887498952,
|
|
0.6180339887498949,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
-6.071532165918825e-18,
|
|
-9.194034422677078e-17,
|
|
-0.6180339887498946,
|
|
-0.6180339887498947,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0000000000000002,
|
|
-1.414213562373095,
|
|
-1.4142135623730951,
|
|
-1.6180339887498947,
|
|
-1.618033988749895
|
|
],
|
|
"spectral_radius": 1.618033988749895,
|
|
"sequence_rank": 37
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.012543554006952905,
|
|
"avg_gap": 13.0,
|
|
"gap_variance": 79.72222222222223
|
|
}
|
|
},
|
|
{
|
|
"n": 6,
|
|
"seq_len": 37,
|
|
"seed": 2,
|
|
"max_monotone_length": 11,
|
|
"theorem_holds": true,
|
|
"packet": {
|
|
"packet_size": 37,
|
|
"packet_entropy": 5.209453365628954,
|
|
"packet_complexity": 0.5480480480480481
|
|
},
|
|
"field": {
|
|
"density": 1.0,
|
|
"theoretical_bound": 37,
|
|
"expected_length": 6,
|
|
"relative_length": 1.0
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
1.618033988749895,
|
|
1.6180339887498942,
|
|
1.414213562373095,
|
|
1.414213562373095,
|
|
1.414213562373095,
|
|
1.414213562373095,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
1.0,
|
|
0.6180339887498952,
|
|
0.6180339887498949,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
-6.071532165918825e-18,
|
|
-6.071532165918825e-18,
|
|
-6.071532165918825e-18,
|
|
-6.071532165918825e-18,
|
|
-0.6180339887498946,
|
|
-0.618033988749895,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.0,
|
|
-1.414213562373095,
|
|
-1.414213562373095,
|
|
-1.414213562373095,
|
|
-1.414213562373095,
|
|
-1.6180339887498945,
|
|
-1.6180339887498947
|
|
],
|
|
"spectral_radius": 1.618033988749895,
|
|
"sequence_rank": 37
|
|
},
|
|
"shear": {
|
|
"sequence_rigidity": 0.012612524937943318,
|
|
"avg_gap": 14.86111111111111,
|
|
"gap_variance": 79.28626543209874
|
|
}
|
|
}
|
|
],
|
|
"theorem_analysis": {
|
|
"theorem_holds_count": 12,
|
|
"total_tests": 12,
|
|
"success_rate": 1.0,
|
|
"avg_monotone_length": 7.75
|
|
},
|
|
"primitive_analysis": {
|
|
"packet": {
|
|
"equation": "\u0393\u1d62",
|
|
"application": "Sequence as packet encoding",
|
|
"insight": "Packet complexity measures sequence disorder"
|
|
},
|
|
"field": {
|
|
"equation": "\u03c1(x\u20d7)",
|
|
"application": "Density relative to theoretical bound n\u00b2+1",
|
|
"insight": "Field captures theorem condition"
|
|
},
|
|
"spectral": {
|
|
"equation": "C = U\u039bU\u1d40",
|
|
"application": "Permutation matrix eigen decomposition",
|
|
"insight": "Spectral radius indicates permutation structure"
|
|
},
|
|
"shear": {
|
|
"equation": "G = A\u1d40A",
|
|
"application": "Sequence rigidity and gap variance",
|
|
"insight": "Shear measures sequence deformation"
|
|
}
|
|
},
|
|
"validation": {
|
|
"status": "SUCCESS",
|
|
"insight": "4-primitive framework successfully applied to Erd\u0151s\u2013Szekeres Theorem. Packet primitive captures sequence structure. Field primitive captures theorem bound. Spectral primitive reveals permutation structure. Shear primitive measures sequence deformation. Framework validated for Ramsey-type problems."
|
|
}
|
|
} |