Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1a21e2d
State before partial rewrite
nikeshnazareth May 27, 2025
57bccc7
Simplify discussion about transaction ordering
nikeshnazareth May 27, 2025
5811b92
Describe the same-slot mechanism
nikeshnazareth May 28, 2025
7467e25
Describe Realtime L1 reads
nikeshnazareth May 29, 2025
de9a1d0
Describe interdependent transactions
nikeshnazareth May 29, 2025
40f06b6
Describe multi-block unsecured loan
nikeshnazareth May 29, 2025
5526d7b
Describe cross-rollup setting
nikeshnazareth May 29, 2025
1c7fad9
Describe realtime proving
nikeshnazareth May 29, 2025
8a6fda1
Describe staked claim
nikeshnazareth May 29, 2025
0137672
Fix typo
nikeshnazareth May 29, 2025
cc4e70c
Fix typo
nikeshnazareth May 31, 2025
15c872b
Update diagrams to better package the rollup publication
nikeshnazareth Jun 2, 2025
93742dd
Several minor clarifications
nikeshnazareth Jun 2, 2025
51789ce
Describe sub publication proving
nikeshnazareth Jun 2, 2025
cb02c44
Describe implementation framework
nikeshnazareth Jun 5, 2025
ace8530
Update Realtime section based on feedback
nikeshnazareth Jun 5, 2025
ae10e47
Fix typos
nikeshnazareth Jun 6, 2025
3059dfa
Emphasise the transcript-level conditions
nikeshnazareth Jun 6, 2025
5513a90
Add one-sided caveat to the first sequence it shows up
nikeshnazareth Jun 6, 2025
62a5406
Use "pauser" instead of "asserter" mechanism.
nikeshnazareth Jun 10, 2025
72ed375
Better explain the Prisoner's Dilemma example.
nikeshnazareth Jun 12, 2025
aef20d5
Describe the `value` for the assertions.
nikeshnazareth Jun 12, 2025
08cb83d
Create example walkthrough
nikeshnazareth Jun 12, 2025
97ab800
Fix images
nikeshnazareth Jun 12, 2025
efe8b36
Make heading sizes consistent
nikeshnazareth Jun 12, 2025
03db32f
Describe the open abstraction caveat
nikeshnazareth Jul 16, 2025
f85e873
Describe the one-line idea after explaining the pattern
nikeshnazareth Jul 16, 2025
a7dd3dd
Use "explained" instead of "noted" to avoid repetition
nikeshnazareth Jul 16, 2025
267d3a9
Rephrase cross-rollup setting to mention compatibility with the agg-l…
nikeshnazareth Jul 16, 2025
a02fd5b
Explain how the posted state is useful for AggLayer
nikeshnazareth Jul 16, 2025
3b39a47
Explain that the staked claim should not be used for the native bridge
nikeshnazareth Jul 16, 2025
773c1c9
Add introductory clause to implementation section
nikeshnazareth Jul 16, 2025
147798c
Include caveat that walkthrough may be overkill in practice
nikeshnazareth Jul 16, 2025
74107ae
Include acknowledgement
nikeshnazareth Jul 17, 2025
25c6118
Fix typo
nikeshnazareth Jul 17, 2025
ffbc928
Describe simplified version of prisoners dilemma solution
nikeshnazareth Jul 17, 2025
b43c1e6
Grammar fix
nikeshnazareth Jul 17, 2025
a5c1aea
Fix typo
nikeshnazareth Jul 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
461 changes: 461 additions & 0 deletions documentation/PreemptiveProvableAssertions.md

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions documentation/compile_provable_assertion_images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

name="provable_assertion_images";

for i in {0..19}
do
pdflatex "\def\sourceNo{$i}\input{$name.tex}";
convert -density 600x600 $name.pdf -quality 90 $name.$i.png;
done
Comment on lines +5 to +9
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add error handling for compilation failures.

The script doesn't handle compilation errors, which could leave the system in an inconsistent state with partial files.

 for i in {0..19}
 do
-    pdflatex "\def\sourceNo{$i}\input{$name.tex}";
-    convert -density 600x600 $name.pdf -quality 90 $name.$i.png;
+    if ! pdflatex "\def\sourceNo{$i}\input{$name.tex}"; then
+        echo "Error: pdflatex failed for sourceNo=$i"
+        exit 1
+    fi
+    if ! convert -density 600x600 $name.pdf -quality 90 $name.$i.png; then
+        echo "Error: convert failed for sourceNo=$i"
+        exit 1
+    fi
 done
🤖 Prompt for AI Agents
In documentation/compile_provable_assertion_images.sh around lines 5 to 9, the
script lacks error handling for pdflatex compilation failures. Modify the loop
to check the exit status of the pdflatex command after each run, and if it
fails, print an error message and exit the script immediately to prevent further
processing and partial file generation.


rm $name.aux $name.log $name.pdf
Comment on lines +3 to +11
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add dependency checking.

The script should verify required tools are available before attempting to use them.

 name="provable_assertion_images";

+# Check for required dependencies
+for cmd in pdflatex convert; do
+    if ! command -v "$cmd" &> /dev/null; then
+        echo "Error: $cmd is not installed or not in PATH"
+        exit 1
+    fi
+done
+
 for i in {0..19}
🤖 Prompt for AI Agents
In documentation/compile_provable_assertion_images.sh around lines 3 to 11, the
script uses pdflatex and convert without checking if these tools are installed.
Add checks at the beginning of the script to verify that both pdflatex and
convert commands are available on the system, and if not, print an error message
and exit the script to prevent runtime failures.

Binary file added documentation/provable_assertion_images.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/provable_assertion_images.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading