# But It Was True When I Checked: Compiling SHOP-Style Method Preconditions into Partially-Ordered HTN Planning

하지만 확인했을 때는 참이었다: SHOP 스타일 메서드 전제조건을 부분 순서 HTN 계획으로 컴파일하기

Harrison Oates · arXiv · 2026년 11월 8일

- **연구 문제** SHOP2 계열의 first-action 의미론과 HDDL의 검사 기반 의미론은 부분순서 계획에서 달라지며, 이 논문은 first-action 의미론을 전제조건 없는 표준 부분순서 HTN 계획으로 컴파일하는 방법을 제시합니다.
- **연구 방법** 각 메서드의 첫 행동을 만들 하위 작업을 표시하고, free/lock 두 사실로 잠금 구간을 만들어 전제조건 검사를 첫 행동 직전 상태에 묶습니다.
- **주요 결과** 정리 1은 컴파일된 문제의 해 언어를 투영하면 first-action 해 언어와 같다고 제시하며, 크기는 일반적으로 O(\|P\|^2), 전순서 메서드에서는 O(\|P\|)입니다.

## HDDL과 SHOP2의 메서드 전제조건 의미 차이

HTN 계획에서 메서드 전제조건은 메서드를 언제 적용할 수 있는지를 정합니다. 그런데 SHOP2 계열은 전제조건이 메서드의 첫 번째 행동 직전에 성립해야 한다고 해석하고, HDDL은 전제조건을 보조 검사 행동으로 메서드 시작 쪽에서 한 번 확인합니다. 전순서에서는 두 해석이 일치하지만, 부분순서에서는 검사 이후 메서드 시작 전에 끼어든 무관한 행동이 전제조건을 무효화할 수 있습니다. 예시에서 가게 문을 닫는 행동이 이 경우에 해당합니다. HDDL은 first-action 의미론이 컴파일하기 어렵다는 이유로 약한 의미론을 택했고, 이 전환이 부분순서 HTN 계획에서 해결되지 않은 문제로 남아 있었습니다.

이 논문은 이 질문에 답하고자 합니다.

## 첫 행동 의미론의 컴파일 구조

논문은 각 메서드를 두 번째 단계 변형들로 나눕니다. 변형마다 메서드 첫 번째 행동을 만들어야 하는 하위 작업을 표시하고, 표시된 작업이 복합이면 표시 의무를 하위 메서드로 넘깁니다. 표시된 작업이 원자 행동이면 그 행동이 릴리스 행동이 됩니다. 잠금은 free와 lock 두 사실로 표현됩니다. 메서드 열림 검사는 전제조건과 free를 요구하고 free를 lock으로 바꿉니다. 내부 검사는 lock이 있는 상태에서 전제조건만 확인하며, 릴리스 행동은 lock을 free로 되돌립니다. 일반 행동은 free가 있을 때만 실행되므로 잠금 구간 안에서는 내부 검사와 릴리스만 진행됩니다. 원문은 이 구성에서 잠금 소유자를 명시할 필요가 없다고 설명합니다.

## 정확성과 증명 근거

정리 1은 모든 기저 문제 P에 대해 컴파일된 문제 Cpc(P)의 해 언어를 HDDL 의미론으로 투영한 결과가 first-action 해 언어 L\_first(P)와 같다고 명시합니다. 원문은 보조정리 2와 3으로 표시 체인과 잠금 구간이 체인 하나에 정확히 대응함을 증명하고, 이를 바탕으로 건전성과 완전성을 논증합니다. 또한 이 대응은 해 자체와 행동 단어를 보존하는 전단사로 제시됩니다. 원문은 이 증명을 Lean 4와 Mathlib로 형식화했다고 보고합니다. 다만 이는 저자가 보고한 기계 검증이며, 이 해설에서는 해당 정리의 조건부 범위를 그대로 유지합니다.

## 크기와 구조 보존

메서드 수는 메서드마다 최소 하위 작업 수에 따라 늘어납니다. 원문은 이 구성을 일반적으로 O(\|P\|^2) 크기로 보고하고, 모든 메서드가 전순서이면 O(\|P\|)로 줄어든다고 명시합니다. 또한 전순서, 비순환성, 꼬리 재귀와 정규성이 보존된다고 설명합니다. 원문은 하위 작업 수에 따른 이차 크기가 필요한지는 아직 답하지 않았다고 밝힙니다. 전제조건이 없는 메서드는 검사를 생략하는 최적화를 쓸 수 있습니다.

## 적용 범위와 남은 질문

잠금 구간 제한은 잠금 구간 안에만 적용됩니다. 표시된 하위 작업과 형제 작업 사이에는 순서를 추가하지 않으므로 나머지 산출물은 다른 작업과 교차할 수 있습니다. 전제조건은 구조를 검사하지 않고 복사되므로 대상 계획기가 지원하는 전제조건 언어에 그대로 적용된다고 설명됩니다. 원문은 빈 메서드에 대한 다른 상위 전제조건 문제, 여러 전제조건 쌍을 가진 메서드, 전후 제약 등 확장 문제를 남겨 둡니다. 이 논문의 결과는 메서드 전제조건과 부분순서 HTN 계획의 정확한 컴파일을 다루며, 실험적 성능 평가는 포함하지 않습니다.

## 논문 정보

- **저자**: Harrison Oates
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 8일
- **등록일**: 2026년 11월 10일
- **수정일**: 2026년 11월 8일
- **버전**: v1
- **arXiv**: 2611.11055
- **분류**: cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.11055v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.11055v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Method preconditions specify when a method may be applied in hierarchical task network (HTN) planning, but their meaning differs under two established semantics. The SHOP planners, like the classical HTN formalism of Erol, Hendler and Nau, require the precondition to hold immediately before the method's first action. HDDL, the input language of the International Planning Competition's HTN track, instead introduces an auxiliary action to check it; under partial order, unrelated actions may invalidate the precondition before the method starts. HDDL's designers adopted this weaker semantics because the first-action reading could not easily be compiled. Subsequent work has repeatedly identified its compilation under partial order as an open question, with existing transformations limited to total order. We give a compilation of the first-action semantics into standard partially ordered HTN planning without method preconditions using only two additional facts, thereby resolving a longstanding question in the HTN planning community.

## 원문 인용

Harrison Oates (2026). But It Was True When I Checked: Compiling SHOP-Style Method Preconditions into Partially-Ordered HTN Planning. arXiv:2611.11055v1. https://arxiv.org/abs/2611.11055v1

**BibTeX**

```
@misc{oates2026true,
  title = {{But It Was True When I Checked: Compiling SHOP-Style Method Preconditions into Partially-Ordered HTN Planning}},
  author = {Harrison Oates},
  year = {2026},
  eprint = {2611.11055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.11055v1}
}
```

## 다른 논문 해설

- [Learning to Rank Propagators in Constraint Programming](https://refivu.com/papers/c113b866-d02f-420e-897f-5b5ecb0f1080-learning-to-rank-propagators-in-constraint-programming.md)
- [Spectral Bias Reduction in Local Gated ReLU Architectures](https://refivu.com/papers/14053dfd-730a-4213-9a76-d0fbdc864e12-spectral-bias-reduction-in-local-gated-relu-architectures.md)
- [Pixels over Symbols: Sensory Realism Improves Behavioral Alignment in Models of Cognition](https://refivu.com/papers/f163388c-619b-4473-b0c2-357e1b91ea25-pixels-over-symbols-sensory-realism-improves-behavioral.md)
- [Guiding future global temperature distributions with simulations and observations](https://refivu.com/papers/0f0e0eec-05c1-4800-8206-66b04e61e097-guiding-future-global-temperature-distributions-with.md)
- [How Short Is Too Short? Length-Conditional Calibration and Abstention for Detecting AI-Generated Text](https://refivu.com/papers/8b255657-6543-4f68-a396-c51596a73ede-how-short-is-too-short-length-conditional-calibration.md)
- [Beyond the Mean Gap: What Transferred-Angle QAOA Retains on a Superconducting Processor](https://refivu.com/papers/8f033d4e-6221-47eb-ba57-a9271b2927e9-beyond-the-mean-gap-what-transferred-angle-qaoa.md)
- [Think or Remember: The Exchange Rate of Agentic Inference](https://refivu.com/papers/430e6cf8-4d25-4ea8-8672-86be1d22daf9-think-or-remember-the-exchange-rate-of-agentic.md)
- [Saidzoda-CA-EmbeddingGemma-300M: One Small Embedder for Tajik, Kazakh, Uzbek and Kyrgyz](https://refivu.com/papers/3a4082ad-7541-44c2-98fe-45efa50fb286-saidzoda-ca-embeddinggemma-300m-one-small-embedder-for.md)
- [Identifiable alignment of unpaired representations](https://refivu.com/papers/d1142187-968e-4d40-b99f-8cc798e1c8a1-identifiable-alignment-of-unpaired-representations.md)
- [How to "train" a surgeon? Benchmarking generalist agents in surgical scene understanding](https://refivu.com/papers/c14fcb0f-7658-4cdb-aab2-a512b0b5e61c-how-to-train-a-surgeon-benchmarking-generalist-agents.md)
- [Matchability-Aware Conformal Prediction for Open-Ended Language Model Generation](https://refivu.com/papers/230dfc6e-2929-4e1d-8260-c6e191fb4331-matchability-aware-conformal-prediction-for-open-ended.md)
- [Locating and Repairing Domain Shift in VLM Trajectory Planning](https://refivu.com/papers/b4cf2384-2217-433a-9675-c0676f9fb38d-locating-and-repairing-domain-shift-in-vlm-trajectory.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/dfa127c3-d21a-4d60-a1c0-9b867b0008c3-but-it-was-true-when-i-checked-compiling)
