Rocq proof terms formerly Coq

Giving the term directlyexact t

exact t fills the hole with t itself.

Tactic script

Theorem exact_ex : forall P : Prop, P -> P.
Proof.
  intros P p.
  exact p.
Qed.

Proof term

MMMMMMMMMM
exact p. built p
(fun (P : Prop) (p : P) => p)

No goals left

Every hole is filled: the term is complete.

built by the current tactichole: a goal still to fillearlier tactics greyed · later ones dashed

exact t in Rocq (Coq)

exact t fills the hole with t itself.

General shape: t. The hole is filled with the term you give.

Step by step: the proof term after each sentence

Recorded from Coq with Show Proof. after every sentence. Teal is what the sentence built; ?Goal pills are holes still to fill.

  1. Theorem exact_ex : forall P : Prop, P -> P. Starts with a single hole whose type is the statement.
    ?Goal

    1 open goal: ?Goal

  2. intros P p. Built (fun (P : Prop) (p : P) => ?Goal).
    (fun (P : Prop) (p : P) => ?Goal)

    1 open goal: ?Goal

  3. exact p. Built p.
    (fun (P : Prop) (p : P) => p)

    No holes left: the term is complete.

  4. Qed. The kernel type-checks the finished term against the statement.
    exact_ex
    : forall P : Prop, P -> P

    Print Assumptions: Closed under the global context

Other tactics