Skip to content

Commit 17542f3

Browse files
authored
Markov-model experiment (#576)
* Added nix shell * Adjusted overall efficiency computation * Designed parameter-sweep experiment * Executed and analyzed * Updated logbook
1 parent cb42cd2 commit 17542f3

10 files changed

+1378
-2
lines changed

Logbook.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Leios logbook
22

3+
## 2025-10-11
4+
5+
### Parameter-sweep experiment for Markovian model
6+
7+
We completed the first set of experiments using the [Markovian model for Leios efficiency](analysis/markov/).
8+
9+
| | |
10+
|---|---|
11+
| ![Committee and quorum without adversary](analysis/markov/experiments/Committee%20and%20quorum%20without%20adversary.svg) | ![Ideal conditions with adversary](analysis/markov/experiments/Ideal%20conditions%20with%20adversary.svg) |
12+
| ![Non-ideal network without adversary](analysis/markov/experiments/Non-ideal%20network%20without%20adversary.svg) | ![Protocol parameters without adversary](analysis/markov/experiments/Protocol%20parameters%20without%20adversary.svg) |
13+
314
## 2025-10-10
415

516
### Extended analysis of ledger operations

analysis/markov/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
/.lake
2+
.ipynb_checkpoints/
3+
experiments/*.csv.gz
4+
experiments/*.png

analysis/markov/Linleios/Evolve.lean

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,7 @@ def ebEfficiency (states : Probabilities) : Float :=
118118
def efficiency (states : Probabilities) : Float :=
119119
let rb := rbEfficiency states
120120
let eb := ebEfficiency states
121-
let ρ := 12.5 / 0.9
122-
(rb + ρ * eb) / (1 + ρ)
121+
let rbSize := 0.9
122+
let ebSize := 12.0
123+
let ρ := ebSize / rbSize
124+
(rb * (1 - eb) + ρ * eb) / (1 + ρ)

analysis/markov/experiments.ipynb

Lines changed: 555 additions & 0 deletions
Large diffs are not rendered by default.

analysis/markov/experiments/Committee and quorum without adversary.svg

Lines changed: 131 additions & 0 deletions
Loading
Lines changed: 115 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)