Skip to content

add tactic all_hyps#1426

Open
bodeveix wants to merge 11 commits into
Deducteam:masterfrom
bodeveix:all_hyps
Open

add tactic all_hyps#1426
bodeveix wants to merge 11 commits into
Deducteam:masterfrom
bodeveix:all_hyps

Conversation

@bodeveix

Copy link
Copy Markdown
Collaborator

The tactic all_hyps t and the tactic term #all_hyps t runs the parameterised tactic t on all the hypotheses, ignoring failing calls.

Comment thread src/handle/tactic.ml Outdated
let h = try handle ps (p_tactic ss g env pos t)
with Fatal _ -> ps in
all_assumptions h al
in all_assumptions ps gt.goal_hyps

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same remarks as previous PR: tac -> t, al -> env, p -> a, log, etc.
you can also unfold v

could you please implement that function with List.fold_left?

and make the tactic fail in case all calls failed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants