Skip to content

Commit

Permalink
Commit from GitHub Actions (Embed code in README)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarrott committed Dec 7, 2023
1 parent a5490b5 commit 0d60fb1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ with CoqFile(os.path.join(os.getcwd(), "examples/readme.v")) as coq_file:
),
)

# Enter proof
coq_file.exec(nsteps=4)
print("In proof:", coq_file.in_proof)
# Get current goals
print(coq_file.current_goals)

# Save compiled file
coq_file.save_vo()
print("Compiled file exists:", os.path.exists("examples/readme.vo"))
Expand All @@ -73,6 +67,13 @@ Create a ProofFile object (a CoqFile instance) and interact with the proofs.
```py
# Open Proof file
with ProofFile(os.path.join(os.getcwd(), "examples/readme.v")) as proof_file:
# Enter proof
proof_file.exec(nsteps=4)
print("In proof:", proof_file.in_proof)
# Get current goals
print(proof_file.current_goals)

# Run remaining file
proof_file.run()
# Number of proofs in the file
print("Number of proofs:", len(proof_file.proofs))
Expand Down

0 comments on commit 0d60fb1

Please sign in to comment.