Update README.md
Browse files
README.md
CHANGED
|
@@ -152,7 +152,6 @@ print(response.choices[0].message.reasoning)
|
|
| 152 |
_Example Content_:
|
| 153 |
<details>
|
| 154 |
<summary>Expand</summary
|
| 155 |
-
```
|
| 156 |
To define transaction rules as an inductive proposition in Lean, you can create an inductive type that captures the valid transitions between states. This approach is particularly useful for modeling state machines and proving properties about transitions, such as invariants.
|
| 157 |
|
| 158 |
Here is an example of how to define an inductive proposition for valid transitions in a simple counter machine:
|
|
@@ -192,7 +191,6 @@ lemma reach_positive : ∀ n > 0, CounterTrans 0 n
|
|
| 192 |
In this simpler model, `CounterTrans` is defined with a single constructor `valid`, which allows for any state to transition to the next state by incrementing by 1. The lemma `reach_positive` is straightforward to prove by induction, leveraging the simplicity of the transition rules.
|
| 193 |
|
| 194 |
This approach ensures that the proof remains concise and effective, avoiding unnecessary complexity in the transition rules. By using inductive propositions, we can effectively reason about state transitions and prove properties about the system.
|
| 195 |
-
```
|
| 196 |
</details>
|
| 197 |
|
| 198 |
**_Tool-Calling_**
|
|
|
|
| 152 |
_Example Content_:
|
| 153 |
<details>
|
| 154 |
<summary>Expand</summary
|
|
|
|
| 155 |
To define transaction rules as an inductive proposition in Lean, you can create an inductive type that captures the valid transitions between states. This approach is particularly useful for modeling state machines and proving properties about transitions, such as invariants.
|
| 156 |
|
| 157 |
Here is an example of how to define an inductive proposition for valid transitions in a simple counter machine:
|
|
|
|
| 191 |
In this simpler model, `CounterTrans` is defined with a single constructor `valid`, which allows for any state to transition to the next state by incrementing by 1. The lemma `reach_positive` is straightforward to prove by induction, leveraging the simplicity of the transition rules.
|
| 192 |
|
| 193 |
This approach ensures that the proof remains concise and effective, avoiding unnecessary complexity in the transition rules. By using inductive propositions, we can effectively reason about state transitions and prove properties about the system.
|
|
|
|
| 194 |
</details>
|
| 195 |
|
| 196 |
**_Tool-Calling_**
|