interplane-forge
INTERPLANE Forge
Brought by drakestapleton
interplane-forge / docs / salvage / Visibility.lean
| 1 | /- The Boolean decision used by slpubgate. This is a proof of the decision predicate, |
| 2 | not a proof of the compiler, authentication, filesystem, sandbox, or whole application. -/ |
| 3 | def publicPart (published passingReceipt publicParent : Bool) : Bool := |
| 4 | (published && passingReceipt) && publicParent |
| 5 | |
| 6 | theorem public_requires_receipt (p r a : Bool) : |
| 7 | publicPart p r a = true → r = true := by |
| 8 | cases p <;> cases r <;> cases a <;> decide |
| 9 | |
| 10 | theorem withdrawn_parent_hides_part (p r : Bool) : |
| 11 | publicPart p r false = false := by |
| 12 | cases p <;> cases r <;> decide |
| 13 | |
| 14 | theorem draft_is_not_public (r a : Bool) : |
| 15 | publicPart false r a = false := by |
| 16 | cases r <;> cases a <;> decide |
| 17 | |
| 18 | theorem all_requirements_suffice : publicPart true true true = true := rfl |
| 19 | |
| 20 | #print axioms public_requires_receipt |
| 21 | #print axioms withdrawn_parent_hides_part |
| 22 | #print axioms draft_is_not_public |
| 23 | #print axioms all_requirements_suffice |