fork download
  1. import Mathlib
  2.  
  3. set_option linter.unusedSectionVars false
  4.  
  5. universe u
  6.  
  7. namespace CFRT
  8.  
  9. open Classical
  10. open scoped BigOperators
  11.  
  12. variable {α : Type u}
  13.  
  14. /- ====================================================
  15. CORE FOUNDATIONS
  16. ==================================================== -/
  17.  
  18. class FiniteUniverse (α : Type u) where
  19. elems : Finset α
  20.  
  21. /- ====================================================
  22. SYSTEM
  23. ==================================================== -/
  24.  
  25. structure LocalSystem (α : Type u) where
  26. update : α → α → α
  27. Neighbor : α → α → Prop
  28.  
  29. /- ====================================================
  30. MODEL CLASSES
  31.  
  32. These predicates classify computable model families without
  33. committing to probabilistic or continuum semantics.
  34. ==================================================== -/
  35.  
  36. inductive ModelKind where
  37. | finiteExample
  38. | lattice
  39. | randomGraph
  40. | hypergraph
  41. | scaleFree
  42. deriving DecidableEq, Repr
  43.  
  44. structure ClassifiedModel (α : Type u) where
  45.  
  46. system :
  47. LocalSystem α
  48.  
  49. kind :
  50. ModelKind
  51.  
  52. def LatticeLike
  53. (S : LocalSystem α)
  54. : Prop :=
  55.  
  56. ∃ rank : α → Int,
  57. ∀ x y,
  58. S.Neighbor x y →
  59. rank y = rank x + 1
  60.  
  61. def RandomGraphLike
  62. (S : LocalSystem α)
  63. : Prop :=
  64.  
  65. ∃ weight : α → α → Real,
  66. ∀ x y,
  67. S.Neighbor x y →
  68. 0 ≤ weight x y ∧ weight x y ≤ 1
  69.  
  70. def LinearLatticeSystem
  71. (n : Nat)
  72. : LocalSystem (Fin n)
  73. where
  74.  
  75. update :=
  76. fun _ y =>
  77. y
  78.  
  79. Neighbor :=
  80. fun x y =>
  81. y.val = x.val + 1
  82.  
  83. def WeightedGraphSystem
  84. (weight : α → α → Real)
  85. (update : α → α → α)
  86. : LocalSystem α
  87. where
  88.  
  89. update :=
  90. update
  91.  
  92. Neighbor :=
  93. fun x y =>
  94. 0 < weight x y
  95.  
  96. def HypergraphNeighbor
  97. (Hyperedge : Finset α → Prop)
  98. (x y : α)
  99. : Prop :=
  100.  
  101. ∃ e : Finset α,
  102. Hyperedge e ∧ x ∈ e ∧ y ∈ e
  103.  
  104. def HypergraphGeneratedSystem
  105. (Hyperedge : Finset α → Prop)
  106. (update : α → α → α)
  107. : LocalSystem α
  108. where
  109.  
  110. update :=
  111. update
  112.  
  113. Neighbor :=
  114. HypergraphNeighbor Hyperedge
  115.  
  116. def HubCausalSystem
  117. (hub : α)
  118. (update : α → α → α)
  119. : LocalSystem α
  120. where
  121.  
  122. update :=
  123. update
  124.  
  125. Neighbor :=
  126. fun x y =>
  127. x = hub ∧ y ≠ hub
  128.  
  129. structure HypergraphLocalSystem (α : Type u) where
  130.  
  131. system :
  132. LocalSystem α
  133.  
  134. Hyperedge :
  135. Finset α → Prop
  136.  
  137. realizesNeighbor :
  138. ∀ {x y : α},
  139. system.Neighbor x y →
  140. ∃ e : Finset α,
  141. Hyperedge e ∧ x ∈ e ∧ y ∈ e
  142.  
  143. noncomputable def UndirectedDegree
  144. [Fintype α]
  145. (S : LocalSystem α)
  146. (x : α)
  147. : Nat :=
  148. by
  149. classical
  150. exact
  151. (Finset.univ.filter
  152. (fun y : α =>
  153. S.Neighbor x y ∨ S.Neighbor y x)).card
  154.  
  155. noncomputable def ScaleFreeLike
  156. [Fintype α]
  157. (S : LocalSystem α)
  158. : Prop :=
  159.  
  160. ∃ hub : α,
  161. ∀ x,
  162. UndirectedDegree S x ≤ UndirectedDegree S hub
  163.  
  164. noncomputable def IsModelKind
  165. [Fintype α]
  166. (S : LocalSystem α)
  167. : ModelKind → Prop
  168. | ModelKind.finiteExample =>
  169. ∃ x y : α,
  170. S.Neighbor x y ∧
  171. S.update x y ≠ S.update y x
  172. | ModelKind.lattice =>
  173. LatticeLike S
  174. | ModelKind.randomGraph =>
  175. RandomGraphLike S
  176. | ModelKind.hypergraph =>
  177. ∃ H : HypergraphLocalSystem α,
  178. H.system = S
  179. | ModelKind.scaleFree =>
  180. ScaleFreeLike S
  181.  
  182. structure VerifiedModel
  183. (α : Type u)
  184. [Fintype α]
  185. where
  186.  
  187. system :
  188. LocalSystem α
  189.  
  190. kind :
  191. ModelKind
  192.  
  193. witness :
  194. IsModelKind system kind
  195.  
  196. /- ====================================================
  197. NONCOMMUTATIVITY
  198.  
  199. Local dependency needs both noncommutativity and locality.
  200. ==================================================== -/
  201.  
  202. def NonCommutative (S : LocalSystem α) : Prop :=
  203. ∃ x y : α,
  204. S.Neighbor x y ∧
  205. S.update x y ≠ S.update y x
  206.  
  207. /- ====================================================
  208. LOCAL DEPENDENCY
  209. ==================================================== -/
  210.  
  211. inductive LocalDepends (S : LocalSystem α) : α → α → Prop where
  212.  
  213. | mk {x y : α} :
  214. S.Neighbor x y →
  215. S.update x y ≠ S.update y x →
  216. LocalDepends S x y
  217.  
  218. /- ====================================================
  219. OPERATOR-LIKE NONCOMMUTATIVITY
  220.  
  221. This is the first quantum-like layer. We do not assume a
  222. Hilbert space yet; we only record that update acts as a
  223. noncommuting local operator.
  224. ==================================================== -/
  225.  
  226. def UpdateOperator
  227. (S : LocalSystem α)
  228. (x : α)
  229. : α → α :=
  230.  
  231. fun y =>
  232. S.update x y
  233.  
  234. def OperatorCommutatorWitness
  235. (S : LocalSystem α)
  236. (x y : α)
  237. : Prop :=
  238.  
  239. UpdateOperator S x y
  240. ≠
  241. UpdateOperator S y x
  242.  
  243. def QuantumLike
  244. (S : LocalSystem α)
  245. : Prop :=
  246.  
  247. ∃ x y,
  248. OperatorCommutatorWitness S x y
  249.  
  250. theorem local_dependency_has_operator_commutator
  251. (S : LocalSystem α)
  252. :
  253. ∀ x y,
  254. LocalDepends S x y →
  255. OperatorCommutatorWitness S x y
  256. :=
  257. by
  258. intro x y hdep
  259. unfold OperatorCommutatorWitness UpdateOperator
  260. cases hdep with
  261. | mk _ hneq =>
  262. exact hneq
  263.  
  264. theorem noncomm_generates_operator_commutator
  265. (S : LocalSystem α)
  266. (h : NonCommutative S)
  267. :
  268. QuantumLike S
  269. :=
  270. by
  271. rcases h with ⟨x,y,_hN,hneq⟩
  272. unfold QuantumLike OperatorCommutatorWitness UpdateOperator
  273. exact ⟨x,y,hneq⟩
  274.  
  275. structure QuantumStructure (α : Type u) where
  276.  
  277. operator :
  278. α → α → α
  279.  
  280. commutator :
  281. α → α → Prop
  282.  
  283. nonzero :
  284. ∃ x y,
  285. commutator x y
  286.  
  287. def BuildQuantumStructure
  288. (S : LocalSystem α)
  289. (h : NonCommutative S)
  290. : QuantumStructure α
  291. where
  292.  
  293. operator :=
  294. S.update
  295.  
  296. commutator :=
  297. OperatorCommutatorWitness S
  298.  
  299. nonzero :=
  300. noncomm_generates_operator_commutator S h
  301.  
  302. /- ====================================================
  303. HILBERT-LIKE QUANTUM SEED
  304.  
  305. This is intentionally minimal: amplitudes are complex-valued
  306. states, and BornWeight is available for later probabilistic
  307. structure.
  308. ==================================================== -/
  309.  
  310. structure AmplitudeState (α : Type u) where
  311.  
  312. amp :
  313. α → Complex
  314.  
  315. noncomputable def ZeroAmplitudeState
  316. (α : Type u)
  317. : AmplitudeState α
  318. where
  319.  
  320. amp :=
  321. fun _ =>
  322. 0
  323.  
  324. noncomputable def BornWeight
  325. (ψ : AmplitudeState α)
  326. (x : α)
  327. : Real :=
  328.  
  329. Complex.normSq (ψ.amp x)
  330.  
  331. structure UnitaryLike (α : Type u) where
  332.  
  333. evolve :
  334. AmplitudeState α → AmplitudeState α
  335.  
  336. preservesBornWeight :
  337. ∀ ψ x,
  338. BornWeight (evolve ψ) x = BornWeight ψ x
  339.  
  340. structure HilbertQuantumSeed (α : Type u) where
  341.  
  342. quantum :
  343. QuantumStructure α
  344.  
  345. state :
  346. AmplitudeState α
  347.  
  348. noncomputable def BuildHilbertQuantumSeed
  349. (S : LocalSystem α)
  350. (h : NonCommutative S)
  351. : HilbertQuantumSeed α
  352. where
  353.  
  354. quantum :=
  355. BuildQuantumStructure S h
  356.  
  357. state :=
  358. ZeroAmplitudeState α
  359.  
  360. theorem unitary_like_preserves_born_weight
  361. (U : UnitaryLike α)
  362. :
  363. ∀ ψ x,
  364. BornWeight (U.evolve ψ) x = BornWeight ψ x
  365. :=
  366. by
  367. intro ψ x
  368. exact U.preservesBornWeight ψ x
  369.  
  370. theorem noncommutativity_generates_hilbert_seed
  371. (S : LocalSystem α)
  372. :
  373. NonCommutative S →
  374. ∃ Q : HilbertQuantumSeed α,
  375. Q.quantum.operator = S.update
  376. :=
  377. by
  378. intro h
  379. exact ⟨BuildHilbertQuantumSeed S h, rfl⟩
  380.  
  381. theorem noncommutativity_generates_quantum_structure
  382. (S : LocalSystem α)
  383. :
  384. NonCommutative S →
  385. ∃ Q : QuantumStructure α,
  386. Q.operator = S.update
  387. ∧
  388. Q.commutator = OperatorCommutatorWitness S
  389. :=
  390. by
  391. intro h
  392. exact ⟨BuildQuantumStructure S h, rfl, rfl⟩
  393.  
  394. /- ====================================================
  395. CAUSAL CHAIN
  396. ==================================================== -/
  397.  
  398. inductive Chain (S : LocalSystem α) : α → α → Prop where
  399.  
  400. | direct {x y : α} :
  401. LocalDepends S x y →
  402. Chain S x y
  403.  
  404. | trans {x y z : α} :
  405. Chain S x y →
  406. Chain S y z →
  407. Chain S x z
  408.  
  409. /- ====================================================
  410. ACYCLICITY
  411. ==================================================== -/
  412.  
  413. def Acyclic (S : LocalSystem α) : Prop :=
  414. ∀ x : α,
  415. ¬ Chain S x x
  416.  
  417. /- ====================================================
  418. RECURSIVE DEPTH
  419. ==================================================== -/
  420.  
  421. inductive Depth (S : LocalSystem α) : α → Nat → Prop where
  422.  
  423. | root :
  424. ∀ x,
  425. Depth S x 0
  426.  
  427. | step {x y : α} {n : Nat} :
  428. Chain S x y →
  429. Depth S x n →
  430. Depth S y (n+1)
  431.  
  432. /- ====================================================
  433. EMERGENT TIME
  434. ==================================================== -/
  435.  
  436. def HasRecursiveTime (S : LocalSystem α) : Prop :=
  437. ∀ x : α,
  438. ∃ n,
  439. Depth S x n
  440.  
  441. /- ====================================================
  442. TEMPORAL ORDER
  443.  
  444. Temporal order is causal order plus compatible depth data.
  445. ==================================================== -/
  446.  
  447. def EarlierThan
  448. (S : LocalSystem α)
  449. (x y : α)
  450. : Prop :=
  451.  
  452. Chain S x y
  453. ∧
  454. ∃ nx ny,
  455. Depth S x nx
  456. ∧
  457. Depth S y ny
  458. ∧
  459. nx < ny
  460.  
  461. /- ====================================================
  462. IRREVERSIBILITY
  463. ==================================================== -/
  464.  
  465. def Irreversible (S : LocalSystem α) : Prop :=
  466. ∀ x y,
  467. EarlierThan S x y →
  468. ¬ EarlierThan S y x
  469.  
  470. /- ====================================================
  471. CAUSAL PROPAGATION
  472. ==================================================== -/
  473.  
  474. inductive Propagates (S : LocalSystem α) : α → α → Nat → Prop where
  475.  
  476. | direct {x y : α} :
  477. LocalDepends S x y →
  478. Propagates S x y 1
  479.  
  480. | step {x y z : α} {n : Nat} :
  481. Propagates S x y n →
  482. LocalDepends S y z →
  483. Propagates S x z (n+1)
  484.  
  485. theorem not_propagates_zero
  486. (S : LocalSystem α)
  487. :
  488. ∀ x y,
  489. ¬ Propagates S x y 0
  490. :=
  491. by
  492. intro x y h
  493. cases h
  494.  
  495. /- ====================================================
  496. FINITE PROPAGATION
  497. ==================================================== -/
  498.  
  499. def FiniteSpeed (S : LocalSystem α) : Prop :=
  500. ∀ x y,
  501. ∃ n,
  502. Propagates S x y n
  503.  
  504. /- ====================================================
  505. LIGHT CONE
  506. ==================================================== -/
  507.  
  508. def LightCone
  509. (S : LocalSystem α)
  510. (x : α)
  511. (r : Nat)
  512. : Set α :=
  513.  
  514. { y |
  515. ∃ n,
  516. n ≤ r ∧
  517. Propagates S x y n }
  518.  
  519. /- ====================================================
  520. PATH EXISTENCE
  521. ==================================================== -/
  522.  
  523. def HasPath
  524. (S : LocalSystem α)
  525. (x y : α)
  526. : Prop :=
  527.  
  528. ∃ n,
  529. Propagates S x y n
  530.  
  531. /- ====================================================
  532. CAUSAL QUANTUM DYNAMICS
  533.  
  534. Quantum amplitude evolution is coupled to causal propagation:
  535. a nonzero evolved amplitude at y must originate from a
  536. nonzero amplitude in the causal past of y.
  537. ==================================================== -/
  538.  
  539. structure CausalQuantumDynamics
  540. (S : LocalSystem α)
  541. where
  542.  
  543. evolve :
  544. AmplitudeState α → AmplitudeState α
  545.  
  546. causalSupport :
  547. ∀ ψ y,
  548. (evolve ψ).amp y ≠ 0 →
  549. ∃ x,
  550. ψ.amp x ≠ 0
  551. ∧
  552. HasPath S x y
  553.  
  554. structure CausalUnitaryDynamics
  555. (S : LocalSystem α)
  556. where
  557.  
  558. dynamics :
  559. CausalQuantumDynamics S
  560.  
  561. unitary :
  562. UnitaryLike α
  563.  
  564. sameEvolution :
  565. dynamics.evolve = unitary.evolve
  566.  
  567. theorem causal_quantum_evolution_uses_causal_past
  568. (S : LocalSystem α)
  569. (D : CausalQuantumDynamics S)
  570. :
  571. ∀ ψ y,
  572. (D.evolve ψ).amp y ≠ 0 →
  573. ∃ x,
  574. ψ.amp x ≠ 0
  575. ∧
  576. HasPath S x y
  577. :=
  578. by
  579. intro ψ y hnonzero
  580. exact D.causalSupport ψ y hnonzero
  581.  
  582. theorem causal_unitary_preserves_born_weight
  583. (S : LocalSystem α)
  584. (D : CausalUnitaryDynamics S)
  585. :
  586. ∀ ψ x,
  587. BornWeight (D.dynamics.evolve ψ) x = BornWeight ψ x
  588. :=
  589. by
  590. intro ψ x
  591. rw [D.sameEvolution]
  592. exact D.unitary.preservesBornWeight ψ x
  593.  
  594. noncomputable def ZeroCausalQuantumDynamics
  595. (S : LocalSystem α)
  596. : CausalQuantumDynamics S
  597. where
  598.  
  599. evolve :=
  600. fun _ =>
  601. ZeroAmplitudeState α
  602.  
  603. causalSupport :=
  604. by
  605. intro _ψ _y hnonzero
  606. exfalso
  607. apply hnonzero
  608. rfl
  609.  
  610. /- ====================================================
  611. CAUSAL DISTANCE
  612. ==================================================== -/
  613.  
  614. noncomputable def CausalDistance
  615. (S : LocalSystem α)
  616. (x y : α)
  617. : Nat :=
  618. by
  619. classical
  620. exact
  621. if h : HasPath S x y then
  622. Nat.find h
  623. else
  624. 0
  625.  
  626. /- ====================================================
  627. DISTANCE SPECIFICATION
  628. ==================================================== -/
  629.  
  630. theorem CausalDistance_spec
  631. (S : LocalSystem α)
  632. (x y : α)
  633. (h : HasPath S x y)
  634. :
  635. Propagates S x y
  636. (CausalDistance S x y)
  637. :=
  638. by
  639. unfold CausalDistance
  640. rw [dif_pos h]
  641. exact Nat.find_spec h
  642.  
  643. theorem CausalDistance_min
  644. (S : LocalSystem α)
  645. (x y : α)
  646. (h : HasPath S x y)
  647. (m : Nat)
  648. (hm : Propagates S x y m)
  649. :
  650. CausalDistance S x y ≤ m
  651. :=
  652. by
  653. unfold CausalDistance
  654. rw [dif_pos h]
  655. exact Nat.find_min' h hm
  656.  
  657. theorem CausalDistance_eq_one_of_propagates_one
  658. (S : LocalSystem α)
  659. (x y : α)
  660. (hprop : Propagates S x y 1)
  661. :
  662. CausalDistance S x y = 1
  663. :=
  664. by
  665. have hpath :
  666. HasPath S x y :=
  667. ⟨1,hprop⟩
  668.  
  669. have hle :
  670. CausalDistance S x y ≤ 1 :=
  671. CausalDistance_min S x y hpath 1 hprop
  672.  
  673. have hspec :
  674. Propagates S x y (CausalDistance S x y) :=
  675. CausalDistance_spec S x y hpath
  676.  
  677. have hne :
  678. CausalDistance S x y ≠ 0 := by
  679. intro hzero
  680. exact
  681. (not_propagates_zero S x y)
  682. (by
  683. simpa [hzero] using hspec)
  684.  
  685. have hge :
  686. 1 ≤ CausalDistance S x y :=
  687. Nat.succ_le_of_lt
  688. (Nat.pos_of_ne_zero hne)
  689.  
  690. exact le_antisymm hle hge
  691.  
  692. /- ====================================================
  693. HONEST PARTIAL DISTANCE
  694.  
  695. CausalDistance is total for convenience. This option-valued
  696. version keeps unreachable pairs explicit.
  697. ==================================================== -/
  698.  
  699. noncomputable def CausalDistanceOption
  700. (S : LocalSystem α)
  701. (x y : α)
  702. : Option Nat :=
  703. by
  704. classical
  705. exact
  706. if h : HasPath S x y then
  707. some (Nat.find h)
  708. else
  709. none
  710.  
  711. theorem CausalDistanceOption_some
  712. (S : LocalSystem α)
  713. (x y : α)
  714. (h : HasPath S x y)
  715. :
  716. CausalDistanceOption S x y =
  717. some (CausalDistance S x y)
  718. :=
  719. by
  720. unfold CausalDistanceOption CausalDistance
  721. simp [h]
  722.  
  723. theorem CausalDistanceOption_none
  724. (S : LocalSystem α)
  725. (x y : α)
  726. (h : ¬ HasPath S x y)
  727. :
  728. CausalDistanceOption S x y = none
  729. :=
  730. by
  731. unfold CausalDistanceOption
  732. simp [h]
  733.  
  734. /- ====================================================
  735. BASIC CAUSAL THEOREMS
  736. ==================================================== -/
  737.  
  738. theorem noncomm_generates_dependency
  739. (S : LocalSystem α)
  740. (h : NonCommutative S)
  741. :
  742. ∃ x y,
  743. LocalDepends S x y
  744. :=
  745. by
  746. rcases h with ⟨x,y,hN,hneq⟩
  747. exact
  748. ⟨x,y,
  749. LocalDepends.mk hN hneq
  750. ⟩
  751.  
  752. /- ====================================================
  753. DEPENDENCY -> CHAIN
  754. ==================================================== -/
  755.  
  756. theorem dependency_generates_chain
  757. (S : LocalSystem α)
  758. :
  759. ∀ x y,
  760. LocalDepends S x y →
  761. Chain S x y
  762. :=
  763. by
  764. intro x y hdep
  765. exact Chain.direct hdep
  766.  
  767. /- ====================================================
  768. CHAIN -> DEPTH
  769. ==================================================== -/
  770.  
  771. theorem chain_generates_depth
  772. (S : LocalSystem α)
  773. :
  774. ∀ x y,
  775. Chain S x y →
  776. ∃ n,
  777. Depth S y (n+1)
  778. :=
  779. by
  780. intro x y hchain
  781. exact
  782. ⟨0,
  783. Depth.step
  784. hchain
  785. (Depth.root x)
  786. ⟩
  787.  
  788. /- ====================================================
  789. CHAIN -> TEMPORAL ORDER
  790. ==================================================== -/
  791.  
  792. theorem chain_generates_order
  793. (S : LocalSystem α)
  794. :
  795. ∀ x y,
  796. Chain S x y →
  797. EarlierThan S x y
  798. :=
  799. by
  800. intro x y hchain
  801. exact
  802. ⟨hchain,
  803. ⟨0,1,
  804. Depth.root x,
  805. Depth.step hchain (Depth.root x),
  806. Nat.zero_lt_one
  807. ⟩
  808. ⟩
  809.  
  810. /- ====================================================
  811. DEPTH -> TEMPORAL ORDER
  812. ==================================================== -/
  813.  
  814. theorem depth_generates_order
  815. (S : LocalSystem α)
  816. :
  817. ∀ x y nx ny,
  818. Chain S x y →
  819. Depth S x nx →
  820. Depth S y ny →
  821. nx < ny →
  822. EarlierThan S x y
  823. :=
  824. by
  825. intro x y nx ny hchain hx hy hlt
  826. exact
  827. ⟨hchain,
  828. ⟨nx,ny,hx,hy,hlt⟩
  829. ⟩
  830.  
  831. /- ====================================================
  832. ACYCLICITY FORBIDS SELF-CAUSATION
  833. ==================================================== -/
  834.  
  835. theorem acyclic_no_self_chain
  836. (S : LocalSystem α)
  837. (hacy : Acyclic S)
  838. :
  839. ∀ x,
  840. ¬ Chain S x x
  841. :=
  842. by
  843. intro x
  844. exact hacy x
  845.  
  846. /- ====================================================
  847. ACYCLICITY -> IRREVERSIBILITY
  848. ==================================================== -/
  849.  
  850. theorem acyclic_generates_irreversibility
  851. (S : LocalSystem α)
  852. (hacy : Acyclic S)
  853. :
  854. Irreversible S
  855. :=
  856. by
  857. intro x y hxy hyx
  858. exact
  859. hacy x
  860. (Chain.trans hxy.1 hyx.1)
  861.  
  862. /- ====================================================
  863. PROPAGATION COMPOSITION
  864. ==================================================== -/
  865.  
  866. theorem propagation_compose
  867. (S : LocalSystem α)
  868. {x y z : α}
  869. {n m : Nat}
  870. (hxy : Propagates S x y n)
  871. (hyz : Propagates S y z m)
  872. :
  873. Propagates S x z (n+m)
  874. :=
  875. by
  876. revert x n
  877. induction hyz with
  878.  
  879. | direct hdep =>
  880. intro x n hxy
  881. simpa using
  882. Propagates.step hxy hdep
  883.  
  884. | step hyz hdep ih =>
  885. intro x n hxy
  886. have htemp :=
  887. ih hxy
  888.  
  889. simpa [Nat.add_assoc] using
  890. Propagates.step htemp hdep
  891.  
  892. /- ====================================================
  893. TRIANGLE INEQUALITY
  894. ==================================================== -/
  895.  
  896. theorem causal_triangle
  897. (S : LocalSystem α)
  898. (x y z : α)
  899. (hxy : HasPath S x y)
  900. (hyz : HasPath S y z)
  901. :
  902. CausalDistance S x z
  903. ≤
  904. CausalDistance S x y
  905. +
  906. CausalDistance S y z
  907. :=
  908. by
  909. have hxy_min :
  910. Propagates S x y (CausalDistance S x y) :=
  911. CausalDistance_spec S x y hxy
  912.  
  913. have hyz_min :
  914. Propagates S y z (CausalDistance S y z) :=
  915. CausalDistance_spec S y z hyz
  916.  
  917. have hcomp :
  918. Propagates S x z
  919. (CausalDistance S x y + CausalDistance S y z) :=
  920. propagation_compose S hxy_min hyz_min
  921.  
  922. have hpath :
  923. HasPath S x z :=
  924. ⟨_, hcomp⟩
  925.  
  926. exact
  927. CausalDistance_min
  928. S
  929. x z hpath
  930. (CausalDistance S x y + CausalDistance S y z)
  931. hcomp
  932.  
  933. /- ====================================================
  934. GEODESICS
  935. ==================================================== -/
  936.  
  937. noncomputable def IsGeodesic
  938. (S : LocalSystem α)
  939. (x y : α)
  940. (n : Nat)
  941. : Prop :=
  942.  
  943. Propagates S x y n
  944. ∧
  945. CausalDistance S x y = n
  946.  
  947. theorem minimal_path_geodesic
  948. (S : LocalSystem α)
  949. (x y : α)
  950. (h : HasPath S x y)
  951. :
  952. IsGeodesic
  953. S
  954. x
  955. y
  956. (CausalDistance S x y)
  957. :=
  958. by
  959. constructor
  960.  
  961. · exact
  962. CausalDistance_spec
  963. S x y h
  964.  
  965. · rfl
  966.  
  967. /- ====================================================
  968. METRIC BALLS
  969. ==================================================== -/
  970.  
  971. noncomputable def MetricBall
  972. (S : LocalSystem α)
  973. (x : α)
  974. (r : Nat)
  975. : Set α :=
  976.  
  977. { y |
  978. HasPath S x y
  979. ∧
  980. CausalDistance S x y ≤ r }
  981.  
  982. theorem lightcone_generates_ball
  983. (S : LocalSystem α)
  984. :
  985. ∀ x y n,
  986. Propagates S x y n →
  987. y ∈ MetricBall S x n
  988. :=
  989. by
  990. intro x y n hprop
  991.  
  992. have hpath :
  993. HasPath S x y :=
  994. ⟨n,hprop⟩
  995.  
  996. exact
  997. ⟨hpath,
  998. CausalDistance_min
  999. S
  1000. x y hpath
  1001. n hprop
  1002. ⟩
  1003.  
  1004. theorem propagation_bounds_distance
  1005. (S : LocalSystem α)
  1006. :
  1007. ∀ x y n,
  1008. Propagates S x y n →
  1009. CausalDistance S x y ≤ n
  1010. :=
  1011. by
  1012. intro x y n hprop
  1013.  
  1014. have hpath :
  1015. HasPath S x y :=
  1016. ⟨n,hprop⟩
  1017.  
  1018. exact
  1019. CausalDistance_min
  1020. S
  1021. x y hpath
  1022. n hprop
  1023.  
  1024. theorem lightcone_subset_metric_ball
  1025. (S : LocalSystem α)
  1026. (x : α)
  1027. (r : Nat)
  1028. :
  1029. LightCone S x r ⊆ MetricBall S x r
  1030. :=
  1031. by
  1032. intro y hy
  1033. rcases hy with ⟨n,hnle,hprop⟩
  1034.  
  1035. have hpath :
  1036. HasPath S x y :=
  1037. ⟨n,hprop⟩
  1038.  
  1039. exact
  1040. ⟨hpath,
  1041. le_trans
  1042. (CausalDistance_min S x y hpath n hprop)
  1043. hnle
  1044. ⟩
  1045.  
  1046. /- ====================================================
  1047. DISCRETE LORENTZ-LIKE CAUSAL CLASSIFICATION
  1048. ==================================================== -/
  1049.  
  1050. def CausalRelated
  1051. (S : LocalSystem α)
  1052. (x y : α)
  1053. : Prop :=
  1054.  
  1055. HasPath S x y
  1056.  
  1057. def NullRelated
  1058. (S : LocalSystem α)
  1059. (x y : α)
  1060. : Prop :=
  1061.  
  1062. Propagates S x y 1
  1063.  
  1064. def TimelikeRelated
  1065. (S : LocalSystem α)
  1066. (x y : α)
  1067. : Prop :=
  1068.  
  1069. ∃ n,
  1070. 1 < n
  1071. ∧
  1072. Propagates S x y n
  1073.  
  1074. def SpacelikeRelated
  1075. (S : LocalSystem α)
  1076. (x y : α)
  1077. : Prop :=
  1078.  
  1079. ¬ HasPath S x y
  1080. ∧
  1081. ¬ HasPath S y x
  1082.  
  1083. theorem null_is_causal
  1084. (S : LocalSystem α)
  1085. :
  1086. ∀ x y,
  1087. NullRelated S x y →
  1088. CausalRelated S x y
  1089. :=
  1090. by
  1091. intro x y hnull
  1092. exact ⟨1,hnull⟩
  1093.  
  1094. theorem timelike_is_causal
  1095. (S : LocalSystem α)
  1096. :
  1097. ∀ x y,
  1098. TimelikeRelated S x y →
  1099. CausalRelated S x y
  1100. :=
  1101. by
  1102. intro x y htime
  1103. rcases htime with ⟨n,_hn,hprop⟩
  1104. exact ⟨n,hprop⟩
  1105.  
  1106. theorem spacelike_not_causal
  1107. (S : LocalSystem α)
  1108. :
  1109. ∀ x y,
  1110. SpacelikeRelated S x y →
  1111. ¬ CausalRelated S x y
  1112. :=
  1113. by
  1114. intro x y hspace
  1115. exact hspace.1
  1116.  
  1117. /- ====================================================
  1118. DISCRETE LORENTZ INTERVAL
  1119.  
  1120. The sign records causal orientation. Positive means x can
  1121. influence y, negative means y can influence x, and zero is
  1122. used for causally disconnected pairs in this discrete layer.
  1123. ==================================================== -/
  1124.  
  1125. noncomputable def LorentzInterval
  1126. (S : LocalSystem α)
  1127. (x y : α)
  1128. : Int :=
  1129. by
  1130. classical
  1131. exact
  1132. if hxy : HasPath S x y then
  1133. Int.ofNat (CausalDistance S x y)
  1134. else if hyx : HasPath S y x then
  1135. - Int.ofNat (CausalDistance S y x)
  1136. else
  1137. 0
  1138.  
  1139. noncomputable def IntervalNull
  1140. (S : LocalSystem α)
  1141. (x y : α)
  1142. : Prop :=
  1143.  
  1144. LorentzInterval S x y = 1
  1145. ∨
  1146. LorentzInterval S x y = -1
  1147.  
  1148. noncomputable def IntervalTimelike
  1149. (S : LocalSystem α)
  1150. (x y : α)
  1151. : Prop :=
  1152.  
  1153. 1 < LorentzInterval S x y
  1154. ∨
  1155. LorentzInterval S x y < -1
  1156.  
  1157. noncomputable def IntervalSpacelike
  1158. (S : LocalSystem α)
  1159. (x y : α)
  1160. : Prop :=
  1161.  
  1162. x ≠ y
  1163. ∧
  1164. LorentzInterval S x y = 0
  1165.  
  1166. theorem LorentzInterval_of_hasPath
  1167. (S : LocalSystem α)
  1168. (x y : α)
  1169. (h : HasPath S x y)
  1170. :
  1171. LorentzInterval S x y =
  1172. Int.ofNat (CausalDistance S x y)
  1173. :=
  1174. by
  1175. unfold LorentzInterval
  1176. simp [h]
  1177.  
  1178. theorem null_has_unit_interval
  1179. (S : LocalSystem α)
  1180. (x y : α)
  1181. (h : NullRelated S x y)
  1182. :
  1183. LorentzInterval S x y = 1
  1184. :=
  1185. by
  1186. rw [LorentzInterval_of_hasPath S x y ⟨1,h⟩]
  1187. simpa using
  1188. congrArg Int.ofNat
  1189. (CausalDistance_eq_one_of_propagates_one S x y h)
  1190.  
  1191. theorem null_is_interval_null
  1192. (S : LocalSystem α)
  1193. :
  1194. ∀ x y,
  1195. NullRelated S x y →
  1196. IntervalNull S x y
  1197. :=
  1198. by
  1199. intro x y hnull
  1200. exact Or.inl (null_has_unit_interval S x y hnull)
  1201.  
  1202. theorem spacelike_has_zero_interval
  1203. (S : LocalSystem α)
  1204. :
  1205. ∀ x y,
  1206. SpacelikeRelated S x y →
  1207. LorentzInterval S x y = 0
  1208. :=
  1209. by
  1210. intro x y hspace
  1211. unfold LorentzInterval
  1212. simp [hspace.1, hspace.2]
  1213.  
  1214. /- ====================================================
  1215. GEODESIC DEVIATION
  1216. ==================================================== -/
  1217.  
  1218. noncomputable def GeodesicDeviation
  1219. (S : LocalSystem α)
  1220. (x y z : α)
  1221. : Int :=
  1222.  
  1223. Int.ofNat (CausalDistance S x z)
  1224. -
  1225. Int.ofNat (CausalDistance S x y)
  1226. -
  1227. Int.ofNat (CausalDistance S y z)
  1228.  
  1229. /- ====================================================
  1230. FLATNESS
  1231. ==================================================== -/
  1232.  
  1233. noncomputable def Flat (S : LocalSystem α) : Prop :=
  1234. ∀ x y z,
  1235. GeodesicDeviation S x y z = 0
  1236.  
  1237. noncomputable def LocallyFlat
  1238. (S : LocalSystem α)
  1239. (x : α)
  1240. (r : Nat)
  1241. : Prop :=
  1242.  
  1243. ∀ y z,
  1244. CausalDistance S x y ≤ r →
  1245. CausalDistance S y z ≤ r →
  1246. GeodesicDeviation S x y z = 0
  1247.  
  1248. theorem flat_implies_locally_flat
  1249. (S : LocalSystem α)
  1250. :
  1251. Flat S →
  1252. ∀ x r,
  1253. LocallyFlat S x r
  1254. :=
  1255. by
  1256. intro hflat x r y z _hy _hz
  1257. exact hflat x y z
  1258.  
  1259. /- ====================================================
  1260. CURVATURE
  1261. ==================================================== -/
  1262.  
  1263. noncomputable def Curved (S : LocalSystem α) : Prop :=
  1264. ∃ x y z,
  1265. GeodesicDeviation S x y z ≠ 0
  1266.  
  1267. noncomputable def PositiveCurvature (S : LocalSystem α) : Prop :=
  1268. ∃ x y z,
  1269. GeodesicDeviation S x y z < 0
  1270.  
  1271. noncomputable def NegativeCurvature (S : LocalSystem α) : Prop :=
  1272. ∃ x y z,
  1273. GeodesicDeviation S x y z > 0
  1274.  
  1275. /- ====================================================
  1276. FLAT SPACE EXCLUDES CURVATURE
  1277. ==================================================== -/
  1278.  
  1279. theorem flat_not_curved
  1280. (S : LocalSystem α)
  1281. :
  1282. Flat S →
  1283. ¬ Curved S
  1284. :=
  1285. by
  1286. intro hflat hcurved
  1287.  
  1288. rcases hcurved with ⟨x,y,z,hneq⟩
  1289.  
  1290. have h0 :
  1291. GeodesicDeviation S x y z = 0 :=
  1292. hflat x y z
  1293.  
  1294. exact hneq h0
  1295.  
  1296. /- ====================================================
  1297. CURVATURE HAS SIGN
  1298. ==================================================== -/
  1299.  
  1300. theorem curved_implies_signed
  1301. (S : LocalSystem α)
  1302. :
  1303. Curved S →
  1304. (
  1305. PositiveCurvature S
  1306. ∨
  1307. NegativeCurvature S
  1308. )
  1309. :=
  1310. by
  1311. intro hcurved
  1312.  
  1313. rcases hcurved with ⟨x,y,z,hneq⟩
  1314.  
  1315. have htrich :
  1316. GeodesicDeviation S x y z < 0
  1317. ∨
  1318. GeodesicDeviation S x y z > 0
  1319. :=
  1320. lt_or_gt_of_ne hneq
  1321.  
  1322. cases htrich with
  1323.  
  1324. | inl hneg =>
  1325. exact Or.inl ⟨x,y,z,hneg⟩
  1326.  
  1327. | inr hpos =>
  1328. exact Or.inr ⟨x,y,z,hpos⟩
  1329.  
  1330. /- ====================================================
  1331. CAUSAL POTENTIAL AND GRAPH-CURVATURE CANDIDATES
  1332.  
  1333. The sum of causal distances is a potential/centrality scalar,
  1334. not a Ricci tensor. RicciLike is kept as a legacy name for
  1335. the scalar response used below.
  1336. ==================================================== -/
  1337.  
  1338. noncomputable def CausalPotential
  1339. [Fintype α]
  1340. (S : LocalSystem α)
  1341. (x : α)
  1342. : Int :=
  1343. by
  1344. classical
  1345. exact
  1346. ∑ y : α,
  1347. Int.ofNat (CausalDistance S x y)
  1348.  
  1349. noncomputable def RicciLike
  1350. [Fintype α]
  1351. (S : LocalSystem α)
  1352. (x : α)
  1353. : Int :=
  1354.  
  1355. CausalPotential S x
  1356.  
  1357. noncomputable def OutDegree
  1358. [Fintype α]
  1359. (S : LocalSystem α)
  1360. (x : α)
  1361. : Nat :=
  1362. by
  1363. classical
  1364. exact
  1365. (Finset.univ.filter
  1366. (fun y : α =>
  1367. LocalDepends S x y)).card
  1368.  
  1369. noncomputable def FormanEdgeCurvatureLike
  1370. [Fintype α]
  1371. (S : LocalSystem α)
  1372. (x y : α)
  1373. : Int :=
  1374.  
  1375. 2
  1376. -
  1377. Int.ofNat (OutDegree S x)
  1378. -
  1379. Int.ofNat (OutDegree S y)
  1380.  
  1381. /- ====================================================
  1382. TRANSPORT AND HOLONOMY
  1383.  
  1384. Transport is induced by local update. Holonomy failure records
  1385. that loop transport is not the identity on at least one probe.
  1386. ==================================================== -/
  1387.  
  1388. def Transport
  1389. (S : LocalSystem α)
  1390. (x _y : α)
  1391. : α → α :=
  1392.  
  1393. fun z =>
  1394. S.update x z
  1395.  
  1396. def TransportCompose
  1397. (S : LocalSystem α)
  1398. (x y z : α)
  1399. : α → α :=
  1400.  
  1401. fun w =>
  1402. Transport S y z
  1403. (Transport S x y w)
  1404.  
  1405. def LoopTransport
  1406. (S : LocalSystem α)
  1407. (x y z : α)
  1408. : α → α :=
  1409.  
  1410. fun w =>
  1411. Transport S z x
  1412. (Transport S y z
  1413. (Transport S x y w))
  1414.  
  1415. def LoopTransportNontrivial
  1416. (S : LocalSystem α)
  1417. (x y z : α)
  1418. : Prop :=
  1419.  
  1420. ∃ w,
  1421. LoopTransport S x y z w ≠ w
  1422.  
  1423. def HolonomyFailure
  1424. (S : LocalSystem α)
  1425. (x y z : α)
  1426. : Prop :=
  1427.  
  1428. LoopTransport S x y z
  1429. ≠
  1430. (fun w => w)
  1431.  
  1432. theorem loop_transport_nontrivial_implies_holonomy_failure
  1433. (S : LocalSystem α)
  1434. :
  1435. ∀ x y z,
  1436. LoopTransportNontrivial S x y z →
  1437. HolonomyFailure S x y z
  1438. :=
  1439. by
  1440. intro x y z hnontrivial hidentity
  1441. rcases hnontrivial with ⟨w,hw⟩
  1442. apply hw
  1443. exact
  1444. congrArg
  1445. (fun f => f w)
  1446. hidentity
  1447.  
  1448. def TransportCurved
  1449. (S : LocalSystem α)
  1450. : Prop :=
  1451.  
  1452. ∃ x y z,
  1453. HolonomyFailure S x y z
  1454.  
  1455. /- ====================================================
  1456. EINSTEIN-LIKE RESPONSE
  1457.  
  1458. A response is not identified with curvature itself. It is
  1459. a nonuniform Ricci-like scalar response.
  1460. ==================================================== -/
  1461.  
  1462. noncomputable def EinsteinResponse
  1463. [Fintype α]
  1464. (S : LocalSystem α)
  1465. : Prop :=
  1466.  
  1467. ∃ x y,
  1468. RicciLike S x ≠ RicciLike S y
  1469.  
  1470. noncomputable def RicciVariation
  1471. [Fintype α]
  1472. (S : LocalSystem α)
  1473. (x y : α)
  1474. : Int :=
  1475.  
  1476. RicciLike S x - RicciLike S y
  1477.  
  1478. theorem ricci_variation_generates_response
  1479. [Fintype α]
  1480. (S : LocalSystem α)
  1481. :
  1482. ∀ x y,
  1483. RicciVariation S x y ≠ 0 →
  1484. EinsteinResponse S
  1485. :=
  1486. by
  1487. intro x y hvar
  1488. refine ⟨x,y,?_⟩
  1489. intro hsame
  1490. apply hvar
  1491. simp [RicciVariation, hsame]
  1492.  
  1493. /- ====================================================
  1494. CURVATURE WITH RICCI VARIATION GENERATES RESPONSE
  1495. ==================================================== -/
  1496.  
  1497. theorem curvature_generates_response
  1498. [Fintype α]
  1499. (S : LocalSystem α)
  1500. :
  1501. Curved S →
  1502. (∃ x y,
  1503. RicciLike S x ≠ RicciLike S y) →
  1504. EinsteinResponse S
  1505. :=
  1506. by
  1507. intro _ hresponse
  1508. exact hresponse
  1509.  
  1510. /- ====================================================
  1511. HORIZON AREA
  1512. ==================================================== -/
  1513.  
  1514. noncomputable def HorizonArea
  1515. [Fintype α]
  1516. (S : LocalSystem α)
  1517. (x : α)
  1518. (r : Nat)
  1519. : Nat :=
  1520. by
  1521. classical
  1522. exact
  1523. ((Finset.univ.filter
  1524. (fun y : α =>
  1525. HasPath S x y
  1526. ∧
  1527. CausalDistance S x y = r)).card)
  1528.  
  1529. /- ====================================================
  1530. CAUSAL MICROSTATES
  1531. ==================================================== -/
  1532.  
  1533. noncomputable def CausalMicrostates
  1534. [Fintype α]
  1535. (S : LocalSystem α)
  1536. (x : α)
  1537. (r : Nat)
  1538. : Finset α :=
  1539. by
  1540. classical
  1541. exact
  1542. Finset.univ.filter
  1543. (fun y : α =>
  1544. HasPath S x y
  1545. ∧
  1546. CausalDistance S x y ≤ r)
  1547.  
  1548. /- ====================================================
  1549. ENTROPY
  1550.  
  1551. Entropy is counted from causal microstates rather than
  1552. horizon area alone.
  1553. ==================================================== -/
  1554.  
  1555. noncomputable def Entropy
  1556. [Fintype α]
  1557. (S : LocalSystem α)
  1558. (x : α)
  1559. (r : Nat)
  1560. : Real :=
  1561.  
  1562. Real.log
  1563. (((CausalMicrostates S x r).card : Real) + 1)
  1564.  
  1565. /- ====================================================
  1566. INFORMATION DENSITY
  1567. ==================================================== -/
  1568.  
  1569. noncomputable def InformationDensity
  1570. [Fintype α]
  1571. (S : LocalSystem α)
  1572. (x : α)
  1573. (r : Nat)
  1574. : Int :=
  1575.  
  1576. Int.ofNat ((CausalMicrostates S x r).card)
  1577.  
  1578. noncomputable def InformationGradient
  1579. [Fintype α]
  1580. (S : LocalSystem α)
  1581. (x y : α)
  1582. (r : Nat)
  1583. : Int :=
  1584.  
  1585. InformationDensity S x r
  1586. -
  1587. InformationDensity S y r
  1588.  
  1589. /- ====================================================
  1590. EINSTEIN-LIKE FIELD LAW
  1591.  
  1592. This is the discrete analogue of:
  1593.  
  1594. geometry = coupling * information density.
  1595.  
  1596. It is deliberately a structure/assumption, not a theorem
  1597. from curvature alone.
  1598. ==================================================== -/
  1599.  
  1600. noncomputable def EinsteinField
  1601. [Fintype α]
  1602. (S : LocalSystem α)
  1603. (x y z : α)
  1604. (r : Nat)
  1605. (κ : Int)
  1606. : Prop :=
  1607.  
  1608. GeodesicDeviation S x y z
  1609. =
  1610. κ * InformationGradient S x z r
  1611.  
  1612. noncomputable def EinsteinLikeLaw
  1613. [Fintype α]
  1614. (S : LocalSystem α)
  1615. (r : Nat)
  1616. (κ : Int)
  1617. : Prop :=
  1618.  
  1619. ∀ x y z,
  1620. EinsteinField S x y z r κ
  1621.  
  1622. theorem einstein_like_law_equates_geometry_information
  1623. [Fintype α]
  1624. (S : LocalSystem α)
  1625. (r : Nat)
  1626. (κ : Int)
  1627. :
  1628. EinsteinLikeLaw S r κ →
  1629. ∀ x y z,
  1630. GeodesicDeviation S x y z
  1631. =
  1632. κ * InformationGradient S x z r
  1633. :=
  1634. by
  1635. intro hLaw x y z
  1636. unfold EinsteinLikeLaw EinsteinField at hLaw
  1637. exact hLaw x y z
  1638.  
  1639. theorem geodesic_deviation_generates_information_source
  1640. [Fintype α]
  1641. (S : LocalSystem α)
  1642. (x y z : α)
  1643. (r : Nat)
  1644. (κ : Int)
  1645. :
  1646. EinsteinField S x y z r κ →
  1647. GeodesicDeviation S x y z ≠ 0 →
  1648. κ * InformationGradient S x z r ≠ 0
  1649. :=
  1650. by
  1651. intro hfield hdev hzero
  1652. unfold EinsteinField at hfield
  1653. apply hdev
  1654. rw [hfield]
  1655. exact hzero
  1656.  
  1657. theorem einstein_field_deviation_iff_information_source
  1658. [Fintype α]
  1659. (S : LocalSystem α)
  1660. (x y z : α)
  1661. (r : Nat)
  1662. (κ : Int)
  1663. :
  1664. EinsteinField S x y z r κ →
  1665. (
  1666. GeodesicDeviation S x y z ≠ 0
  1667. ↔
  1668. κ * InformationGradient S x z r ≠ 0
  1669. )
  1670. :=
  1671. by
  1672. intro hfield
  1673. constructor
  1674.  
  1675. · exact
  1676. geodesic_deviation_generates_information_source
  1677. S x y z r κ hfield
  1678.  
  1679. · intro hsource hzero
  1680. unfold EinsteinField at hfield
  1681. apply hsource
  1682. rw [← hfield]
  1683. exact hzero
  1684.  
  1685. noncomputable def InformationUniform
  1686. [Fintype α]
  1687. (S : LocalSystem α)
  1688. (r : Nat)
  1689. : Prop :=
  1690.  
  1691. ∀ x z,
  1692. InformationGradient S x z r = 0
  1693.  
  1694. theorem information_uniformity_forces_zero_deviation
  1695. [Fintype α]
  1696. (S : LocalSystem α)
  1697. (r : Nat)
  1698. (κ : Int)
  1699. :
  1700. EinsteinLikeLaw S r κ →
  1701. InformationUniform S r →
  1702. ∀ x y z,
  1703. GeodesicDeviation S x y z = 0
  1704. :=
  1705. by
  1706. intro hLaw hUniform x y z
  1707. rw [
  1708. einstein_like_law_equates_geometry_information
  1709. S r κ hLaw x y z
  1710. ]
  1711. have hGradientZero :
  1712. InformationGradient S x z r = 0 :=
  1713. hUniform x z
  1714. simp [hGradientZero]
  1715.  
  1716. theorem unit_information_gradient_forces_deviation
  1717. [Fintype α]
  1718. (S : LocalSystem α)
  1719. (r : Nat)
  1720. (x y z : α)
  1721. :
  1722. EinsteinLikeLaw S r 1 →
  1723. InformationGradient S x z r ≠ 0 →
  1724. GeodesicDeviation S x y z ≠ 0
  1725. :=
  1726. by
  1727. intro hLaw hGradient hzero
  1728. have hfield :
  1729. GeodesicDeviation S x y z
  1730. =
  1731. (1 : Int) * InformationGradient S x z r :=
  1732. einstein_like_law_equates_geometry_information
  1733. S r 1 hLaw x y z
  1734.  
  1735. have hGradientZero :
  1736. InformationGradient S x z r = 0 := by
  1737. have hmul :
  1738. (1 : Int) * InformationGradient S x z r = 0 := by
  1739. rw [← hfield]
  1740. exact hzero
  1741. simpa using hmul
  1742.  
  1743. exact hGradient hGradientZero
  1744.  
  1745. /- ====================================================
  1746. HOLOGRAPHIC AREA LAW
  1747.  
  1748. The exact area law states that causal microstates at radius r
  1749. are completely represented by the horizon shell at r.
  1750. ==================================================== -/
  1751.  
  1752. noncomputable def EntropyArea
  1753. [Fintype α]
  1754. (S : LocalSystem α)
  1755. (x : α)
  1756. (r : Nat)
  1757. : Real :=
  1758.  
  1759. Real.log
  1760. ((HorizonArea S x r : Real) + 1)
  1761.  
  1762. noncomputable def HolographicAreaLaw
  1763. [Fintype α]
  1764. (S : LocalSystem α)
  1765. (x : α)
  1766. (r : Nat)
  1767. : Prop :=
  1768.  
  1769. (CausalMicrostates S x r).card
  1770. =
  1771. HorizonArea S x r
  1772.  
  1773. noncomputable def HolographicBound
  1774. [Fintype α]
  1775. (S : LocalSystem α)
  1776. (x : α)
  1777. (r : Nat)
  1778. : Prop :=
  1779.  
  1780. (CausalMicrostates S x r).card
  1781. ≤
  1782. HorizonArea S x r
  1783.  
  1784. noncomputable def WeakHolographicSystem
  1785. [Fintype α]
  1786. (S : LocalSystem α)
  1787. : Prop :=
  1788.  
  1789. ∀ x r,
  1790. HolographicBound S x r
  1791.  
  1792. noncomputable def HolographicSystem
  1793. [Fintype α]
  1794. (S : LocalSystem α)
  1795. : Prop :=
  1796.  
  1797. ∀ x r,
  1798. HolographicAreaLaw S x r
  1799.  
  1800. noncomputable def EntropyAreaProportional
  1801. [Fintype α]
  1802. (S : LocalSystem α)
  1803. (c : Real)
  1804. : Prop :=
  1805.  
  1806. ∀ x r,
  1807. Entropy S x r
  1808. =
  1809. c * EntropyArea S x r
  1810.  
  1811. theorem holographic_area_law_gives_entropy_area
  1812. [Fintype α]
  1813. (S : LocalSystem α)
  1814. (x : α)
  1815. (r : Nat)
  1816. :
  1817. HolographicAreaLaw S x r →
  1818. Entropy S x r = EntropyArea S x r
  1819. :=
  1820. by
  1821. intro hArea
  1822. unfold Entropy EntropyArea HolographicAreaLaw at *
  1823. simp [hArea]
  1824.  
  1825. theorem holographic_area_law_implies_bound
  1826. [Fintype α]
  1827. (S : LocalSystem α)
  1828. (x : α)
  1829. (r : Nat)
  1830. :
  1831. HolographicAreaLaw S x r →
  1832. HolographicBound S x r
  1833. :=
  1834. by
  1835. intro hArea
  1836. unfold HolographicAreaLaw HolographicBound at *
  1837. exact le_of_eq hArea
  1838.  
  1839. theorem holographic_system_implies_weak_bound
  1840. [Fintype α]
  1841. (S : LocalSystem α)
  1842. :
  1843. HolographicSystem S →
  1844. WeakHolographicSystem S
  1845. :=
  1846. by
  1847. intro hSystem x r
  1848. exact
  1849. holographic_area_law_implies_bound
  1850. S x r
  1851. (hSystem x r)
  1852.  
  1853. theorem holographic_system_gives_entropy_area
  1854. [Fintype α]
  1855. (S : LocalSystem α)
  1856. :
  1857. HolographicSystem S →
  1858. ∀ x r,
  1859. Entropy S x r = EntropyArea S x r
  1860. :=
  1861. by
  1862. intro hSystem x r
  1863. exact
  1864. holographic_area_law_gives_entropy_area
  1865. S x r
  1866. (hSystem x r)
  1867.  
  1868. theorem holographic_system_entropy_proportional
  1869. [Fintype α]
  1870. (S : LocalSystem α)
  1871. :
  1872. HolographicSystem S →
  1873. EntropyAreaProportional S 1
  1874. :=
  1875. by
  1876. intro hSystem x r
  1877. rw [
  1878. holographic_area_law_gives_entropy_area
  1879. S x r
  1880. (hSystem x r)
  1881. ]
  1882. simp
  1883.  
  1884. /- ====================================================
  1885. BLACK-HOLE-LIKE STRUCTURE
  1886.  
  1887. Area decrease alone does not imply trapping. We also require
  1888. geodesic obstruction beyond a radius.
  1889. ==================================================== -/
  1890.  
  1891. noncomputable def GeodesicEscape
  1892. (S : LocalSystem α)
  1893. (x : α)
  1894. (r : Nat)
  1895. : Prop :=
  1896.  
  1897. ∃ y n,
  1898. r < n
  1899. ∧
  1900. IsGeodesic S x y n
  1901.  
  1902. noncomputable def GeodesicallyTrapped
  1903. (S : LocalSystem α)
  1904. (x : α)
  1905. (r : Nat)
  1906. : Prop :=
  1907.  
  1908. ¬ GeodesicEscape S x r
  1909.  
  1910. theorem geodesic_trapping_blocks_escape
  1911. (S : LocalSystem α)
  1912. :
  1913. ∀ x r,
  1914. GeodesicallyTrapped S x r →
  1915. ¬ GeodesicEscape S x r
  1916. :=
  1917. by
  1918. intro x r htrap
  1919. exact htrap
  1920.  
  1921. theorem geodesic_trapping_forbids_beyond_radius
  1922. (S : LocalSystem α)
  1923. :
  1924. ∀ x r y,
  1925. GeodesicallyTrapped S x r →
  1926. HasPath S x y →
  1927. ¬ (CausalDistance S x y > r)
  1928. :=
  1929. by
  1930. intro x r y htrap hpath hfar
  1931. apply htrap
  1932. exact
  1933. ⟨y,
  1934. CausalDistance S x y,
  1935. hfar,
  1936. minimal_path_geodesic S x y hpath
  1937. ⟩
  1938.  
  1939. noncomputable def BlackHoleLike
  1940. [Fintype α]
  1941. (S : LocalSystem α)
  1942. (x : α)
  1943. : Prop :=
  1944.  
  1945. ∃ r,
  1946. HorizonArea S x r
  1947. >
  1948. HorizonArea S x (r+1)
  1949. ∧
  1950. GeodesicallyTrapped S x r
  1951.  
  1952. /- ====================================================
  1953. INFORMATION TRAPPING
  1954. ==================================================== -/
  1955.  
  1956. noncomputable def TrapsInformation
  1957. (S : LocalSystem α)
  1958. (x : α)
  1959. : Prop :=
  1960.  
  1961. ∃ r,
  1962. GeodesicallyTrapped S x r
  1963.  
  1964. /- ====================================================
  1965. BLACK HOLE IMPLIES TRAPPING
  1966. ==================================================== -/
  1967.  
  1968. theorem blackhole_traps_information
  1969. [Fintype α]
  1970. (S : LocalSystem α)
  1971. :
  1972. ∀ x,
  1973. BlackHoleLike S x →
  1974. TrapsInformation S x
  1975. :=
  1976. by
  1977. intro x hbh
  1978.  
  1979. rcases hbh with ⟨r,_harea,htrap⟩
  1980. exact ⟨r,htrap⟩
  1981.  
  1982. /- ====================================================
  1983. FIXED POINT OPERATOR
  1984.  
  1985. F(A,B) combines two boundary systems into a new local system.
  1986. A fixed point S satisfies F(S,S)=S.
  1987. ==================================================== -/
  1988.  
  1989. def BoundaryOperator (α : Type u) :=
  1990. LocalSystem α → LocalSystem α → LocalSystem α
  1991.  
  1992. def FixedPointOperator
  1993. (A B : LocalSystem α)
  1994. : LocalSystem α
  1995. where
  1996.  
  1997. update :=
  1998. fun x y =>
  1999. A.update
  2000. (B.update x y)
  2001. (B.update y x)
  2002.  
  2003. Neighbor :=
  2004. fun x y =>
  2005. A.Neighbor x y
  2006. ∨
  2007. B.Neighbor x y
  2008.  
  2009. def FixedPointOf
  2010. (F : BoundaryOperator α)
  2011. (S : LocalSystem α)
  2012. : Prop :=
  2013.  
  2014. F S S = S
  2015.  
  2016. theorem fixed_point_preserves_update
  2017. (F : BoundaryOperator α)
  2018. (S : LocalSystem α)
  2019. :
  2020. FixedPointOf F S →
  2021. (F S S).update = S.update
  2022. :=
  2023. by
  2024. intro hfix
  2025. exact congrArg LocalSystem.update hfix
  2026.  
  2027. theorem fixed_point_preserves_neighbor
  2028. (F : BoundaryOperator α)
  2029. (S : LocalSystem α)
  2030. :
  2031. FixedPointOf F S →
  2032. (F S S).Neighbor = S.Neighbor
  2033. :=
  2034. by
  2035. intro hfix
  2036. exact congrArg LocalSystem.Neighbor hfix
  2037.  
  2038. theorem fixed_point_operator_update_self
  2039. (S : LocalSystem α)
  2040. (x y : α)
  2041. :
  2042. (FixedPointOperator S S).update x y
  2043. =
  2044. S.update
  2045. (S.update x y)
  2046. (S.update y x)
  2047. :=
  2048. by
  2049. rfl
  2050.  
  2051. structure RecursivePhysics (α : Type u) where
  2052.  
  2053. time :
  2054. α → α → Nat
  2055.  
  2056. causal :
  2057. α → α → Prop
  2058.  
  2059. curvature :
  2060. α → α → α → Int
  2061.  
  2062. energy :
  2063. α → Int
  2064.  
  2065. noncomputable def BuildRecursivePhysics
  2066. [Fintype α]
  2067. (S : LocalSystem α)
  2068. : RecursivePhysics α
  2069. where
  2070.  
  2071. time :=
  2072. fun x y =>
  2073. CausalDistance S x y
  2074.  
  2075. causal :=
  2076. fun x y =>
  2077. HasPath S x y
  2078.  
  2079. curvature :=
  2080. fun x y z =>
  2081. GeodesicDeviation S x y z
  2082.  
  2083. energy :=
  2084. fun x =>
  2085. RicciLike S x
  2086.  
  2087. noncomputable def FixedPointGenerates
  2088. [Fintype α]
  2089. (F : BoundaryOperator α)
  2090. (S : LocalSystem α)
  2091. : Prop :=
  2092.  
  2093. FixedPointOf F S
  2094. ∧
  2095. HasRecursiveTime S
  2096. ∧
  2097. ∃ P : RecursivePhysics α,
  2098. P.time
  2099. =
  2100. (fun x y =>
  2101. CausalDistance S x y)
  2102. ∧
  2103. P.causal
  2104. =
  2105. (fun x y =>
  2106. HasPath S x y)
  2107.  
  2108. theorem fixed_point_generates_recursive_physics
  2109. [Fintype α]
  2110. (F : BoundaryOperator α)
  2111. (S : LocalSystem α)
  2112. :
  2113. FixedPointOf F S →
  2114. ∃ P : RecursivePhysics α,
  2115. P.time
  2116. =
  2117. (fun x y =>
  2118. CausalDistance S x y)
  2119. ∧
  2120. P.causal
  2121. =
  2122. (fun x y =>
  2123. HasPath S x y)
  2124. :=
  2125. by
  2126. intro _hfix
  2127. exact ⟨BuildRecursivePhysics S, rfl, rfl⟩
  2128.  
  2129. theorem fixed_point_generates_time_curvature_causality_energy
  2130. [Fintype α]
  2131. (F : BoundaryOperator α)
  2132. (S : LocalSystem α)
  2133. :
  2134. FixedPointOf F S →
  2135. FixedPointGenerates F S
  2136. :=
  2137. by
  2138. intro hfix
  2139. have htime :
  2140. HasRecursiveTime S := by
  2141. intro x
  2142. exact ⟨0, Depth.root x⟩
  2143.  
  2144. exact
  2145. ⟨hfix,
  2146. htime,
  2147. fixed_point_generates_recursive_physics F S hfix
  2148. ⟩
  2149.  
  2150. /- ====================================================
  2151. CAUSAL MORPHISMS
  2152.  
  2153. Objects are local systems. Morphisms preserve causal
  2154. reachability.
  2155. ==================================================== -/
  2156.  
  2157. structure CausalMorphism
  2158. {β : Type u}
  2159. (S : LocalSystem α)
  2160. (T : LocalSystem β)
  2161. where
  2162.  
  2163. map :
  2164. α → β
  2165.  
  2166. preservesCausal :
  2167. ∀ {x y : α},
  2168. HasPath S x y →
  2169. HasPath T (map x) (map y)
  2170.  
  2171. def CausalMorphism.id
  2172. (S : LocalSystem α)
  2173. : CausalMorphism S S
  2174. where
  2175.  
  2176. map :=
  2177. fun x =>
  2178. x
  2179.  
  2180. preservesCausal :=
  2181. by
  2182. intro x y h
  2183. exact h
  2184.  
  2185. def CausalMorphism.comp
  2186. {β γ : Type u}
  2187. {S : LocalSystem α}
  2188. {T : LocalSystem β}
  2189. {U : LocalSystem γ}
  2190. (f : CausalMorphism S T)
  2191. (g : CausalMorphism T U)
  2192. : CausalMorphism S U
  2193. where
  2194.  
  2195. map :=
  2196. fun x =>
  2197. g.map (f.map x)
  2198.  
  2199. preservesCausal :=
  2200. by
  2201. intro x y h
  2202. exact g.preservesCausal (f.preservesCausal h)
  2203.  
  2204. /- ====================================================
  2205. EMERGENT SPACETIME
  2206. ==================================================== -/
  2207.  
  2208. structure EmergentSpacetime (α : Type u) where
  2209.  
  2210. distance :
  2211. α → α → Nat
  2212.  
  2213. causal :
  2214. α → α → Prop
  2215.  
  2216. null :
  2217. α → α → Prop
  2218.  
  2219. timelike :
  2220. α → α → Prop
  2221.  
  2222. spacelike :
  2223. α → α → Prop
  2224.  
  2225. interval :
  2226. α → α → Int
  2227.  
  2228. curvature :
  2229. α → α → α → Int
  2230.  
  2231. holonomy :
  2232. α → α → α → Prop
  2233.  
  2234. energy :
  2235. α → Int
  2236.  
  2237. operatorCommutator :
  2238. α → α → Prop
  2239.  
  2240. microstates :
  2241. α → Nat → Finset α
  2242.  
  2243. entropy :
  2244. α → Nat → Real
  2245.  
  2246. /- ====================================================
  2247. CONSTRUCTION OF EMERGENT SPACETIME
  2248. ==================================================== -/
  2249.  
  2250. noncomputable def BuildSpacetime
  2251. [Fintype α]
  2252. (S : LocalSystem α)
  2253. : EmergentSpacetime α
  2254. where
  2255.  
  2256. distance :=
  2257. fun x y =>
  2258. CausalDistance S x y
  2259.  
  2260. causal :=
  2261. fun x y =>
  2262. HasPath S x y
  2263.  
  2264. null :=
  2265. fun x y =>
  2266. NullRelated S x y
  2267.  
  2268. timelike :=
  2269. fun x y =>
  2270. TimelikeRelated S x y
  2271.  
  2272. spacelike :=
  2273. fun x y =>
  2274. SpacelikeRelated S x y
  2275.  
  2276. interval :=
  2277. fun x y =>
  2278. LorentzInterval S x y
  2279.  
  2280. curvature :=
  2281. fun x y z =>
  2282. GeodesicDeviation S x y z
  2283.  
  2284. holonomy :=
  2285. fun x y z =>
  2286. HolonomyFailure S x y z
  2287.  
  2288. energy :=
  2289. fun x =>
  2290. RicciLike S x
  2291.  
  2292. operatorCommutator :=
  2293. fun x y =>
  2294. OperatorCommutatorWitness S x y
  2295.  
  2296. microstates :=
  2297. fun x r =>
  2298. CausalMicrostates S x r
  2299.  
  2300. entropy :=
  2301. fun x r =>
  2302. Entropy S x r
  2303.  
  2304. /- ====================================================
  2305. COMPUTABLE FINITE MODEL
  2306.  
  2307. This is a concrete four-node causal system. It is not meant
  2308. to model the universe; it is a sanity-check object showing
  2309. that the framework has nontrivial instances.
  2310. ==================================================== -/
  2311.  
  2312. inductive ExampleNode where
  2313. | A
  2314. | B
  2315. | C
  2316. | D
  2317. deriving DecidableEq, Fintype, Repr
  2318.  
  2319. open ExampleNode
  2320.  
  2321. def ExampleSystem : LocalSystem ExampleNode
  2322. where
  2323.  
  2324. update :=
  2325. fun
  2326. | A, B => C
  2327. | B, A => D
  2328. | B, C => D
  2329. | C, D => A
  2330. | x, _ => x
  2331.  
  2332. Neighbor :=
  2333. fun
  2334. | A, B => True
  2335. | B, C => True
  2336. | C, D => True
  2337. | _, _ => False
  2338.  
  2339. theorem example_neighbor_AB :
  2340. ExampleSystem.Neighbor A B
  2341. :=
  2342. by
  2343. simp [ExampleSystem]
  2344.  
  2345. theorem example_update_AB_ne_BA :
  2346. ExampleSystem.update A B
  2347. ≠
  2348. ExampleSystem.update B A
  2349. :=
  2350. by
  2351. simp [ExampleSystem]
  2352.  
  2353. theorem example_noncomm :
  2354. NonCommutative ExampleSystem
  2355. :=
  2356. by
  2357. exact
  2358. ⟨A,B,
  2359. example_neighbor_AB,
  2360. example_update_AB_ne_BA
  2361. ⟩
  2362.  
  2363. def ExampleClassifiedModel :
  2364. ClassifiedModel ExampleNode
  2365. where
  2366.  
  2367. system :=
  2368. ExampleSystem
  2369.  
  2370. kind :=
  2371. ModelKind.finiteExample
  2372.  
  2373. noncomputable def ExampleVerifiedModel :
  2374. VerifiedModel ExampleNode
  2375. where
  2376.  
  2377. system :=
  2378. ExampleSystem
  2379.  
  2380. kind :=
  2381. ModelKind.finiteExample
  2382.  
  2383. witness :=
  2384. example_noncomm
  2385.  
  2386. theorem example_quantum_like :
  2387. QuantumLike ExampleSystem
  2388. :=
  2389. by
  2390. exact
  2391. noncomm_generates_operator_commutator
  2392. ExampleSystem
  2393. example_noncomm
  2394.  
  2395. theorem example_AB_dependency :
  2396. LocalDepends ExampleSystem A B
  2397. :=
  2398. by
  2399. exact
  2400. LocalDepends.mk
  2401. example_neighbor_AB
  2402. example_update_AB_ne_BA
  2403.  
  2404. theorem example_neighbor_BC :
  2405. ExampleSystem.Neighbor B C
  2406. :=
  2407. by
  2408. simp [ExampleSystem]
  2409.  
  2410. theorem example_update_BC_ne_CB :
  2411. ExampleSystem.update B C
  2412. ≠
  2413. ExampleSystem.update C B
  2414. :=
  2415. by
  2416. simp [ExampleSystem]
  2417.  
  2418. theorem example_BC_dependency :
  2419. LocalDepends ExampleSystem B C
  2420. :=
  2421. by
  2422. exact
  2423. LocalDepends.mk
  2424. example_neighbor_BC
  2425. example_update_BC_ne_CB
  2426.  
  2427. theorem example_AB_propagates :
  2428. Propagates ExampleSystem A B 1
  2429. :=
  2430. by
  2431. exact
  2432. Propagates.direct example_AB_dependency
  2433.  
  2434. theorem example_BC_propagates :
  2435. Propagates ExampleSystem B C 1
  2436. :=
  2437. by
  2438. exact
  2439. Propagates.direct example_BC_dependency
  2440.  
  2441. theorem example_AC_propagates_two :
  2442. Propagates ExampleSystem A C 2
  2443. :=
  2444. by
  2445. simpa using
  2446. propagation_compose
  2447. ExampleSystem
  2448. example_AB_propagates
  2449. example_BC_propagates
  2450.  
  2451. theorem example_AB_has_path :
  2452. HasPath ExampleSystem A B
  2453. :=
  2454. by
  2455. exact ⟨1,example_AB_propagates⟩
  2456.  
  2457. theorem example_AC_has_path :
  2458. HasPath ExampleSystem A C
  2459. :=
  2460. by
  2461. exact ⟨2,example_AC_propagates_two⟩
  2462.  
  2463. theorem example_AB_distance_eq_one :
  2464. CausalDistance ExampleSystem A B = 1
  2465. :=
  2466. by
  2467. exact
  2468. CausalDistance_eq_one_of_propagates_one
  2469. ExampleSystem
  2470. A B
  2471. example_AB_propagates
  2472.  
  2473. theorem example_AC_distance_le_two :
  2474. CausalDistance ExampleSystem A C ≤ 2
  2475. :=
  2476. by
  2477. exact
  2478. propagation_bounds_distance
  2479. ExampleSystem
  2480. A C 2
  2481. example_AC_propagates_two
  2482.  
  2483. theorem example_lightcone_A_two_contains_C :
  2484. C ∈ LightCone ExampleSystem A 2
  2485. :=
  2486. by
  2487. exact
  2488. ⟨2,
  2489. le_rfl,
  2490. example_AC_propagates_two
  2491. ⟩
  2492.  
  2493. theorem example_metric_ball_A_two_contains_C :
  2494. C ∈ MetricBall ExampleSystem A 2
  2495. :=
  2496. by
  2497. exact
  2498. lightcone_subset_metric_ball
  2499. ExampleSystem
  2500. A
  2501. 2
  2502. example_lightcone_A_two_contains_C
  2503.  
  2504. theorem example_interval_AB_eq_one :
  2505. LorentzInterval ExampleSystem A B = 1
  2506. :=
  2507. by
  2508. exact
  2509. null_has_unit_interval
  2510. ExampleSystem
  2511. A B
  2512. example_AB_propagates
  2513.  
  2514. theorem example_loop_transport_nontrivial :
  2515. LoopTransportNontrivial ExampleSystem A B C
  2516. :=
  2517. by
  2518. exact
  2519. ⟨B,
  2520. by
  2521. simp [
  2522. LoopTransport,
  2523. Transport,
  2524. ExampleSystem
  2525. ]
  2526. ⟩
  2527.  
  2528. theorem example_holonomy_failure :
  2529. HolonomyFailure ExampleSystem A B C
  2530. :=
  2531. by
  2532. exact
  2533. loop_transport_nontrivial_implies_holonomy_failure
  2534. ExampleSystem
  2535. A B C
  2536. example_loop_transport_nontrivial
  2537.  
  2538. theorem example_microstate_A_one_contains_B :
  2539. B ∈ CausalMicrostates ExampleSystem A 1
  2540. :=
  2541. by
  2542. classical
  2543. unfold CausalMicrostates
  2544. simp [
  2545. example_AB_has_path,
  2546. example_AB_distance_eq_one
  2547. ]
  2548.  
  2549. /- ====================================================
  2550. MAIN EMERGENT SPACETIME THEOREM
  2551. ==================================================== -/
  2552.  
  2553. theorem causality_generates_spacetime
  2554. [Fintype α]
  2555. (S : LocalSystem α)
  2556. :
  2557. ∃ ST : EmergentSpacetime α,
  2558. ST.distance
  2559. =
  2560. (fun x y =>
  2561. CausalDistance S x y)
  2562. ∧
  2563. ST.causal
  2564. =
  2565. (fun x y =>
  2566. HasPath S x y)
  2567. :=
  2568. by
  2569. exact
  2570. ⟨BuildSpacetime S, rfl, rfl⟩
  2571.  
  2572. /- ====================================================
  2573. FINAL INTERPRETATION THEOREMS
  2574. ==================================================== -/
  2575.  
  2576. theorem recursive_time_exists
  2577. (S : LocalSystem α)
  2578. :
  2579. HasRecursiveTime S
  2580. :=
  2581. by
  2582. intro x
  2583. exact ⟨0, Depth.root x⟩
  2584.  
  2585. theorem time_emerges_from_recursion
  2586. (S : LocalSystem α)
  2587. :
  2588. HasRecursiveTime S →
  2589. ∀ x : α,
  2590. ∃ n,
  2591. Depth S x n
  2592. :=
  2593. by
  2594. intro htime
  2595. exact htime
  2596.  
  2597. theorem geometry_emerges_from_propagation
  2598. (S : LocalSystem α)
  2599. :
  2600. ∀ x y n,
  2601. Propagates S x y n →
  2602. HasPath S x y
  2603. ∧
  2604. CausalDistance S x y ≤ n
  2605. :=
  2606. by
  2607. intro x y n hprop
  2608. exact
  2609. ⟨⟨n,hprop⟩,
  2610. propagation_bounds_distance
  2611. S x y n hprop
  2612. ⟩
  2613.  
  2614. theorem curvature_emerges_from_geodesic_deviation
  2615. (S : LocalSystem α)
  2616. :
  2617. Curved S →
  2618. ∃ x y z,
  2619. GeodesicDeviation S x y z ≠ 0
  2620. :=
  2621. by
  2622. intro hcurved
  2623. exact hcurved
  2624.  
  2625. theorem entropy_emerges_from_horizon_area
  2626. [Fintype α]
  2627. (S : LocalSystem α)
  2628. :
  2629. ∀ x r,
  2630. HolographicAreaLaw S x r →
  2631. Entropy S x r = EntropyArea S x r
  2632. :=
  2633. by
  2634. intro x r hArea
  2635. exact
  2636. holographic_area_law_gives_entropy_area
  2637. S x r hArea
  2638.  
  2639. theorem entropy_emerges_from_microstates
  2640. [Fintype α]
  2641. (S : LocalSystem α)
  2642. :
  2643. ∀ x r,
  2644. Entropy S x r
  2645. =
  2646. Real.log
  2647. (((CausalMicrostates S x r).card : Real) + 1)
  2648. :=
  2649. by
  2650. intro x r
  2651. rfl
  2652.  
  2653. theorem einstein_structure_emerges_from_information_law
  2654. [Fintype α]
  2655. (S : LocalSystem α)
  2656. (r : Nat)
  2657. (κ : Int)
  2658. :
  2659. EinsteinLikeLaw S r κ →
  2660. ∀ x y z,
  2661. GeodesicDeviation S x y z
  2662. =
  2663. κ * InformationGradient S x z r
  2664. :=
  2665. by
  2666. intro hLaw
  2667. exact
  2668. einstein_like_law_equates_geometry_information
  2669. S r κ hLaw
  2670.  
  2671. theorem holography_emerges_from_area_law
  2672. [Fintype α]
  2673. (S : LocalSystem α)
  2674. :
  2675. HolographicSystem S →
  2676. EntropyAreaProportional S 1
  2677. :=
  2678. by
  2679. exact holographic_system_entropy_proportional S
  2680.  
  2681. theorem fixed_point_operator_generates_physics
  2682. [Fintype α]
  2683. (S : LocalSystem α)
  2684. :
  2685. FixedPointOf FixedPointOperator S →
  2686. FixedPointGenerates FixedPointOperator S
  2687. :=
  2688. by
  2689. exact fixed_point_generates_time_curvature_causality_energy
  2690. FixedPointOperator
  2691. S
  2692.  
  2693. theorem fixed_point_operator_is_self_consistent
  2694. (S : LocalSystem α)
  2695. :
  2696. FixedPointOf FixedPointOperator S →
  2697. (FixedPointOperator S S).update = S.update
  2698. ∧
  2699. (FixedPointOperator S S).Neighbor = S.Neighbor
  2700. :=
  2701. by
  2702. intro hfix
  2703. exact
  2704. ⟨fixed_point_preserves_update
  2705. FixedPointOperator S hfix,
  2706. fixed_point_preserves_neighbor
  2707. FixedPointOperator S hfix
  2708. ⟩
  2709.  
  2710. theorem lorentz_interval_emerges_from_null_propagation
  2711. (S : LocalSystem α)
  2712. :
  2713. ∀ x y,
  2714. NullRelated S x y →
  2715. LorentzInterval S x y = 1
  2716. :=
  2717. by
  2718. intro x y hnull
  2719. exact null_has_unit_interval S x y hnull
  2720.  
  2721. theorem holonomy_emerges_from_loop_transport
  2722. (S : LocalSystem α)
  2723. :
  2724. ∀ x y z,
  2725. LoopTransportNontrivial S x y z →
  2726. HolonomyFailure S x y z
  2727. :=
  2728. by
  2729. exact loop_transport_nontrivial_implies_holonomy_failure S
  2730.  
  2731. theorem causal_quantum_dynamics_respects_causality
  2732. (S : LocalSystem α)
  2733. (D : CausalQuantumDynamics S)
  2734. :
  2735. ∀ ψ y,
  2736. (D.evolve ψ).amp y ≠ 0 →
  2737. ∃ x,
  2738. ψ.amp x ≠ 0
  2739. ∧
  2740. HasPath S x y
  2741. :=
  2742. by
  2743. exact causal_quantum_evolution_uses_causal_past S D
  2744.  
  2745. theorem information_gradient_generates_deviation_under_unit_law
  2746. [Fintype α]
  2747. (S : LocalSystem α)
  2748. (r : Nat)
  2749. :
  2750. EinsteinLikeLaw S r 1 →
  2751. ∀ x y z,
  2752. InformationGradient S x z r ≠ 0 →
  2753. GeodesicDeviation S x y z ≠ 0
  2754. :=
  2755. by
  2756. intro hLaw x y z hGradient
  2757. exact
  2758. unit_information_gradient_forces_deviation
  2759. S r x y z hLaw hGradient
  2760.  
  2761. theorem quantum_structure_emerges_from_noncommutativity
  2762. (S : LocalSystem α)
  2763. :
  2764. NonCommutative S →
  2765. ∃ Q : QuantumStructure α,
  2766. Q.operator = S.update
  2767. ∧
  2768. Q.commutator = OperatorCommutatorWitness S
  2769. :=
  2770. by
  2771. exact noncommutativity_generates_quantum_structure S
  2772.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty