@lapxo/obligations 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +4 -0
- package/TARGET.bound +90 -10
- package/contracts/m0-allocation.json +6 -0
- package/contracts/m0-finite-grid.json +6 -0
- package/contracts/m0-limit-diag.json +6 -0
- package/contracts/m0-limit-offdiag.json +6 -0
- package/contracts/m0-pair-coincidence.json +6 -0
- package/dist/measures/cofailure-pairs.d.ts +113 -0
- package/dist/measures/cofailure-pairs.js +129 -0
- package/dist/measures/index.d.ts +4 -0
- package/dist/measures/index.js +2 -0
- package/dist/measures/marginal-information.d.ts +78 -0
- package/dist/measures/marginal-information.js +71 -0
- package/docs/contracts/m0-allocation.md +1 -0
- package/docs/contracts/m0-finite-grid.md +1 -0
- package/docs/contracts/m0-limit-diag.md +1 -0
- package/docs/contracts/m0-limit-offdiag.md +1 -0
- package/docs/contracts/m0-pair-coincidence.md +1 -0
- package/docs/measures.md +16 -0
- package/docs/paper.md +2 -2
- package/docs/proofs/floor-limit-diag.proof.json +29 -0
- package/docs/reference.md +6 -1
- package/package.json +1 -1
- package/proofs/cofailure-pairs.json +26 -0
- package/proofs/coordination.json +27 -0
- package/proofs/helly-comb.json +17 -0
- package/proofs/lean/Obligations/Cell.lean +159 -0
- package/proofs/lean/Obligations/HellyComb.lean +19 -0
- package/proofs/lineage-ceiling.json +41 -0
- package/proofs/m0-045/Obligations045/ConsensusGrid.lean +72 -0
- package/proofs/m0-045/Obligations045/M0Coincidence.lean +39 -0
- package/proofs/m0-045/Obligations045/M0Diagonal.lean +18 -0
- package/proofs/m0-045/Obligations045/M0Limit.lean +134 -0
- package/proofs/m0-045/Obligations045/M0Offdiag.lean +171 -0
- package/proofs/m0-045/Obligations045.lean +5 -0
- package/proofs/m0-045/lake-manifest.json +116 -0
- package/proofs/m0-045/lakefile.toml +9 -0
- package/proofs/m0-045/lean-toolchain +1 -0
- package/proofs/marginal-information.json +30 -0
- package/proofs/resolution-encounters.json +23 -0
- package/receipts.bound +613 -288
- package/samples/laws/cofailure-pairs/no/sample.json +1 -0
- package/samples/laws/cofailure-pairs/yes/sample.json +20 -0
- package/samples/laws/linage-rest/no/sample.json +19 -0
- package/samples/laws/linage-rest/yes/sample.json +100 -0
- package/samples/laws/lineage-ceiling/no/sample.json +8 -0
- package/samples/laws/lineage-ceiling/yes/sample.json +30 -0
- package/samples/laws/m0-allocation/no/sample.json +5 -0
- package/samples/laws/m0-allocation/yes/sample.json +7 -0
- package/samples/laws/m0-finite-grid/no/sample.json +5 -0
- package/samples/laws/m0-finite-grid/yes/sample.json +7 -0
- package/samples/laws/m0-limit-diag/no/sample.json +5 -0
- package/samples/laws/m0-limit-diag/yes/sample.json +7 -0
- package/samples/laws/m0-limit-offdiag/no/sample.json +5 -0
- package/samples/laws/m0-limit-offdiag/yes/sample.json +7 -0
- package/samples/laws/m0-pair-coincidence/no/sample.json +5 -0
- package/samples/laws/m0-pair-coincidence/yes/sample.json +7 -0
- package/samples/laws/marginal-information/no/sample.json +17 -0
- package/samples/laws/marginal-information/yes/sample.json +459 -0
- package/samples/laws/semilattice/no/sample.json +18 -0
- package/samples/laws/semilattice/yes/sample.json +29 -0
- package/samples/no/H1-uncertainty.json +24 -0
- package/samples/no/installed-artifact.json +24 -26
- package/samples/yes/H1-uncertainty.json +25 -0
- package/samples/yes/installed-artifact.json +23 -25
- package/vectors/laws/cofailure-pairs.json +2580 -0
- package/vectors/laws/cofailure-pairs.native.json +267 -0
- package/vectors/laws/coordination.json +386 -0
- package/vectors/laws/f1/finite-arithmetic.json +66 -0
- package/vectors/laws/f1/path-witness.json +242 -0
- package/vectors/laws/helly-comb.json +95 -0
- package/vectors/laws/helly-comb.lean.json +94 -0
- package/vectors/laws/linage-rest.native.json +335 -0
- package/vectors/laws/lineage-ceiling.json +790 -0
- package/vectors/laws/lineage-ceiling.native.json +291 -0
- package/vectors/laws/m0-allocation.lean.json +150 -0
- package/vectors/laws/m0-allocation.native.json +104 -0
- package/vectors/laws/m0-finite-grid.lean.json +144 -0
- package/vectors/laws/m0-finite-grid.native.json +104 -0
- package/vectors/laws/m0-limit-diag.lean.json +141 -0
- package/vectors/laws/m0-limit-diag.native.json +108 -0
- package/vectors/laws/m0-limit-offdiag.lean.json +143 -0
- package/vectors/laws/m0-limit-offdiag.native.json +104 -0
- package/vectors/laws/m0-pair-coincidence.lean.json +139 -0
- package/vectors/laws/m0-pair-coincidence.native.json +104 -0
- package/vectors/laws/marginal-information.json +868 -0
- package/vectors/laws/marginal-information.native.json +259 -0
- package/vectors/laws/meet-semilattice.json +244 -0
- package/vectors/laws/meet-semilattice.native.json +265 -0
- package/vectors/laws/resolution-encounters.json +171 -0
- package/vectors/measures/installed-artifact.cli.json +8 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"conflicting-value-for-one-event-origin","mutation":{"event":"e0","origin":"a","value":"0"},"expectedRefusal":"REFUSE·cofailure conflicting-value e0/a"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id":"cofailure-pairs-models@1",
|
|
3
|
+
"origins":["a","b","c","d"],"values":["0","1"],"budget":"100000",
|
|
4
|
+
"handedCategoricalReference":{"model":"independent-categorical@1","marginals":[
|
|
5
|
+
{"origin":"a","probabilities":[{"value":"0","p":"1/2"},{"value":"1","p":"1/2"}]},
|
|
6
|
+
{"origin":"b","probabilities":[{"value":"0","p":"1/2"},{"value":"1","p":"1/2"}]},
|
|
7
|
+
{"origin":"c","probabilities":[{"value":"0","p":"1/2"},{"value":"1","p":"1/2"}]},
|
|
8
|
+
{"origin":"d","probabilities":[{"value":"0","p":"1/2"},{"value":"1","p":"1/2"}]}
|
|
9
|
+
]},
|
|
10
|
+
"separated":{"T":400,"blocks":[{"count":200,"values":["1","1","0","0"],"truth":"0"},{"count":200,"values":["0","0","1","1"],"truth":"0"}],
|
|
11
|
+
"oracleTheta":"1/4","oracleEpsilon":"1/8","observationalTheta":"0","observationalEpsilon":"1/4","referenceGroups":[["a","b"],["c","d"]]},
|
|
12
|
+
"sameReportsOtherTruth":{"truthFromOrigin":"a","meaning":"same value bytes; the oracle changes which answers count as wrong"},
|
|
13
|
+
"sharedQuestion":{"T":400,"blocks":[{"count":200,"values":["0","0","0","0"],"truth":"0"},{"count":200,"values":["1","1","1","1"],"truth":"1"}],
|
|
14
|
+
"meaning":"perfect responses to a varying common question; zero errors do not make marginal categorical reference adequate"},
|
|
15
|
+
"betweenMeans":{"T":100,"theta":"3/20","blocks":[{"count":59,"values":["1","1","0","0"],"truth":"0"},{"count":21,"values":["1","1","1","0"],"truth":"0"},{"count":20,"values":["0","0","1","1"],"truth":"0"}],"referenceGroups":[["a","b"],["c","d"]]},
|
|
16
|
+
"finiteConfusion":{"T":4,"c":"1/4","e":"1/4","theta":"1/4","epsilon":"1/8","blocks":[{"count":4,"values":["0","0","0","0"],"truth":"0"}],
|
|
17
|
+
"declaredGenerator":"factor covering a,b fires with c, otherwise private Bernoulli errors e; c=e=1/4; independent cells and private draws declared; binary wrong symbol is 1",
|
|
18
|
+
"allCorrectPerCell":"(1-c)*(1-e)^4", "meaning":"a nonzero-probability all-correct batch cannot recover the hidden group even when c=e"},
|
|
19
|
+
"fixtureProvenance":"new deterministic finite fixtures, not recovered browser outputs; iid sampling is an external conditional premise, not inferred from the fixture"
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cases": [
|
|
3
|
+
{
|
|
4
|
+
"region": "helly-comb",
|
|
5
|
+
"claim": "pairwise-implies-global",
|
|
6
|
+
"expectedRefusal": "REFUSE·linage-rest comb-pairwise-is-not-global"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"region": "resolution-encounters",
|
|
10
|
+
"claim": "unconditional-monotone-K-N",
|
|
11
|
+
"expectedRefusal": "REFUSE·linage-rest resolution-counting-model-required"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"region": "coordination",
|
|
15
|
+
"claim": "curve-without-joint-model",
|
|
16
|
+
"expectedRefusal": "REFUSE·linage-rest joint-conditional-independence-required"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "linage-rest@1",
|
|
3
|
+
"helly": {
|
|
4
|
+
"universe": [
|
|
5
|
+
0,
|
|
6
|
+
1,
|
|
7
|
+
2
|
|
8
|
+
],
|
|
9
|
+
"sets": [
|
|
10
|
+
[
|
|
11
|
+
0,
|
|
12
|
+
1
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
1,
|
|
16
|
+
2
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
0,
|
|
20
|
+
2
|
|
21
|
+
]
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"resolution": {
|
|
25
|
+
"publishedSample": "samples/yes/H1-uncertainty.json",
|
|
26
|
+
"resolutions": [
|
|
27
|
+
1,
|
|
28
|
+
2,
|
|
29
|
+
3,
|
|
30
|
+
4,
|
|
31
|
+
5,
|
|
32
|
+
7
|
|
33
|
+
],
|
|
34
|
+
"encounters": [
|
|
35
|
+
"4.8",
|
|
36
|
+
"5.74",
|
|
37
|
+
"5.2",
|
|
38
|
+
"5.86",
|
|
39
|
+
"5.19",
|
|
40
|
+
"6.04"
|
|
41
|
+
],
|
|
42
|
+
"countertables": [
|
|
43
|
+
{
|
|
44
|
+
"r": [
|
|
45
|
+
1,
|
|
46
|
+
2
|
|
47
|
+
],
|
|
48
|
+
"e": [
|
|
49
|
+
"4",
|
|
50
|
+
"1"
|
|
51
|
+
],
|
|
52
|
+
"K": "1",
|
|
53
|
+
"N": "8"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"r": [
|
|
57
|
+
1,
|
|
58
|
+
2,
|
|
59
|
+
4
|
|
60
|
+
],
|
|
61
|
+
"e": [
|
|
62
|
+
"2",
|
|
63
|
+
"2",
|
|
64
|
+
"2"
|
|
65
|
+
],
|
|
66
|
+
"K": "3",
|
|
67
|
+
"N": "5"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"coordination": {
|
|
72
|
+
"n": 5,
|
|
73
|
+
"f": "1/4",
|
|
74
|
+
"e": "1/5",
|
|
75
|
+
"sizes": [
|
|
76
|
+
1,
|
|
77
|
+
2,
|
|
78
|
+
3,
|
|
79
|
+
4,
|
|
80
|
+
5,
|
|
81
|
+
6
|
|
82
|
+
],
|
|
83
|
+
"privateJoint": "conditionally-iid-given-truth",
|
|
84
|
+
"active": "all-selected-sources-same-wrong-label",
|
|
85
|
+
"fittingPolicy": {
|
|
86
|
+
"procedure": "exact-c-slices-on-declared-p-grid@1",
|
|
87
|
+
"p": [
|
|
88
|
+
"1/5"
|
|
89
|
+
],
|
|
90
|
+
"tolerance": "0",
|
|
91
|
+
"budget": "1000000",
|
|
92
|
+
"bootstrap": {
|
|
93
|
+
"B": 0,
|
|
94
|
+
"seed": 7,
|
|
95
|
+
"prng": "xorshift32",
|
|
96
|
+
"randomWords": 0
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name":"missing-markov-bottleneck",
|
|
3
|
+
"model":"single-dominant-factor@1",
|
|
4
|
+
"n":2,"c":"1/2","p":"1/10","k":1,
|
|
5
|
+
"falseClaim":"capacityP0 is an upper bound without the declared symmetric Markov bottleneck",
|
|
6
|
+
"expectedRefusal":"REFUSE·lineage markov-model-required",
|
|
7
|
+
"meaning":"The published general model gives positive information while capacityP0 is zero. The API remains unchanged; this claim is outside the new conditional contract."
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"model": "truth->symmetric-lineage->reports->aggregate@1",
|
|
3
|
+
"conditions": {
|
|
4
|
+
"truth": "uniform on n named symbols",
|
|
5
|
+
"lineageChannel": "P(Z=x|X=x)=1-c; P(Z=z|X=x)=c/(n-1) for z!=x",
|
|
6
|
+
"markov": "X -> Z -> (Y_1,...,Y_K) -> A",
|
|
7
|
+
"extraTruthAccess": false,
|
|
8
|
+
"revealedCauseIndicator": false
|
|
9
|
+
},
|
|
10
|
+
"policy": {"logarithm":"binary64-log2","budget":"100000"},
|
|
11
|
+
"copies": [
|
|
12
|
+
{"n":2,"c":"0","ks":[1,3]},
|
|
13
|
+
{"n":2,"c":"1/2","ks":[1,3]},
|
|
14
|
+
{"n":2,"c":"1","ks":[1,3]},
|
|
15
|
+
{"n":3,"c":"1/5","ks":[1,2,3]},
|
|
16
|
+
{"n":4,"c":"3/4","ks":[1,2]}
|
|
17
|
+
],
|
|
18
|
+
"finiteApproachExperiment": {
|
|
19
|
+
"classification": "new exact finite experiment, not recovered browser bytes or an asymptotic certificate",
|
|
20
|
+
"reportsGivenZ": "jointly independent n-ary symmetric channels with error e",
|
|
21
|
+
"aggregator": "plurality-uniform-ties@1",
|
|
22
|
+
"regimes": [
|
|
23
|
+
{"n":2,"c":"1/5","e":"1/5","ks":[1,3,5,7,9]},
|
|
24
|
+
{"n":3,"c":"1/4","e":"1/5","ks":[1,3,5]},
|
|
25
|
+
{"n":4,"c":"1/5","e":"1/4","ks":[1,3]}
|
|
26
|
+
],
|
|
27
|
+
"limitHypothesis": "a fixed n,c,e, conditionally iid reports and e<1/2 suffice for plurality to recover Z with probability tending to one; finite rows alone do not verify that limit"
|
|
28
|
+
},
|
|
29
|
+
"f1Witness": {"N":4,"x":[[0],[1,2],[3]],"y":[[0,1],[2,3]],"uniformLiftN":16}
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "duplicate-source-in-addition-order",
|
|
3
|
+
"case": "copy-versus-new-channel",
|
|
4
|
+
"orders": [
|
|
5
|
+
[
|
|
6
|
+
"a",
|
|
7
|
+
"a",
|
|
8
|
+
"b"
|
|
9
|
+
],
|
|
10
|
+
[
|
|
11
|
+
"b",
|
|
12
|
+
"a",
|
|
13
|
+
"copy"
|
|
14
|
+
]
|
|
15
|
+
],
|
|
16
|
+
"expectedRefusal": "REFUSE\u00b7marginal order-must-be-permutation"
|
|
17
|
+
}
|