From Stdlib Require Import Classical Relations. From Hammer Require Import Hammer Tactics. Section Pilot. (* Vocabulary. Nothing is assumed about any of these. *) Variable Thing : Type. Variable Gives : Thing -> Thing -> Prop. (* Gives y x : y gives existence to x *) Variable Through : Thing -> Thing -> Prop. (* Through x y : x has its existence through y *) Variable Exists : Thing -> Prop. (* x exists *) Variable Ess : Thing -> Prop. (* x's existence is from its own nature *) Variable PartOf : Thing -> Thing -> Prop. (* p is a part of u *) Variable Universe : Thing. (* the universe *) (* Definitions. *) Definition DependsOn (x y : Thing) : Prop := Gives y x. (* x depends on y *) Definition ThroughAnother (x : Thing) : Prop := exists y, Gives y x. Definition OfItself (x : Thing) : Prop := Exists x /\ ~ ThroughAnother x. Definition Necessary (x : Thing) : Prop := Exists x /\ Ess x. Definition Possible (x : Thing) : Prop := Exists x /\ ~ Ess x. Definition InUniverse (x : Thing) : Prop := x = Universe \/ PartOf x Universe. (* Approved postulates, written as definitions: a theorem uses one only when its statement lists it as a condition. *) Definition MP001 : Prop := forall x y, Gives y x -> ~ Through y x. (* a giver does not have its existence through what it gives existence to *) Definition MP002 : Prop := forall x y, Gives y x -> Through x y. (* the receiver has its existence through the giver *) Definition MP003 : Prop := forall x y z, Through x y -> Through y z -> Through x z. (* existence-through is inherited *) Definition MP008 : Prop := forall x, Exists x -> ~ ThroughAnother x -> Ess x. (* existence comes from one's nature or from a giver *) Definition OP001 : Prop := forall x y, Gives y x -> OfItself y. (* only what exists of itself gives existence *) Definition OP006 : Prop := exists x, InUniverse x /\ Possible x. (* the universe is not wholly necessary *) Definition SP001 : Prop := exists x, Exists x. (* something exists *) (* Added for the full test: aggregates, possible worlds, and their postulates. *) Variable MemberOf : Thing -> Thing -> Prop. (* p is a member of the aggregate a *) Variable World : Type. Variable ExistsIn : World -> Thing -> Prop. (* x exists in world w *) Definition Independent (x : Thing) : Prop := forall y, ~ DependsOn x y. Definition NonExistencePossible (x : Thing) : Prop := exists w, ~ ExistsIn w x. Definition AggregateOfPossibles (A : Thing) : Prop := (forall p, p <> A -> (MemberOf p A <-> Possible p)) /\ ~ MemberOf A A. Definition MP007 : Prop := forall x, Ess x -> forall w, ExistsIn w x. (* existence from one's nature cannot fail *) Definition MP009 : Prop := (exists p, Possible p) -> exists A, AggregateOfPossibles A /\ Exists A. (* the aggregate of possibles exists *) Definition MP010 : Prop := forall A, (exists p, MemberOf p A) -> (forall p, MemberOf p A -> ~ Ess p) -> ~ Ess A. (* possibles do not add up to a necessary *) Definition MP011 : Prop := forall c A p, Gives c A -> MemberOf p A -> clos_trans Thing Gives c p. (* giving to a whole gives to its members *) Definition MP012 : Prop := forall y x, Gives y x -> Exists y. (* a giver exists *) Set Hammer ATPLimit 20. Set Hammer ReconstrLimit 10. Lemma imkan_s10_cause_necessary_L1 : MP002 -> MP003 -> forall x y, clos_trans Thing Gives x y -> Through y x. Proof. intros; match goal with H : clos_trans _ _ _ _ |- _ => induction H end; firstorder eauto. Qed. Lemma imkan_s10_cause_necessary_L2 : MP001 -> forall x y, Gives y x -> Through y x -> False. Proof. intros; firstorder. Qed. Lemma imkan_s10_cause_necessary_L3 : MP001 -> MP002 -> MP003 -> forall x y, clos_trans Thing Gives x y -> ~ Gives y x. Proof. pose proof imkan_s10_cause_necessary_L1 as sub1. pose proof imkan_s10_cause_necessary_L2 as sub2. intros; firstorder. Qed. Lemma imkan_s10_cause_necessary_L4 : MP001 -> MP002 -> forall A c, Gives c A -> c <> A. Proof. unfold MP001, MP002, MP003, MP007, MP008, MP009, MP010, MP011, MP012, OP001, OP006, SP001, OfItself, ThroughAnother, Necessary, Possible, InUniverse, DependsOn, Independent, NonExistencePossible, AggregateOfPossibles in *; intros; hauto lq: on drew: off. Qed. Lemma imkan_s10_cause_necessary_L5 : MP002 -> MP003 -> forall x y, clos_trans Thing Gives y x -> Through x y. Proof. intros; match goal with H : clos_trans _ _ _ _ |- _ => induction H end; firstorder eauto. Qed. Lemma imkan_s10_cause_necessary_L6 : MP001 -> forall x y, Gives x y -> Through x y -> False. Proof. intros; firstorder. Qed. Lemma imkan_s10_cause_necessary_L7 : MP001 -> MP002 -> MP003 -> forall x y, Gives x y -> clos_trans Thing Gives y x -> False. Proof. pose proof imkan_s10_cause_necessary_L5 as sub1. pose proof imkan_s10_cause_necessary_L6 as sub2. intros; firstorder. Qed. Lemma imkan_s10_cause_necessary_L8 : MP002 -> MP003 -> forall x y : Thing, clos_trans Thing Gives y x -> Through x y. Proof. intros; match goal with H : clos_trans _ _ _ _ |- _ => induction H end; firstorder eauto. Qed. Lemma imkan_s10_cause_necessary_L9 : MP001 -> forall x y : Thing, Gives x y -> Through x y -> False. Proof. intros; firstorder. Qed. Lemma imkan_s10_cause_necessary_L10 : MP001 -> MP002 -> MP003 -> forall x y : Thing, Gives x y -> clos_trans Thing Gives y x -> False. Proof. pose proof imkan_s10_cause_necessary_L8 as sub1. pose proof imkan_s10_cause_necessary_L9 as sub2. intros; firstorder. Qed. Lemma imkan_s10_cause_necessary_L11 : forall x : Thing, clos_trans Thing Gives x x -> exists y : Thing, Gives x y /\ clos_trans Thing Gives y x. Proof. intros; hauto lq: on use: clos_trans_t1n, clos_t1n_trans unfold: relation inv: clos_trans_1n. Qed. Lemma imkan_s10_cause_necessary_L12 : MP011 -> forall A c : Thing, Gives c A -> MemberOf c A -> clos_trans Thing Gives c c. Proof. intros; firstorder. Qed. Lemma imkan_s10_cause_necessary_L13 : MP011 -> MP001 -> MP002 -> MP003 -> forall A c, Gives c A -> ~ MemberOf c A. Proof. pose proof imkan_s10_cause_necessary_L10 as sub1. pose proof imkan_s10_cause_necessary_L11 as sub2. pose proof imkan_s10_cause_necessary_L12 as sub3. intros; sauto lq: on drew: off. Qed. Lemma imkan_s10_cause_necessary_L14 : forall A c, AggregateOfPossibles A -> c <> A -> ~ MemberOf c A -> Exists c -> Ess c. Proof. unfold MP001, MP002, MP003, MP007, MP008, MP009, MP010, MP011, MP012, OP001, OP006, SP001, OfItself, ThroughAnother, Necessary, Possible, InUniverse, DependsOn, Independent, NonExistencePossible, AggregateOfPossibles in *; intros; apply NNPP; intro; firstorder. Qed. Lemma imkan_s10_cause_necessary_L15 : MP011 -> MP001 -> MP002 -> MP003 -> forall A c, AggregateOfPossibles A -> Gives c A -> Exists c -> Ess c. Proof. pose proof imkan_s10_cause_necessary_L7 as sub1. pose proof imkan_s10_cause_necessary_L13 as sub2. pose proof imkan_s10_cause_necessary_L14 as sub3. intros; sauto lq: on drew: off. Qed. Lemma imkan_s10_cause_necessary_L16 : MP001 -> MP002 -> MP003 -> MP011 -> MP012 -> forall A c, AggregateOfPossibles A -> Gives c A -> Necessary c. Proof. pose proof imkan_s10_cause_necessary_L3 as sub1. pose proof imkan_s10_cause_necessary_L4 as sub2. pose proof imkan_s10_cause_necessary_L15 as sub3. unfold MP001, MP002, MP003, MP007, MP008, MP009, MP010, MP011, MP012, OP001, OP006, SP001, OfItself, ThroughAnother, Necessary, Possible, InUniverse, DependsOn, Independent, NonExistencePossible, AggregateOfPossibles in *; intros; firstorder. Qed. End Pilot. Print Assumptions imkan_s10_cause_necessary_L16.