Questions tagged [proof-general]

Proof General is a generic front-end for proof assistants, based on Emacs.

Proof General is a generic front-end for proof assistants (like Coq or Isabelle), based on the customizable text editor Emacs.

See also http://proofgeneral.inf.ed.ac.uk/

39 questions
2
votes
1 answer

Unable to set up Certified Programming with Dependent Types

I am working with the book Certified Programming with Dependent Types but each time I'm finding a different error. It seems to me that the error comes from a mismatch between the compilation process from Proof General and through the makefile of the…
user1868607
  • 2,558
  • 1
  • 17
  • 38
2
votes
0 answers

Emacs running Org mode and Coq mode at same buffer

I like to use Emacs to run ProofGeneral/Coq-mode, because the interactive tool for proving is great. I like to use Emacs to run Org-mode, because is a very simple way to write a presentation that I can edit text while doing it. Can I have both…
Rafael Castro
  • 579
  • 5
  • 14
2
votes
2 answers

Proof General complaining script incomplete if running 2 scripts at the same time

It seems like PG doesn't allow running 2 scripts at the same time. The moment attempting to do this, Emacs will prompt and ask to retract the other file. Sometimes, scripts are nontrivial to rerun. Is there any way to actually run 2(or more) scripts…
Jason Hu
  • 6,239
  • 1
  • 20
  • 41
2
votes
1 answer

How to tell Proof General that ".csv" != ".v"

Every time I open a .csv file in an Emacs buffer, Proof General starts up (unless it's already started) and resets my windows. This really throws off my Emacs groove and needs to stop. The only part of my init.el that deals with Proof General is…
Ben Greenman
  • 1,945
  • 12
  • 22
2
votes
1 answer

Emacs cursor jumps before period on Proof General

I only encounter this problem when running Proof General. I'm assuming this is some random minor mode that is started by Proof General, but can't figure out which one! I include a list of minor modes bellow, in case you can recognise the name. If I…
Skuge
  • 1,010
  • 2
  • 11
  • 28
1
vote
1 answer

SF Volume 1: Logic: How to prove tr_rev <-> rev?

From Software Foundations Volume 1, chapter Logic we see a tail recursive definition of list reversal. It goes like so: Fixpoint rev_append {X} (l1 l2 : list X) : list X := match l1 with | [] => l2 | x :: l1' => rev_append l1' (x :: l2) …
1
vote
0 answers

Why is Proof General so slow in Windows 10?

I open emacs and then a .v file so that Proof General is triggered. However, one this is done the IDE is very slow and it takes ages to scroll up and down the proof. Any idea on why this might be happening? Configuration file: ;; use standard keys…
user1868607
  • 2,558
  • 1
  • 17
  • 38
1
vote
0 answers

Defining my own OrderedType in Coq

To try to understand how to define my own OrderedType in Coq, I'm working my way through the examples of OrderedTypes given in the standard library in Coq.Structures.OrderedTypeEx (here). As of right now I'm only concerned with the first couple of…
setholopolus
  • 253
  • 3
  • 17
1
vote
2 answers

How to control emacs to split window when interpret Coq

I am studing Coq with emacs. I spilt the emacs window vertically, the left is document and the right is code editing area. when I interpret Coq program, the result will show in the left window and cover the document. This bothers me. Whether there…
金琪琦
  • 11
  • 1
1
vote
1 answer

Tensorflow / Deepmind: how do I take actions from observations for math algorithms related to proofs?

This question is to ask for directions/suggestions/help on the use of deepmind opensource libraries: https://github.com/deepmind/lab or https://www.tensorflow.org/ in Python. Consider that I'm new to concepts like deep learning and AI. Questions…
1
vote
1 answer

Proof General's cursor is covering up my code when used in the terminal

When I'm using emacs in windowed mode, everything seems fine. However, when in the terminal, Proof General's cursor (indicating where it is in the code) covers up the first two characters of the line it's on. This looks like a bug, but perhaps it's…
limp_chimp
  • 13,475
  • 17
  • 66
  • 105
1
vote
1 answer

Remove arrow in Emacs' ProofGeneral mode for Coq

I'm using ProofGeneral with Coq. When I do C-c C-return, Emacs highlights the area Coq has processed. This is nice. However, it inserts a '=>' on the next line, which overwrites the first two characters of your input. For example, currently I'm…
seanmcl
  • 9,740
  • 3
  • 39
  • 45
0
votes
0 answers

displaying file position in Proof General

In Emacs/Proof General, I'm wondering if there is support for letting a proof assistant do either of the following things: (1) Open a new window displaying a given file/character position; (2) Display in either the goal or response windows a…
0
votes
2 answers

Replace element in Coq list

I am writing Coq code that needs to modify lists, particularly by accessing an index i, applying a function to that element, and replacing it back. I know I can acces the elemenent of a list by using nth as defined in Coq.Lists.List. Then, I could…
epelaez
  • 132
  • 10
0
votes
2 answers

Proving Binary Tree Properties

As an exercise for myself, I'm trying to define and prove a few properties on binary trees. Here's my btree definition: Inductive tree : Type := | Leaf | Node (x : nat) (t1 : tree) (t2 : tree). The first property I wanted to prove is that the…