Rocq proof terms formerly Coq

Closing an equationreflexivity

reflexivity closes x = x with eq_refl.

Tactic script

Theorem refl_ex : 2 + 2 = 4.
Proof.
  reflexivity.
Qed.

Proof term

MMMMMMMMMM
reflexivity. built eq_refl
eq_refl

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

reflexivity in Rocq (Coq)

reflexivity closes x = x with eq_refl.

General shape: eq_refl. Closes x = x (up to computation) with the proof of reflexivity of =.

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 refl_ex : 2 + 2 = 4. Starts with a single hole whose type is the statement.
    ?Goal

    1 open goal: ?Goal

  2. reflexivity. Built eq_refl.
    eq_refl

    No holes left: the term is complete.

  3. Qed. The kernel type-checks the finished term against the statement.
    refl_ex
    : 2 + 2 = 4

    Print Assumptions: Closed under the global context

Other tactics