SKILL.md
Path Tactics
Automated tactics for RwEq proofs.
Import
import ComputationalPaths.Path.Rewrite.PathTactic
Primary Tactics
| Tactic |
Use Case |
path_auto |
Try first for any RwEq goal |
path_simp |
Unit elimination, inverse cancellation |
path_normalize |
Convert to right-associative form |
path_rfl |
Close reflexive goals p ≈ p |
Structural Tactics
| Tactic |
Description |
path_symm |
Apply symmetry to goal |
pathcongrleft h |
RwEq (trans p q₁) (trans p q₂) from h : RwEq q₁ q₂ |
pathcongrright h |
RwEq (trans p₁ q) (trans p₂ q) from h : RwEq p₁ p₂ |
pathcancelleft |
Close RwEq (trans (symm p) p) refl |
pathcancelright |
Close RwEq (trans p (symm p)) refl |
Quick Reference
| Goal |
Tactic |
RwEq (trans refl p) p |
path_simp |
RwEq (trans p refl) p |
path_simp |
RwEq (trans (symm p) p) refl |
pathcancelleft |
RwEq (symm (symm p)) p |
path_simp |
Preferred Style
Use calc with ≈ notation:
calc p
_ ≈ p' := rweq_cmpA_refl_left
_ ≈ q := rweq_symm rweq_tt