ltac Questions
2
Solved
Let’s say I have a fancy tactic that solves lemmas of a certain kind:
Ltac solveFancy :=
some_preparation;
repeat (first [important_step1 | important_step2];
some_cleanup);
solve_basecase.
N...
1
Solved
I have a goal that contains a call to some lemma foo within branch of a match. That call uses as one of its arguments a variable R local to the branch:
| SomeConstr => fun R => .... (foo a b...
3
Solved
How can I invoke rewrite in ltac to only rewrite one occurrence? I think coq's documentation mentions something about rewrite at but I haven't been able to actually use it in practice and there are...
Haleyhalf asked 1/8, 2017 at 2:8
2
Solved
When implementing a complex tactic in Ltac, there are some Ltac commands or tactic invocation that I expect to fail and where that is expected (e.g. to terminate a repeat, or to cause backtracking)...
Extrovert asked 14/7, 2017 at 17:56
1
Solved
I want to make a Ltac tactic in coq which would take either 1 or 3 arguments. I have read about ltac_No_arg in the LibTactics module but if I understood it correctly I would have to invoke my tacti...
1
Solved
In coq, the destruct tactic has a variant accepting an "conjunctive disjunctive introduction pattern" that allows the user to assign names to introduced variables, even when unpacking complex induc...
1
Solved
I am trying to write a rule for hypotheses, formulated with a help of match construction:
Goal forall x:nat, (match x with | 1 => 5 | _ => 10 end = 5 -> x = 1)%nat.
intros.
x : nat
H : m...
1
Solved
While trying to create an Ltac definition that loops over a variable-length argument list, I encountered the following unexpected behavior on Coq 8.4pl2. Can anyone explain it to me?
Ltac ltac_loo...
1
© 2022 - 2024 — McMap. All rights reserved.